# How can I mark a deploy as "canceled" when its workflow got canceled?

**URL:** <https://discuss.circleci.com/t/how-can-i-mark-a-deploy-as-canceled-when-its-workflow-got-canceled/54831>\
**Category:** Deployments\
**Tags:** circle-yml\
**Created:** [August 3, 2026, 9:49am UTC](https://discuss.circleci.com/t/how-can-i-mark-a-deploy-as-canceled-when-its-workflow-got-canceled/54831 "2026-08-03T09:49:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jochenschneider](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jochenschneider/32/37092_2.png) [@jochenschneider](https://discuss.circleci.com/u/jochenschneider)\
**Post date:** [August 3, 2026, 9:49am UTC](https://discuss.circleci.com/t/how-can-i-mark-a-deploy-as-canceled-when-its-workflow-got-canceled/54831/1 "2026-08-03T09:49:34Z")

</div>

We use deploy markers in our deploy job, one marker per environment:  
`circleci run release plan <name> --component-name ... --environment-name ... --target-version ...`,  
then `update --status=running`, and `SUCCESS`/`FAILED` at the end.

After cancelling a deployment the marker stays at RUNNING permanently. We have not found a way to correct it.

What we tested:

- A companion job wired with `requires: [deploy: [canceled]]` does not run when the_workflow_ is cancelled. It is cancelled along with everything else and no job record is created for it.
- A `when: always` step inside the cancelled job does not run either.
- A marker planned by a cancelled workflow still read RUNNING on the Deploys dashboard half an hour later, so nothing transitions it server-side.

Two questions:

1. Is there a way to execute something when a workflow gets cancelled?

2. Failing that, is there a supported way to update a marker from outside the  
workflow that planned it?

If we are holding this wrong, that would be good to hear too.
