WIP: Allow jobs to be submitted in paused status #104318

Closed
David Zhang wants to merge 32 commits from David-Zhang-10/flamenco:submit-as-paused into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
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,