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