Support pausing jobs #104313
@ -397,7 +397,7 @@ func (sm *StateMachine) updateTasksAfterJobStatusChange(
|
|||||||
|
|
||||||
// Every case in this switch MUST return, for sanity sake.
|
// Every case in this switch MUST return, for sanity sake.
|
||||||
switch job.Status {
|
switch job.Status {
|
||||||
case api.JobStatusCompleted, api.JobStatusCanceled:
|
case api.JobStatusCompleted, api.JobStatusCanceled, api.JobStatusPaused:
|
||||||
// Nothing to do; this will happen as a response to all tasks receiving this status.
|
// Nothing to do; this will happen as a response to all tasks receiving this status.
|
||||||
return tasksUpdateResult{}, nil
|
return tasksUpdateResult{}, nil
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user