@trigger.dev/sdk 0.0.0-prerelease-20240918205213 → 0.0.0-prerelease-20240920143613
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/v3/runs.d.ts +642 -108
- package/dist/commonjs/v3/shared.d.ts +1 -1
- package/dist/commonjs/v3/shared.js +2 -0
- package/dist/commonjs/v3/shared.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/runs.d.ts +606 -72
- package/dist/esm/v3/shared.js +2 -0
- package/dist/esm/v3/shared.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
|
@@ -28,13 +28,115 @@ export type PollOptions = {
|
|
|
28
28
|
declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: RunId<TRunId>, options?: {
|
|
29
29
|
pollIntervalMs?: number;
|
|
30
30
|
}, requestOptions?: ApiRequestOptions): Promise<(TRunId extends RunHandle<infer TOutput> ? Omit<{
|
|
31
|
-
status: "
|
|
31
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
32
32
|
id: string;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
tags: string[];
|
|
35
|
+
depth: number;
|
|
36
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
37
|
+
taskIdentifier: string;
|
|
38
|
+
isQueued: boolean;
|
|
39
|
+
isExecuting: boolean;
|
|
40
|
+
isCompleted: boolean;
|
|
41
|
+
isSuccess: boolean;
|
|
42
|
+
isFailed: boolean;
|
|
43
|
+
isCancelled: boolean;
|
|
44
|
+
isTest: boolean;
|
|
45
|
+
updatedAt: Date;
|
|
46
|
+
costInCents: number;
|
|
47
|
+
baseCostInCents: number;
|
|
48
|
+
durationMs: number;
|
|
49
|
+
relatedRuns: {
|
|
50
|
+
root?: {
|
|
51
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
52
|
+
id: string;
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
tags: string[];
|
|
55
|
+
depth: number;
|
|
56
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
57
|
+
taskIdentifier: string;
|
|
58
|
+
isQueued: boolean;
|
|
59
|
+
isExecuting: boolean;
|
|
60
|
+
isCompleted: boolean;
|
|
61
|
+
isSuccess: boolean;
|
|
62
|
+
isFailed: boolean;
|
|
63
|
+
isCancelled: boolean;
|
|
64
|
+
isTest: boolean;
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
costInCents: number;
|
|
67
|
+
baseCostInCents: number;
|
|
68
|
+
durationMs: number;
|
|
69
|
+
batchId?: string | undefined;
|
|
70
|
+
idempotencyKey?: string | undefined;
|
|
71
|
+
version?: string | undefined;
|
|
72
|
+
startedAt?: Date | undefined;
|
|
73
|
+
finishedAt?: Date | undefined;
|
|
74
|
+
delayedUntil?: Date | undefined;
|
|
75
|
+
ttl?: string | undefined;
|
|
76
|
+
expiredAt?: Date | undefined;
|
|
77
|
+
} | undefined;
|
|
78
|
+
parent?: {
|
|
79
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
80
|
+
id: string;
|
|
81
|
+
createdAt: Date;
|
|
82
|
+
tags: string[];
|
|
83
|
+
depth: number;
|
|
84
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
85
|
+
taskIdentifier: string;
|
|
86
|
+
isQueued: boolean;
|
|
87
|
+
isExecuting: boolean;
|
|
88
|
+
isCompleted: boolean;
|
|
89
|
+
isSuccess: boolean;
|
|
90
|
+
isFailed: boolean;
|
|
91
|
+
isCancelled: boolean;
|
|
92
|
+
isTest: boolean;
|
|
93
|
+
updatedAt: Date;
|
|
94
|
+
costInCents: number;
|
|
95
|
+
baseCostInCents: number;
|
|
96
|
+
durationMs: number;
|
|
97
|
+
batchId?: string | undefined;
|
|
98
|
+
idempotencyKey?: string | undefined;
|
|
99
|
+
version?: string | undefined;
|
|
100
|
+
startedAt?: Date | undefined;
|
|
101
|
+
finishedAt?: Date | undefined;
|
|
102
|
+
delayedUntil?: Date | undefined;
|
|
103
|
+
ttl?: string | undefined;
|
|
104
|
+
expiredAt?: Date | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
children?: {
|
|
107
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
108
|
+
id: string;
|
|
109
|
+
createdAt: Date;
|
|
110
|
+
tags: string[];
|
|
111
|
+
depth: number;
|
|
112
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
113
|
+
taskIdentifier: string;
|
|
114
|
+
isQueued: boolean;
|
|
115
|
+
isExecuting: boolean;
|
|
116
|
+
isCompleted: boolean;
|
|
117
|
+
isSuccess: boolean;
|
|
118
|
+
isFailed: boolean;
|
|
119
|
+
isCancelled: boolean;
|
|
120
|
+
isTest: boolean;
|
|
121
|
+
updatedAt: Date;
|
|
122
|
+
costInCents: number;
|
|
123
|
+
baseCostInCents: number;
|
|
124
|
+
durationMs: number;
|
|
125
|
+
batchId?: string | undefined;
|
|
126
|
+
idempotencyKey?: string | undefined;
|
|
127
|
+
version?: string | undefined;
|
|
128
|
+
startedAt?: Date | undefined;
|
|
129
|
+
finishedAt?: Date | undefined;
|
|
130
|
+
delayedUntil?: Date | undefined;
|
|
131
|
+
ttl?: string | undefined;
|
|
132
|
+
expiredAt?: Date | undefined;
|
|
133
|
+
}[] | undefined;
|
|
134
|
+
};
|
|
33
135
|
attempts: ({
|
|
34
|
-
status: "PENDING" | "
|
|
136
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
35
137
|
id: string;
|
|
36
|
-
updatedAt: Date;
|
|
37
138
|
createdAt: Date;
|
|
139
|
+
updatedAt: Date;
|
|
38
140
|
startedAt?: Date | undefined;
|
|
39
141
|
completedAt?: Date | undefined;
|
|
40
142
|
error?: {
|
|
@@ -43,20 +145,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
43
145
|
stackTrace?: string | undefined;
|
|
44
146
|
} | undefined;
|
|
45
147
|
} | undefined)[];
|
|
46
|
-
updatedAt: Date;
|
|
47
|
-
isTest: boolean;
|
|
48
|
-
createdAt: Date;
|
|
49
|
-
tags: string[];
|
|
50
|
-
durationMs: number;
|
|
51
|
-
costInCents: number;
|
|
52
|
-
baseCostInCents: number;
|
|
53
|
-
taskIdentifier: string;
|
|
54
|
-
isQueued: boolean;
|
|
55
|
-
isExecuting: boolean;
|
|
56
|
-
isCompleted: boolean;
|
|
57
|
-
isSuccess: boolean;
|
|
58
|
-
isFailed: boolean;
|
|
59
|
-
isCancelled: boolean;
|
|
60
148
|
payload?: any;
|
|
61
149
|
payloadPresignedUrl?: string | undefined;
|
|
62
150
|
output?: any;
|
|
@@ -65,12 +153,13 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
65
153
|
id: string;
|
|
66
154
|
generator: {
|
|
67
155
|
type: "CRON";
|
|
68
|
-
description: string;
|
|
69
156
|
expression: string;
|
|
157
|
+
description: string;
|
|
70
158
|
};
|
|
71
159
|
externalId?: string | undefined;
|
|
72
160
|
deduplicationKey?: string | undefined;
|
|
73
161
|
} | undefined;
|
|
162
|
+
batchId?: string | undefined;
|
|
74
163
|
idempotencyKey?: string | undefined;
|
|
75
164
|
version?: string | undefined;
|
|
76
165
|
startedAt?: Date | undefined;
|
|
@@ -81,13 +170,115 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
81
170
|
}, "output"> & {
|
|
82
171
|
output?: TOutput;
|
|
83
172
|
} : TRunId extends Task<string, any, infer TTaskOutput> ? Omit<{
|
|
84
|
-
status: "
|
|
173
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
85
174
|
id: string;
|
|
175
|
+
createdAt: Date;
|
|
176
|
+
tags: string[];
|
|
177
|
+
depth: number;
|
|
178
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
179
|
+
taskIdentifier: string;
|
|
180
|
+
isQueued: boolean;
|
|
181
|
+
isExecuting: boolean;
|
|
182
|
+
isCompleted: boolean;
|
|
183
|
+
isSuccess: boolean;
|
|
184
|
+
isFailed: boolean;
|
|
185
|
+
isCancelled: boolean;
|
|
186
|
+
isTest: boolean;
|
|
187
|
+
updatedAt: Date;
|
|
188
|
+
costInCents: number;
|
|
189
|
+
baseCostInCents: number;
|
|
190
|
+
durationMs: number;
|
|
191
|
+
relatedRuns: {
|
|
192
|
+
root?: {
|
|
193
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
194
|
+
id: string;
|
|
195
|
+
createdAt: Date;
|
|
196
|
+
tags: string[];
|
|
197
|
+
depth: number;
|
|
198
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
199
|
+
taskIdentifier: string;
|
|
200
|
+
isQueued: boolean;
|
|
201
|
+
isExecuting: boolean;
|
|
202
|
+
isCompleted: boolean;
|
|
203
|
+
isSuccess: boolean;
|
|
204
|
+
isFailed: boolean;
|
|
205
|
+
isCancelled: boolean;
|
|
206
|
+
isTest: boolean;
|
|
207
|
+
updatedAt: Date;
|
|
208
|
+
costInCents: number;
|
|
209
|
+
baseCostInCents: number;
|
|
210
|
+
durationMs: number;
|
|
211
|
+
batchId?: string | undefined;
|
|
212
|
+
idempotencyKey?: string | undefined;
|
|
213
|
+
version?: string | undefined;
|
|
214
|
+
startedAt?: Date | undefined;
|
|
215
|
+
finishedAt?: Date | undefined;
|
|
216
|
+
delayedUntil?: Date | undefined;
|
|
217
|
+
ttl?: string | undefined;
|
|
218
|
+
expiredAt?: Date | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
parent?: {
|
|
221
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
222
|
+
id: string;
|
|
223
|
+
createdAt: Date;
|
|
224
|
+
tags: string[];
|
|
225
|
+
depth: number;
|
|
226
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
227
|
+
taskIdentifier: string;
|
|
228
|
+
isQueued: boolean;
|
|
229
|
+
isExecuting: boolean;
|
|
230
|
+
isCompleted: boolean;
|
|
231
|
+
isSuccess: boolean;
|
|
232
|
+
isFailed: boolean;
|
|
233
|
+
isCancelled: boolean;
|
|
234
|
+
isTest: boolean;
|
|
235
|
+
updatedAt: Date;
|
|
236
|
+
costInCents: number;
|
|
237
|
+
baseCostInCents: number;
|
|
238
|
+
durationMs: number;
|
|
239
|
+
batchId?: string | undefined;
|
|
240
|
+
idempotencyKey?: string | undefined;
|
|
241
|
+
version?: string | undefined;
|
|
242
|
+
startedAt?: Date | undefined;
|
|
243
|
+
finishedAt?: Date | undefined;
|
|
244
|
+
delayedUntil?: Date | undefined;
|
|
245
|
+
ttl?: string | undefined;
|
|
246
|
+
expiredAt?: Date | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
children?: {
|
|
249
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
250
|
+
id: string;
|
|
251
|
+
createdAt: Date;
|
|
252
|
+
tags: string[];
|
|
253
|
+
depth: number;
|
|
254
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
255
|
+
taskIdentifier: string;
|
|
256
|
+
isQueued: boolean;
|
|
257
|
+
isExecuting: boolean;
|
|
258
|
+
isCompleted: boolean;
|
|
259
|
+
isSuccess: boolean;
|
|
260
|
+
isFailed: boolean;
|
|
261
|
+
isCancelled: boolean;
|
|
262
|
+
isTest: boolean;
|
|
263
|
+
updatedAt: Date;
|
|
264
|
+
costInCents: number;
|
|
265
|
+
baseCostInCents: number;
|
|
266
|
+
durationMs: number;
|
|
267
|
+
batchId?: string | undefined;
|
|
268
|
+
idempotencyKey?: string | undefined;
|
|
269
|
+
version?: string | undefined;
|
|
270
|
+
startedAt?: Date | undefined;
|
|
271
|
+
finishedAt?: Date | undefined;
|
|
272
|
+
delayedUntil?: Date | undefined;
|
|
273
|
+
ttl?: string | undefined;
|
|
274
|
+
expiredAt?: Date | undefined;
|
|
275
|
+
}[] | undefined;
|
|
276
|
+
};
|
|
86
277
|
attempts: ({
|
|
87
|
-
status: "PENDING" | "
|
|
278
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
88
279
|
id: string;
|
|
89
|
-
updatedAt: Date;
|
|
90
280
|
createdAt: Date;
|
|
281
|
+
updatedAt: Date;
|
|
91
282
|
startedAt?: Date | undefined;
|
|
92
283
|
completedAt?: Date | undefined;
|
|
93
284
|
error?: {
|
|
@@ -96,20 +287,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
96
287
|
stackTrace?: string | undefined;
|
|
97
288
|
} | undefined;
|
|
98
289
|
} | undefined)[];
|
|
99
|
-
updatedAt: Date;
|
|
100
|
-
isTest: boolean;
|
|
101
|
-
createdAt: Date;
|
|
102
|
-
tags: string[];
|
|
103
|
-
durationMs: number;
|
|
104
|
-
costInCents: number;
|
|
105
|
-
baseCostInCents: number;
|
|
106
|
-
taskIdentifier: string;
|
|
107
|
-
isQueued: boolean;
|
|
108
|
-
isExecuting: boolean;
|
|
109
|
-
isCompleted: boolean;
|
|
110
|
-
isSuccess: boolean;
|
|
111
|
-
isFailed: boolean;
|
|
112
|
-
isCancelled: boolean;
|
|
113
290
|
payload?: any;
|
|
114
291
|
payloadPresignedUrl?: string | undefined;
|
|
115
292
|
output?: any;
|
|
@@ -118,12 +295,13 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
118
295
|
id: string;
|
|
119
296
|
generator: {
|
|
120
297
|
type: "CRON";
|
|
121
|
-
description: string;
|
|
122
298
|
expression: string;
|
|
299
|
+
description: string;
|
|
123
300
|
};
|
|
124
301
|
externalId?: string | undefined;
|
|
125
302
|
deduplicationKey?: string | undefined;
|
|
126
303
|
} | undefined;
|
|
304
|
+
batchId?: string | undefined;
|
|
127
305
|
idempotencyKey?: string | undefined;
|
|
128
306
|
version?: string | undefined;
|
|
129
307
|
startedAt?: Date | undefined;
|
|
@@ -134,13 +312,115 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
134
312
|
}, "output"> & {
|
|
135
313
|
output?: TTaskOutput;
|
|
136
314
|
} : TRunId extends string ? {
|
|
137
|
-
status: "
|
|
315
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
138
316
|
id: string;
|
|
317
|
+
createdAt: Date;
|
|
318
|
+
tags: string[];
|
|
319
|
+
depth: number;
|
|
320
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
321
|
+
taskIdentifier: string;
|
|
322
|
+
isQueued: boolean;
|
|
323
|
+
isExecuting: boolean;
|
|
324
|
+
isCompleted: boolean;
|
|
325
|
+
isSuccess: boolean;
|
|
326
|
+
isFailed: boolean;
|
|
327
|
+
isCancelled: boolean;
|
|
328
|
+
isTest: boolean;
|
|
329
|
+
updatedAt: Date;
|
|
330
|
+
costInCents: number;
|
|
331
|
+
baseCostInCents: number;
|
|
332
|
+
durationMs: number;
|
|
333
|
+
relatedRuns: {
|
|
334
|
+
root?: {
|
|
335
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
336
|
+
id: string;
|
|
337
|
+
createdAt: Date;
|
|
338
|
+
tags: string[];
|
|
339
|
+
depth: number;
|
|
340
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
341
|
+
taskIdentifier: string;
|
|
342
|
+
isQueued: boolean;
|
|
343
|
+
isExecuting: boolean;
|
|
344
|
+
isCompleted: boolean;
|
|
345
|
+
isSuccess: boolean;
|
|
346
|
+
isFailed: boolean;
|
|
347
|
+
isCancelled: boolean;
|
|
348
|
+
isTest: boolean;
|
|
349
|
+
updatedAt: Date;
|
|
350
|
+
costInCents: number;
|
|
351
|
+
baseCostInCents: number;
|
|
352
|
+
durationMs: number;
|
|
353
|
+
batchId?: string | undefined;
|
|
354
|
+
idempotencyKey?: string | undefined;
|
|
355
|
+
version?: string | undefined;
|
|
356
|
+
startedAt?: Date | undefined;
|
|
357
|
+
finishedAt?: Date | undefined;
|
|
358
|
+
delayedUntil?: Date | undefined;
|
|
359
|
+
ttl?: string | undefined;
|
|
360
|
+
expiredAt?: Date | undefined;
|
|
361
|
+
} | undefined;
|
|
362
|
+
parent?: {
|
|
363
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
364
|
+
id: string;
|
|
365
|
+
createdAt: Date;
|
|
366
|
+
tags: string[];
|
|
367
|
+
depth: number;
|
|
368
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
369
|
+
taskIdentifier: string;
|
|
370
|
+
isQueued: boolean;
|
|
371
|
+
isExecuting: boolean;
|
|
372
|
+
isCompleted: boolean;
|
|
373
|
+
isSuccess: boolean;
|
|
374
|
+
isFailed: boolean;
|
|
375
|
+
isCancelled: boolean;
|
|
376
|
+
isTest: boolean;
|
|
377
|
+
updatedAt: Date;
|
|
378
|
+
costInCents: number;
|
|
379
|
+
baseCostInCents: number;
|
|
380
|
+
durationMs: number;
|
|
381
|
+
batchId?: string | undefined;
|
|
382
|
+
idempotencyKey?: string | undefined;
|
|
383
|
+
version?: string | undefined;
|
|
384
|
+
startedAt?: Date | undefined;
|
|
385
|
+
finishedAt?: Date | undefined;
|
|
386
|
+
delayedUntil?: Date | undefined;
|
|
387
|
+
ttl?: string | undefined;
|
|
388
|
+
expiredAt?: Date | undefined;
|
|
389
|
+
} | undefined;
|
|
390
|
+
children?: {
|
|
391
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
392
|
+
id: string;
|
|
393
|
+
createdAt: Date;
|
|
394
|
+
tags: string[];
|
|
395
|
+
depth: number;
|
|
396
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
397
|
+
taskIdentifier: string;
|
|
398
|
+
isQueued: boolean;
|
|
399
|
+
isExecuting: boolean;
|
|
400
|
+
isCompleted: boolean;
|
|
401
|
+
isSuccess: boolean;
|
|
402
|
+
isFailed: boolean;
|
|
403
|
+
isCancelled: boolean;
|
|
404
|
+
isTest: boolean;
|
|
405
|
+
updatedAt: Date;
|
|
406
|
+
costInCents: number;
|
|
407
|
+
baseCostInCents: number;
|
|
408
|
+
durationMs: number;
|
|
409
|
+
batchId?: string | undefined;
|
|
410
|
+
idempotencyKey?: string | undefined;
|
|
411
|
+
version?: string | undefined;
|
|
412
|
+
startedAt?: Date | undefined;
|
|
413
|
+
finishedAt?: Date | undefined;
|
|
414
|
+
delayedUntil?: Date | undefined;
|
|
415
|
+
ttl?: string | undefined;
|
|
416
|
+
expiredAt?: Date | undefined;
|
|
417
|
+
}[] | undefined;
|
|
418
|
+
};
|
|
139
419
|
attempts: ({
|
|
140
|
-
status: "PENDING" | "
|
|
420
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
141
421
|
id: string;
|
|
142
|
-
updatedAt: Date;
|
|
143
422
|
createdAt: Date;
|
|
423
|
+
updatedAt: Date;
|
|
144
424
|
startedAt?: Date | undefined;
|
|
145
425
|
completedAt?: Date | undefined;
|
|
146
426
|
error?: {
|
|
@@ -149,20 +429,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
149
429
|
stackTrace?: string | undefined;
|
|
150
430
|
} | undefined;
|
|
151
431
|
} | undefined)[];
|
|
152
|
-
updatedAt: Date;
|
|
153
|
-
isTest: boolean;
|
|
154
|
-
createdAt: Date;
|
|
155
|
-
tags: string[];
|
|
156
|
-
durationMs: number;
|
|
157
|
-
costInCents: number;
|
|
158
|
-
baseCostInCents: number;
|
|
159
|
-
taskIdentifier: string;
|
|
160
|
-
isQueued: boolean;
|
|
161
|
-
isExecuting: boolean;
|
|
162
|
-
isCompleted: boolean;
|
|
163
|
-
isSuccess: boolean;
|
|
164
|
-
isFailed: boolean;
|
|
165
|
-
isCancelled: boolean;
|
|
166
432
|
payload?: any;
|
|
167
433
|
payloadPresignedUrl?: string | undefined;
|
|
168
434
|
output?: any;
|
|
@@ -171,12 +437,13 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
171
437
|
id: string;
|
|
172
438
|
generator: {
|
|
173
439
|
type: "CRON";
|
|
174
|
-
description: string;
|
|
175
440
|
expression: string;
|
|
441
|
+
description: string;
|
|
176
442
|
};
|
|
177
443
|
externalId?: string | undefined;
|
|
178
444
|
deduplicationKey?: string | undefined;
|
|
179
445
|
} | undefined;
|
|
446
|
+
batchId?: string | undefined;
|
|
180
447
|
idempotencyKey?: string | undefined;
|
|
181
448
|
version?: string | undefined;
|
|
182
449
|
startedAt?: Date | undefined;
|
|
@@ -185,13 +452,115 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
185
452
|
ttl?: string | undefined;
|
|
186
453
|
expiredAt?: Date | undefined;
|
|
187
454
|
} : never) extends infer T ? { [K in keyof T]: (TRunId extends RunHandle<infer TOutput> ? Omit<{
|
|
188
|
-
status: "
|
|
455
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
189
456
|
id: string;
|
|
457
|
+
createdAt: Date;
|
|
458
|
+
tags: string[];
|
|
459
|
+
depth: number;
|
|
460
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
461
|
+
taskIdentifier: string;
|
|
462
|
+
isQueued: boolean;
|
|
463
|
+
isExecuting: boolean;
|
|
464
|
+
isCompleted: boolean;
|
|
465
|
+
isSuccess: boolean;
|
|
466
|
+
isFailed: boolean;
|
|
467
|
+
isCancelled: boolean;
|
|
468
|
+
isTest: boolean;
|
|
469
|
+
updatedAt: Date;
|
|
470
|
+
costInCents: number;
|
|
471
|
+
baseCostInCents: number;
|
|
472
|
+
durationMs: number;
|
|
473
|
+
relatedRuns: {
|
|
474
|
+
root?: {
|
|
475
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
476
|
+
id: string;
|
|
477
|
+
createdAt: Date;
|
|
478
|
+
tags: string[];
|
|
479
|
+
depth: number;
|
|
480
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
481
|
+
taskIdentifier: string;
|
|
482
|
+
isQueued: boolean;
|
|
483
|
+
isExecuting: boolean;
|
|
484
|
+
isCompleted: boolean;
|
|
485
|
+
isSuccess: boolean;
|
|
486
|
+
isFailed: boolean;
|
|
487
|
+
isCancelled: boolean;
|
|
488
|
+
isTest: boolean;
|
|
489
|
+
updatedAt: Date;
|
|
490
|
+
costInCents: number;
|
|
491
|
+
baseCostInCents: number;
|
|
492
|
+
durationMs: number;
|
|
493
|
+
batchId?: string | undefined;
|
|
494
|
+
idempotencyKey?: string | undefined;
|
|
495
|
+
version?: string | undefined;
|
|
496
|
+
startedAt?: Date | undefined;
|
|
497
|
+
finishedAt?: Date | undefined;
|
|
498
|
+
delayedUntil?: Date | undefined;
|
|
499
|
+
ttl?: string | undefined;
|
|
500
|
+
expiredAt?: Date | undefined;
|
|
501
|
+
} | undefined;
|
|
502
|
+
parent?: {
|
|
503
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
504
|
+
id: string;
|
|
505
|
+
createdAt: Date;
|
|
506
|
+
tags: string[];
|
|
507
|
+
depth: number;
|
|
508
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
509
|
+
taskIdentifier: string;
|
|
510
|
+
isQueued: boolean;
|
|
511
|
+
isExecuting: boolean;
|
|
512
|
+
isCompleted: boolean;
|
|
513
|
+
isSuccess: boolean;
|
|
514
|
+
isFailed: boolean;
|
|
515
|
+
isCancelled: boolean;
|
|
516
|
+
isTest: boolean;
|
|
517
|
+
updatedAt: Date;
|
|
518
|
+
costInCents: number;
|
|
519
|
+
baseCostInCents: number;
|
|
520
|
+
durationMs: number;
|
|
521
|
+
batchId?: string | undefined;
|
|
522
|
+
idempotencyKey?: string | undefined;
|
|
523
|
+
version?: string | undefined;
|
|
524
|
+
startedAt?: Date | undefined;
|
|
525
|
+
finishedAt?: Date | undefined;
|
|
526
|
+
delayedUntil?: Date | undefined;
|
|
527
|
+
ttl?: string | undefined;
|
|
528
|
+
expiredAt?: Date | undefined;
|
|
529
|
+
} | undefined;
|
|
530
|
+
children?: {
|
|
531
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
532
|
+
id: string;
|
|
533
|
+
createdAt: Date;
|
|
534
|
+
tags: string[];
|
|
535
|
+
depth: number;
|
|
536
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
537
|
+
taskIdentifier: string;
|
|
538
|
+
isQueued: boolean;
|
|
539
|
+
isExecuting: boolean;
|
|
540
|
+
isCompleted: boolean;
|
|
541
|
+
isSuccess: boolean;
|
|
542
|
+
isFailed: boolean;
|
|
543
|
+
isCancelled: boolean;
|
|
544
|
+
isTest: boolean;
|
|
545
|
+
updatedAt: Date;
|
|
546
|
+
costInCents: number;
|
|
547
|
+
baseCostInCents: number;
|
|
548
|
+
durationMs: number;
|
|
549
|
+
batchId?: string | undefined;
|
|
550
|
+
idempotencyKey?: string | undefined;
|
|
551
|
+
version?: string | undefined;
|
|
552
|
+
startedAt?: Date | undefined;
|
|
553
|
+
finishedAt?: Date | undefined;
|
|
554
|
+
delayedUntil?: Date | undefined;
|
|
555
|
+
ttl?: string | undefined;
|
|
556
|
+
expiredAt?: Date | undefined;
|
|
557
|
+
}[] | undefined;
|
|
558
|
+
};
|
|
190
559
|
attempts: ({
|
|
191
|
-
status: "PENDING" | "
|
|
560
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
192
561
|
id: string;
|
|
193
|
-
updatedAt: Date;
|
|
194
562
|
createdAt: Date;
|
|
563
|
+
updatedAt: Date;
|
|
195
564
|
startedAt?: Date | undefined;
|
|
196
565
|
completedAt?: Date | undefined;
|
|
197
566
|
error?: {
|
|
@@ -200,20 +569,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
200
569
|
stackTrace?: string | undefined;
|
|
201
570
|
} | undefined;
|
|
202
571
|
} | undefined)[];
|
|
203
|
-
updatedAt: Date;
|
|
204
|
-
isTest: boolean;
|
|
205
|
-
createdAt: Date;
|
|
206
|
-
tags: string[];
|
|
207
|
-
durationMs: number;
|
|
208
|
-
costInCents: number;
|
|
209
|
-
baseCostInCents: number;
|
|
210
|
-
taskIdentifier: string;
|
|
211
|
-
isQueued: boolean;
|
|
212
|
-
isExecuting: boolean;
|
|
213
|
-
isCompleted: boolean;
|
|
214
|
-
isSuccess: boolean;
|
|
215
|
-
isFailed: boolean;
|
|
216
|
-
isCancelled: boolean;
|
|
217
572
|
payload?: any;
|
|
218
573
|
payloadPresignedUrl?: string | undefined;
|
|
219
574
|
output?: any;
|
|
@@ -222,12 +577,13 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
222
577
|
id: string;
|
|
223
578
|
generator: {
|
|
224
579
|
type: "CRON";
|
|
225
|
-
description: string;
|
|
226
580
|
expression: string;
|
|
581
|
+
description: string;
|
|
227
582
|
};
|
|
228
583
|
externalId?: string | undefined;
|
|
229
584
|
deduplicationKey?: string | undefined;
|
|
230
585
|
} | undefined;
|
|
586
|
+
batchId?: string | undefined;
|
|
231
587
|
idempotencyKey?: string | undefined;
|
|
232
588
|
version?: string | undefined;
|
|
233
589
|
startedAt?: Date | undefined;
|
|
@@ -238,13 +594,115 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
238
594
|
}, "output"> & {
|
|
239
595
|
output?: TOutput;
|
|
240
596
|
} : TRunId extends Task<string, any, infer TTaskOutput> ? Omit<{
|
|
241
|
-
status: "
|
|
597
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
242
598
|
id: string;
|
|
599
|
+
createdAt: Date;
|
|
600
|
+
tags: string[];
|
|
601
|
+
depth: number;
|
|
602
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
603
|
+
taskIdentifier: string;
|
|
604
|
+
isQueued: boolean;
|
|
605
|
+
isExecuting: boolean;
|
|
606
|
+
isCompleted: boolean;
|
|
607
|
+
isSuccess: boolean;
|
|
608
|
+
isFailed: boolean;
|
|
609
|
+
isCancelled: boolean;
|
|
610
|
+
isTest: boolean;
|
|
611
|
+
updatedAt: Date;
|
|
612
|
+
costInCents: number;
|
|
613
|
+
baseCostInCents: number;
|
|
614
|
+
durationMs: number;
|
|
615
|
+
relatedRuns: {
|
|
616
|
+
root?: {
|
|
617
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
618
|
+
id: string;
|
|
619
|
+
createdAt: Date;
|
|
620
|
+
tags: string[];
|
|
621
|
+
depth: number;
|
|
622
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
623
|
+
taskIdentifier: string;
|
|
624
|
+
isQueued: boolean;
|
|
625
|
+
isExecuting: boolean;
|
|
626
|
+
isCompleted: boolean;
|
|
627
|
+
isSuccess: boolean;
|
|
628
|
+
isFailed: boolean;
|
|
629
|
+
isCancelled: boolean;
|
|
630
|
+
isTest: boolean;
|
|
631
|
+
updatedAt: Date;
|
|
632
|
+
costInCents: number;
|
|
633
|
+
baseCostInCents: number;
|
|
634
|
+
durationMs: number;
|
|
635
|
+
batchId?: string | undefined;
|
|
636
|
+
idempotencyKey?: string | undefined;
|
|
637
|
+
version?: string | undefined;
|
|
638
|
+
startedAt?: Date | undefined;
|
|
639
|
+
finishedAt?: Date | undefined;
|
|
640
|
+
delayedUntil?: Date | undefined;
|
|
641
|
+
ttl?: string | undefined;
|
|
642
|
+
expiredAt?: Date | undefined;
|
|
643
|
+
} | undefined;
|
|
644
|
+
parent?: {
|
|
645
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
646
|
+
id: string;
|
|
647
|
+
createdAt: Date;
|
|
648
|
+
tags: string[];
|
|
649
|
+
depth: number;
|
|
650
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
651
|
+
taskIdentifier: string;
|
|
652
|
+
isQueued: boolean;
|
|
653
|
+
isExecuting: boolean;
|
|
654
|
+
isCompleted: boolean;
|
|
655
|
+
isSuccess: boolean;
|
|
656
|
+
isFailed: boolean;
|
|
657
|
+
isCancelled: boolean;
|
|
658
|
+
isTest: boolean;
|
|
659
|
+
updatedAt: Date;
|
|
660
|
+
costInCents: number;
|
|
661
|
+
baseCostInCents: number;
|
|
662
|
+
durationMs: number;
|
|
663
|
+
batchId?: string | undefined;
|
|
664
|
+
idempotencyKey?: string | undefined;
|
|
665
|
+
version?: string | undefined;
|
|
666
|
+
startedAt?: Date | undefined;
|
|
667
|
+
finishedAt?: Date | undefined;
|
|
668
|
+
delayedUntil?: Date | undefined;
|
|
669
|
+
ttl?: string | undefined;
|
|
670
|
+
expiredAt?: Date | undefined;
|
|
671
|
+
} | undefined;
|
|
672
|
+
children?: {
|
|
673
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
674
|
+
id: string;
|
|
675
|
+
createdAt: Date;
|
|
676
|
+
tags: string[];
|
|
677
|
+
depth: number;
|
|
678
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
679
|
+
taskIdentifier: string;
|
|
680
|
+
isQueued: boolean;
|
|
681
|
+
isExecuting: boolean;
|
|
682
|
+
isCompleted: boolean;
|
|
683
|
+
isSuccess: boolean;
|
|
684
|
+
isFailed: boolean;
|
|
685
|
+
isCancelled: boolean;
|
|
686
|
+
isTest: boolean;
|
|
687
|
+
updatedAt: Date;
|
|
688
|
+
costInCents: number;
|
|
689
|
+
baseCostInCents: number;
|
|
690
|
+
durationMs: number;
|
|
691
|
+
batchId?: string | undefined;
|
|
692
|
+
idempotencyKey?: string | undefined;
|
|
693
|
+
version?: string | undefined;
|
|
694
|
+
startedAt?: Date | undefined;
|
|
695
|
+
finishedAt?: Date | undefined;
|
|
696
|
+
delayedUntil?: Date | undefined;
|
|
697
|
+
ttl?: string | undefined;
|
|
698
|
+
expiredAt?: Date | undefined;
|
|
699
|
+
}[] | undefined;
|
|
700
|
+
};
|
|
243
701
|
attempts: ({
|
|
244
|
-
status: "PENDING" | "
|
|
702
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
245
703
|
id: string;
|
|
246
|
-
updatedAt: Date;
|
|
247
704
|
createdAt: Date;
|
|
705
|
+
updatedAt: Date;
|
|
248
706
|
startedAt?: Date | undefined;
|
|
249
707
|
completedAt?: Date | undefined;
|
|
250
708
|
error?: {
|
|
@@ -253,20 +711,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
253
711
|
stackTrace?: string | undefined;
|
|
254
712
|
} | undefined;
|
|
255
713
|
} | undefined)[];
|
|
256
|
-
updatedAt: Date;
|
|
257
|
-
isTest: boolean;
|
|
258
|
-
createdAt: Date;
|
|
259
|
-
tags: string[];
|
|
260
|
-
durationMs: number;
|
|
261
|
-
costInCents: number;
|
|
262
|
-
baseCostInCents: number;
|
|
263
|
-
taskIdentifier: string;
|
|
264
|
-
isQueued: boolean;
|
|
265
|
-
isExecuting: boolean;
|
|
266
|
-
isCompleted: boolean;
|
|
267
|
-
isSuccess: boolean;
|
|
268
|
-
isFailed: boolean;
|
|
269
|
-
isCancelled: boolean;
|
|
270
714
|
payload?: any;
|
|
271
715
|
payloadPresignedUrl?: string | undefined;
|
|
272
716
|
output?: any;
|
|
@@ -275,12 +719,13 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
275
719
|
id: string;
|
|
276
720
|
generator: {
|
|
277
721
|
type: "CRON";
|
|
278
|
-
description: string;
|
|
279
722
|
expression: string;
|
|
723
|
+
description: string;
|
|
280
724
|
};
|
|
281
725
|
externalId?: string | undefined;
|
|
282
726
|
deduplicationKey?: string | undefined;
|
|
283
727
|
} | undefined;
|
|
728
|
+
batchId?: string | undefined;
|
|
284
729
|
idempotencyKey?: string | undefined;
|
|
285
730
|
version?: string | undefined;
|
|
286
731
|
startedAt?: Date | undefined;
|
|
@@ -291,13 +736,115 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
291
736
|
}, "output"> & {
|
|
292
737
|
output?: TTaskOutput;
|
|
293
738
|
} : TRunId extends string ? {
|
|
294
|
-
status: "
|
|
739
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
295
740
|
id: string;
|
|
741
|
+
createdAt: Date;
|
|
742
|
+
tags: string[];
|
|
743
|
+
depth: number;
|
|
744
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
745
|
+
taskIdentifier: string;
|
|
746
|
+
isQueued: boolean;
|
|
747
|
+
isExecuting: boolean;
|
|
748
|
+
isCompleted: boolean;
|
|
749
|
+
isSuccess: boolean;
|
|
750
|
+
isFailed: boolean;
|
|
751
|
+
isCancelled: boolean;
|
|
752
|
+
isTest: boolean;
|
|
753
|
+
updatedAt: Date;
|
|
754
|
+
costInCents: number;
|
|
755
|
+
baseCostInCents: number;
|
|
756
|
+
durationMs: number;
|
|
757
|
+
relatedRuns: {
|
|
758
|
+
root?: {
|
|
759
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
760
|
+
id: string;
|
|
761
|
+
createdAt: Date;
|
|
762
|
+
tags: string[];
|
|
763
|
+
depth: number;
|
|
764
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
765
|
+
taskIdentifier: string;
|
|
766
|
+
isQueued: boolean;
|
|
767
|
+
isExecuting: boolean;
|
|
768
|
+
isCompleted: boolean;
|
|
769
|
+
isSuccess: boolean;
|
|
770
|
+
isFailed: boolean;
|
|
771
|
+
isCancelled: boolean;
|
|
772
|
+
isTest: boolean;
|
|
773
|
+
updatedAt: Date;
|
|
774
|
+
costInCents: number;
|
|
775
|
+
baseCostInCents: number;
|
|
776
|
+
durationMs: number;
|
|
777
|
+
batchId?: string | undefined;
|
|
778
|
+
idempotencyKey?: string | undefined;
|
|
779
|
+
version?: string | undefined;
|
|
780
|
+
startedAt?: Date | undefined;
|
|
781
|
+
finishedAt?: Date | undefined;
|
|
782
|
+
delayedUntil?: Date | undefined;
|
|
783
|
+
ttl?: string | undefined;
|
|
784
|
+
expiredAt?: Date | undefined;
|
|
785
|
+
} | undefined;
|
|
786
|
+
parent?: {
|
|
787
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
788
|
+
id: string;
|
|
789
|
+
createdAt: Date;
|
|
790
|
+
tags: string[];
|
|
791
|
+
depth: number;
|
|
792
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
793
|
+
taskIdentifier: string;
|
|
794
|
+
isQueued: boolean;
|
|
795
|
+
isExecuting: boolean;
|
|
796
|
+
isCompleted: boolean;
|
|
797
|
+
isSuccess: boolean;
|
|
798
|
+
isFailed: boolean;
|
|
799
|
+
isCancelled: boolean;
|
|
800
|
+
isTest: boolean;
|
|
801
|
+
updatedAt: Date;
|
|
802
|
+
costInCents: number;
|
|
803
|
+
baseCostInCents: number;
|
|
804
|
+
durationMs: number;
|
|
805
|
+
batchId?: string | undefined;
|
|
806
|
+
idempotencyKey?: string | undefined;
|
|
807
|
+
version?: string | undefined;
|
|
808
|
+
startedAt?: Date | undefined;
|
|
809
|
+
finishedAt?: Date | undefined;
|
|
810
|
+
delayedUntil?: Date | undefined;
|
|
811
|
+
ttl?: string | undefined;
|
|
812
|
+
expiredAt?: Date | undefined;
|
|
813
|
+
} | undefined;
|
|
814
|
+
children?: {
|
|
815
|
+
status: "CANCELED" | "COMPLETED" | "FAILED" | "WAITING_FOR_DEPLOY" | "QUEUED" | "EXECUTING" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
|
|
816
|
+
id: string;
|
|
817
|
+
createdAt: Date;
|
|
818
|
+
tags: string[];
|
|
819
|
+
depth: number;
|
|
820
|
+
triggerFunction: "triggerAndWait" | "trigger" | "batchTriggerAndWait" | "batchTrigger";
|
|
821
|
+
taskIdentifier: string;
|
|
822
|
+
isQueued: boolean;
|
|
823
|
+
isExecuting: boolean;
|
|
824
|
+
isCompleted: boolean;
|
|
825
|
+
isSuccess: boolean;
|
|
826
|
+
isFailed: boolean;
|
|
827
|
+
isCancelled: boolean;
|
|
828
|
+
isTest: boolean;
|
|
829
|
+
updatedAt: Date;
|
|
830
|
+
costInCents: number;
|
|
831
|
+
baseCostInCents: number;
|
|
832
|
+
durationMs: number;
|
|
833
|
+
batchId?: string | undefined;
|
|
834
|
+
idempotencyKey?: string | undefined;
|
|
835
|
+
version?: string | undefined;
|
|
836
|
+
startedAt?: Date | undefined;
|
|
837
|
+
finishedAt?: Date | undefined;
|
|
838
|
+
delayedUntil?: Date | undefined;
|
|
839
|
+
ttl?: string | undefined;
|
|
840
|
+
expiredAt?: Date | undefined;
|
|
841
|
+
}[] | undefined;
|
|
842
|
+
};
|
|
296
843
|
attempts: ({
|
|
297
|
-
status: "PENDING" | "
|
|
844
|
+
status: "PENDING" | "CANCELED" | "COMPLETED" | "FAILED" | "EXECUTING" | "PAUSED";
|
|
298
845
|
id: string;
|
|
299
|
-
updatedAt: Date;
|
|
300
846
|
createdAt: Date;
|
|
847
|
+
updatedAt: Date;
|
|
301
848
|
startedAt?: Date | undefined;
|
|
302
849
|
completedAt?: Date | undefined;
|
|
303
850
|
error?: {
|
|
@@ -306,20 +853,6 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
306
853
|
stackTrace?: string | undefined;
|
|
307
854
|
} | undefined;
|
|
308
855
|
} | undefined)[];
|
|
309
|
-
updatedAt: Date;
|
|
310
|
-
isTest: boolean;
|
|
311
|
-
createdAt: Date;
|
|
312
|
-
tags: string[];
|
|
313
|
-
durationMs: number;
|
|
314
|
-
costInCents: number;
|
|
315
|
-
baseCostInCents: number;
|
|
316
|
-
taskIdentifier: string;
|
|
317
|
-
isQueued: boolean;
|
|
318
|
-
isExecuting: boolean;
|
|
319
|
-
isCompleted: boolean;
|
|
320
|
-
isSuccess: boolean;
|
|
321
|
-
isFailed: boolean;
|
|
322
|
-
isCancelled: boolean;
|
|
323
856
|
payload?: any;
|
|
324
857
|
payloadPresignedUrl?: string | undefined;
|
|
325
858
|
output?: any;
|
|
@@ -328,12 +861,13 @@ declare function poll<TRunId extends RunHandle<any> | AnyTask | string>(runId: R
|
|
|
328
861
|
id: string;
|
|
329
862
|
generator: {
|
|
330
863
|
type: "CRON";
|
|
331
|
-
description: string;
|
|
332
864
|
expression: string;
|
|
865
|
+
description: string;
|
|
333
866
|
};
|
|
334
867
|
externalId?: string | undefined;
|
|
335
868
|
deduplicationKey?: string | undefined;
|
|
336
869
|
} | undefined;
|
|
870
|
+
batchId?: string | undefined;
|
|
337
871
|
idempotencyKey?: string | undefined;
|
|
338
872
|
version?: string | undefined;
|
|
339
873
|
startedAt?: Date | undefined;
|