Support pausing jobs #104313
@ -455,6 +455,7 @@ func (sm *StateMachine) pauseTasks(
|
|||||||
api.TaskStatusActive,
|
api.TaskStatusActive,
|
||||||
api.TaskStatusQueued,
|
api.TaskStatusQueued,
|
||||||
api.TaskStatusCanceled,
|
api.TaskStatusCanceled,
|
||||||
|
api.TaskStatusSoftFailed,
|
||||||
}
|
}
|
||||||
err := sm.persist.UpdateJobsTaskStatusesConditional(
|
err := sm.persist.UpdateJobsTaskStatusesConditional(
|
||||||
ctx, job, taskStatusesToPause, api.TaskStatusPaused,
|
ctx, job, taskStatusesToPause, api.TaskStatusPaused,
|
||||||
|
Loading…
Reference in New Issue
Block a user