Allow scheduled status jobs to be cancelled from the UI
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem
When a job is in the scheduled status we can't cancel it via the UI but it is cancelable via the backend processes because we don't actually enforce this in the CancelPipelineService or at the processable state machine level.
See: #477972 (closed)
Proposal
-
Add :scheduledtoCANCELABLE_STATUSES -
Adjust build state machines so that we can transition manaul to canceledtocancelingviafinish_cancelandstart_cancel
Possible follow-up:
Only cancel cancelable jobs when canceling a pipeline. This will prevent us from attempting to run cancel on jobs with a completed status which leads to an error when it hits the state machine.
Edited by 🤖 GitLab Bot 🤖