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