We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98bf706 commit 6bf2880Copy full SHA for 6bf2880
docs/tasks/overview.mdx
@@ -535,6 +535,13 @@ export const cancelExampleTask = task({
535
point the process will be killed.
536
</Note>
537
538
+<Warning>
539
+ `onCancel` only runs if the run is actively executing. If a run is cancelled while queued or
540
+ suspended (e.g. waiting for a token), no machine is spun up and `onCancel` will not be called.
541
+ This is a known limitation we're planning to address. Follow the progress on our [feedback
542
+ board](https://feedback.trigger.dev/p/call-the-onfailure-hook-for-runs-that-were-canceled-expired).
543
+</Warning>
544
+
545
### `onStart` function (deprecated)
546
547
<Info>The `onStart` function was deprecated in v4.1.0. Use `onStartAttempt` instead.</Info>
0 commit comments