You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/src/v3/types/tasks.ts
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ import {
13
13
OnSuccessHookFunction,
14
14
OnWaitHookFunction,
15
15
OnCancelHookFunction,
16
+
OnStartAttemptHookFunction,
16
17
}from"../lifecycleHooks/types.js";
17
18
import{RunTags}from"../schemas/api.js";
18
19
import{
@@ -114,6 +115,13 @@ export type StartFnParams = Prettify<{
114
115
signal: AbortSignal;
115
116
}>;
116
117
118
+
exporttypeStartAttemptFnParams=Prettify<{
119
+
ctx: Context;
120
+
init?: InitOutput;
121
+
/** Abort signal that is aborted when a task run exceeds it's maxDuration or if the task run is cancelled. Can be used to automatically cancel downstream requests */
122
+
signal: AbortSignal;
123
+
}>;
124
+
117
125
exporttypeCancelFnParams=Prettify<{
118
126
ctx: Context;
119
127
/** Abort signal that is aborted when a task run exceeds it's maxDuration or if the task run is cancelled. Can be used to automatically cancel downstream requests */
@@ -328,9 +336,18 @@ type CommonTaskOptions<
328
336
329
337
/**
330
338
* onStart is called the first time a task is executed in a run (not before every retry)
0 commit comments