Skip to content

Commit 3e6e528

Browse files
committed
Updates onFailure with more clarification
1 parent 89bf11c commit 3e6e528

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/tasks/overview.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ export default defineConfig({
297297

298298
<Info>Errors thrown in the `onFailure` function are ignored.</Info>
299299

300+
<Note>
301+
`onFailure` doesn’t fire for some of the run statuses like `Crashed`, `System failures`, and `Canceled`.
302+
</Note>
303+
300304
### `handleError` functions
301305

302306
You can define a function that will be called when an error is thrown in the `run` function, that allows you to control how the error is handled and whether the task should be retried.

0 commit comments

Comments
 (0)