django-daiquiri / daiquiri

A framework for the publication of scientific databases
https://escience.aip.de/daiquiri
Apache License 2.0
26 stars 8 forks source link

IMPROVEMENT: Add management command to abort all active jobs #229

Open kimakan opened 10 months ago

kimakan commented 10 months ago

Before a downtime, it is necessary to abort the active jobs to ensure a defined job status after the maintenance.

python manage.py abort_active_jobs

The jobs should get the status ABORTED with the error message Aborted due to a planned downtime. Alternatively, the message could be provided with an option

python manage.py abort_active_jobs -m "Aborted due to the maintenance"