Task cancellation propagation

Eric AllamEric Allam

Image forTask cancellation propagation

Cancelling a task will now propagate the cancellation to all child tasks (and any of their child tasks) that were triggered with either triggerAndWait or batchTriggerAndWait. Previously, only the parent task was cancelled, and child tasks continued to run.

Tasks triggered with trigger or batchTrigger are not affected by this change, since these functions are "fire and forget" and do not wait for the child task to complete.


Cancellation of child tasks is best-effort and may not be immediate, depending on how many child tasks are executing. Task runs that are about to complete will sometimes not be cancelled in time.