You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(and additionally, upon starting the job again, the version tag is duplicated)
^--- all allocs terminal (complete), job status "running", job.Stopped = true
I noticed a situation where tagging the latest version of a job, if it is currently set to Stopped (having been manually stopped via DELETE to the job endpoint or otherwise), its status in the UI would change from "Stopped" to "Failed". I dug in and the "Stopped" code path only gets hit if the job.Status is set to "dead", and in this case it was coming back as "running" from both the /statuses endpoint and the nomad job status command.
Reproduction:
Run a service job and allow it to get in a healthy state
Stop the job (by clicking "Stop Job" in the UI or hitting the /job/$jobid endpoint with DELETE)
Check the job's status: it should be dead
Observe that the job now has two versions (version 1's only change should be that Stop has gone from false to true)
Tag the latest (stopped) version via the web UI
BUG: Check the job's status: it is now running
In the UI, because the status is now running, click "Start Job"
Look again at the versions: There should now be 3.
BUG: both the latest and second-latest versions should have the tag you applied earli.
The text was updated successfully, but these errors were encountered:
(and additionally, upon starting the job again, the version tag is duplicated)
^--- all allocs terminal (complete), job status "running", job.Stopped = true
I noticed a situation where tagging the latest version of a job, if it is currently set to Stopped (having been manually stopped via DELETE to the job endpoint or otherwise), its status in the UI would change from "Stopped" to "Failed". I dug in and the "Stopped" code path only gets hit if the job.Status is set to "dead", and in this case it was coming back as "running" from both the /statuses endpoint and the
nomad job status
command.Reproduction:
dead
Stop
has gone fromfalse
totrue
)running
running
, click "Start Job"The text was updated successfully, but these errors were encountered: