Support pausing jobs #104313

Manually merged
Sybren A. Stüvel merged 28 commits from David-Zhang-10/flamenco:paused-job-status into main 2024-07-01 17:53:44 +02:00
Showing only changes of commit e30832aab4 - Show all commits

View File

@ -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,