Is it possible to trigger some specific job after clicking on “Cancel workflow” button?
In our case workflow used to trigger tests on our environment. It start remote container which run tests.
If we cancel workflow it cancel all jobs on CircleCI side but remote container stay in run state. Is it possible to run some job after clinking on “Cancel workflow”? We can use it to sent request to remote container with test to stop it.
Hi, this is not possible as once you cancel a workflow from the UI then the workflow is completely cancelled, it is not possible to have a trigger for this.
The closest functionality we have at the moment is an on_fail conditional which will run a step in a job, but this is scoped to the job, rather than workflow, and also is only triggered on a failure, not on a cancel.
Please vote and comment on the idea request below which aligns to this: