# Prevent Slack Notifications When Cancelling a Buildkite Step

**URL:** <https://forum.buildkite.community/t/prevent-slack-notifications-when-cancelling-a-buildkite-step/4592>\
**Category:** Features Requests\
**Created:** [March 5, 2026, 3:16pm UTC](https://forum.buildkite.community/t/prevent-slack-notifications-when-cancelling-a-buildkite-step/4592 "2026-03-05T15:16:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavanrh](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@pavanrh](https://forum.buildkite.community/u/pavanrh)\
**Post date:** [March 5, 2026, 3:16pm UTC](https://forum.buildkite.community/t/prevent-slack-notifications-when-cancelling-a-buildkite-step/4592/1 "2026-03-05T15:16:20Z")

</div>

We want to prevent Slack notifications (configured in the Buildkite UI) from being sent when a step is cancelled using `buildkite-agent step cancel`. Currently, when a step is cancelled this way, the build is treated as **Failed** , which in turn triggers the Slack notifications. How can we prevent Slack notifications from being sent in this cancellation scenario?

---

<div class="post-metadata">

**Author:** ![Micheal](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/micheal/32/1588_2.png) [@Micheal](https://forum.buildkite.community/u/Micheal)\
**Post date:** [March 5, 2026, 4:12pm UTC](https://forum.buildkite.community/t/prevent-slack-notifications-when-cancelling-a-buildkite-step/4592/2 "2026-03-05T16:12:34Z")

</div>

Hi @pavanrh I believe this is related to this post [Soft Fail for cancelled builds](https://forum.buildkite.community/t/soft-fail-for-cancelled-builds/1400) . I provided an example that was tested and should work for this scenario. Just wanted to check in here incase or please let me know if that post helps address your question. Thanks 🙂
