Page MenuHomePhabricator

toolforge-jobs: "Status: Unknown" when job is running
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Start a job that takes a while (for example, runs sleep 60)
  • Run toolforge-jobs list

What happens?:
Status of the job is listed as "Unknown"

[tools.majavah-test@tools-sgebastion-11 ~] $ toolforge-jobs list
Job name:    Command:    Job type:    Container:     Status:
-----------  ----------  -----------  -------------  ---------
test         ./sleep.sh  normal       tf-buster-std  Unknown
[tools.majavah-test@tools-sgebastion-11 ~] $ kubectl get pod 
NAME                            READY   STATUS    RESTARTS   AGE
test-z6hxh                      1/1     Running   0          21s

What should have happened instead?:
Status of the job is listed as "Running" or something similar

Event Timeline

Change 704970 had a related patch set uploaded (by Arturo Borrero Gonzalez; author: Arturo Borrero Gonzalez):

[cloud/toolforge/jobs-framework-api@main] ops: short status for normal job should evaluate 'active' parameter

https://gerrit.wikimedia.org/r/704970

Change 704970 merged by Arturo Borrero Gonzalez:

[cloud/toolforge/jobs-framework-api@main] ops: short status for normal job should evaluate 'active' parameter

https://gerrit.wikimedia.org/r/704970

Mentioned in SAL (#wikimedia-cloud) [2021-07-16T14:04:06Z] <arturo> deployed jobs-framework-api 42b7a88 (T286132)

aborrero claimed this task.