Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the -> CANCELLED housekeeping from the mx_update_job trigger. We no longer set the state to CANCELLED by code. Instead, add a new trigger, which transitions a job from INQ to CANCELLED, when the job_cancelled flag ist set. For Jobs, which are RUNNING, the job_cancelled flag needs to be handled by the daemon, which kills the job. By doing it this way, we don't need any code for jobs getting killed in the LOADED or ASSIGNED states, because these will either transition into RUNNING or - in very eceptional cases - back into INQ.
- Loading branch information