# Problems cancelling a running activity from parent workflow

**URL:** <https://community.temporal.io/t/problems-cancelling-a-running-activity-from-parent-workflow/2169>\
**Category:** Community Support\
**Tags:** go-sdk\
**Created:** [May 18, 2021, 11:31pm UTC](https://community.temporal.io/t/problems-cancelling-a-running-activity-from-parent-workflow/2169 "2021-05-18T23:31:55Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [May 19, 2021, 12:42am UTC](https://community.temporal.io/t/problems-cancelling-a-running-activity-from-parent-workflow/2169/9 "2021-05-19T00:42:29Z")

</div>

To avoid excessive calls to the service heartbeats are not send to the service up to 80% of the heartbeat interval. So if you want to speed up the notification of the activity about the cancellation/workflow completion reduce the heartbeat interval from 1 minute to some lower value.

> 1. There might be another activity which needs to cleanup after cancel, so we need to make sure current activity is indeed done first

Set `ActivityOptions.WaitForCancellation` to `true` to wait (by blocking on the activity Future) for an activity cancellation.

---

_[View the full topic](https://community.temporal.io/t/problems-cancelling-a-running-activity-from-parent-workflow/2169)._
