-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Context
In Issue #1563, requirements were gathered on how to gracefully terminate and recreate jobs upon redeploy.
The conclusion was to:
- Query for all processing jobs
- Terminate those jobs
- Clone those jobs and save their state as
JobStates.PENDING
This will ultimately allow for those jobs to be re-submitted by the submit_processing command, which runs every 30 minutes as a cron job.
Problem or idea
A management command should be written, called pause_processing, which implements this command.
A further issue will address how this command is integrated into the deploy sequence.
Solution or next step
- Add management command
pause_processingwhich callsJob::terminate_processingand thenJob::create_retry_jobson the returned terminated jobs - Add tests
Metadata
Metadata
Assignees
Labels
No labels