Dealing with cancelled jobs
If the scheduler is interrupted due to a system shutdown or so and is restarted, then the jobs will still be marked as running
in the job database, even though they are not actually running.
The simple fix would be that the scheduler marks all running
tasks as cancelled
whenever it starts.
The problem is when we have multiple schedulers: Then the jobs may still be running on another scheduler on another computer.
-
_clear_orphans()
innacsos_pipes/common/queue/__init__.py
-
on_startup()
innacsos_pipes/common/queue/__init__.py
Edited by Tim Repke