Is there a way to execute a step if a job was cancelled because of `concurrency`?

We are using concurrency to make sure only 1 workflow is running at a time. Unfortunately that means that some workflows are cancelled (instead of queueing them) and we might want to get a notification when that happens.

Is there a way to execute a final step if a job was cancelled because of concurrency?

1 Like