@trigger.dev/core 3.3.12 → 3.3.14
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/logger.js +34 -0
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/v3/apiClient/core.d.ts +26 -2
- package/dist/commonjs/v3/apiClient/core.js +51 -1
- package/dist/commonjs/v3/apiClient/core.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +2 -2
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.js +2 -2
- package/dist/commonjs/v3/schemas/api.d.ts +172 -141
- package/dist/commonjs/v3/schemas/api.js +21 -21
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +80 -18
- package/dist/commonjs/v3/schemas/fetch.d.ts +115 -0
- package/dist/commonjs/v3/schemas/messages.d.ts +184 -41
- package/dist/commonjs/v3/schemas/resources.d.ts +56 -12
- package/dist/commonjs/v3/schemas/schemas.d.ts +108 -16
- package/dist/commonjs/v3/schemas/schemas.js +11 -2
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +2 -5
- package/dist/commonjs/v3/zodMessageHandler.d.ts +2 -0
- package/dist/commonjs/v3/zodMessageHandler.js +8 -0
- package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/logger.js +34 -0
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/v3/apiClient/core.d.ts +26 -2
- package/dist/esm/v3/apiClient/core.js +48 -0
- package/dist/esm/v3/apiClient/core.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +2 -2
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.js +2 -2
- package/dist/esm/v3/schemas/api.d.ts +172 -141
- package/dist/esm/v3/schemas/api.js +21 -21
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/build.d.ts +80 -18
- package/dist/esm/v3/schemas/fetch.d.ts +115 -0
- package/dist/esm/v3/schemas/messages.d.ts +184 -41
- package/dist/esm/v3/schemas/resources.d.ts +56 -12
- package/dist/esm/v3/schemas/schemas.d.ts +108 -16
- package/dist/esm/v3/schemas/schemas.js +12 -3
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +2 -5
- package/dist/esm/v3/zodMessageHandler.d.ts +2 -0
- package/dist/esm/v3/zodMessageHandler.js +8 -0
- package/dist/esm/v3/zodMessageHandler.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -1
|
@@ -6,13 +6,13 @@ export declare const TaskResource: z.ZodObject<{
|
|
|
6
6
|
exportName: z.ZodString;
|
|
7
7
|
queue: z.ZodOptional<z.ZodObject<{
|
|
8
8
|
name: z.ZodOptional<z.ZodString>;
|
|
9
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber
|
|
9
|
+
concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
name?: string | undefined;
|
|
12
|
-
concurrencyLimit?: number | undefined;
|
|
12
|
+
concurrencyLimit?: number | null | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
name?: string | undefined;
|
|
15
|
-
concurrencyLimit?: number | undefined;
|
|
15
|
+
concurrencyLimit?: number | null | undefined;
|
|
16
16
|
}>>;
|
|
17
17
|
retry: z.ZodOptional<z.ZodObject<{
|
|
18
18
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -20,18 +20,31 @@ export declare const TaskResource: z.ZodObject<{
|
|
|
20
20
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
21
21
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
29
|
+
}>>;
|
|
23
30
|
}, "strip", z.ZodTypeAny, {
|
|
24
31
|
factor?: number | undefined;
|
|
25
32
|
minTimeoutInMs?: number | undefined;
|
|
26
33
|
maxTimeoutInMs?: number | undefined;
|
|
27
34
|
randomize?: boolean | undefined;
|
|
28
35
|
maxAttempts?: number | undefined;
|
|
36
|
+
outOfMemory?: {
|
|
37
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
38
|
+
} | undefined;
|
|
29
39
|
}, {
|
|
30
40
|
factor?: number | undefined;
|
|
31
41
|
minTimeoutInMs?: number | undefined;
|
|
32
42
|
maxTimeoutInMs?: number | undefined;
|
|
33
43
|
randomize?: boolean | undefined;
|
|
34
44
|
maxAttempts?: number | undefined;
|
|
45
|
+
outOfMemory?: {
|
|
46
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
47
|
+
} | undefined;
|
|
35
48
|
}>>;
|
|
36
49
|
machine: z.ZodOptional<z.ZodObject<{
|
|
37
50
|
cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
@@ -73,11 +86,14 @@ export declare const TaskResource: z.ZodObject<{
|
|
|
73
86
|
maxTimeoutInMs?: number | undefined;
|
|
74
87
|
randomize?: boolean | undefined;
|
|
75
88
|
maxAttempts?: number | undefined;
|
|
89
|
+
outOfMemory?: {
|
|
90
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
91
|
+
} | undefined;
|
|
76
92
|
} | undefined;
|
|
77
93
|
maxDuration?: number | undefined;
|
|
78
94
|
queue?: {
|
|
79
95
|
name?: string | undefined;
|
|
80
|
-
concurrencyLimit?: number | undefined;
|
|
96
|
+
concurrencyLimit?: number | null | undefined;
|
|
81
97
|
} | undefined;
|
|
82
98
|
machine?: {
|
|
83
99
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -100,11 +116,14 @@ export declare const TaskResource: z.ZodObject<{
|
|
|
100
116
|
maxTimeoutInMs?: number | undefined;
|
|
101
117
|
randomize?: boolean | undefined;
|
|
102
118
|
maxAttempts?: number | undefined;
|
|
119
|
+
outOfMemory?: {
|
|
120
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
121
|
+
} | undefined;
|
|
103
122
|
} | undefined;
|
|
104
123
|
maxDuration?: number | undefined;
|
|
105
124
|
queue?: {
|
|
106
125
|
name?: string | undefined;
|
|
107
|
-
concurrencyLimit?: number | undefined;
|
|
126
|
+
concurrencyLimit?: number | null | undefined;
|
|
108
127
|
} | undefined;
|
|
109
128
|
machine?: {
|
|
110
129
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -142,13 +161,13 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
142
161
|
exportName: z.ZodString;
|
|
143
162
|
queue: z.ZodOptional<z.ZodObject<{
|
|
144
163
|
name: z.ZodOptional<z.ZodString>;
|
|
145
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber
|
|
164
|
+
concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
146
165
|
}, "strip", z.ZodTypeAny, {
|
|
147
166
|
name?: string | undefined;
|
|
148
|
-
concurrencyLimit?: number | undefined;
|
|
167
|
+
concurrencyLimit?: number | null | undefined;
|
|
149
168
|
}, {
|
|
150
169
|
name?: string | undefined;
|
|
151
|
-
concurrencyLimit?: number | undefined;
|
|
170
|
+
concurrencyLimit?: number | null | undefined;
|
|
152
171
|
}>>;
|
|
153
172
|
retry: z.ZodOptional<z.ZodObject<{
|
|
154
173
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -156,18 +175,31 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
156
175
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
157
176
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
158
177
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
182
|
+
}, {
|
|
183
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
184
|
+
}>>;
|
|
159
185
|
}, "strip", z.ZodTypeAny, {
|
|
160
186
|
factor?: number | undefined;
|
|
161
187
|
minTimeoutInMs?: number | undefined;
|
|
162
188
|
maxTimeoutInMs?: number | undefined;
|
|
163
189
|
randomize?: boolean | undefined;
|
|
164
190
|
maxAttempts?: number | undefined;
|
|
191
|
+
outOfMemory?: {
|
|
192
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
193
|
+
} | undefined;
|
|
165
194
|
}, {
|
|
166
195
|
factor?: number | undefined;
|
|
167
196
|
minTimeoutInMs?: number | undefined;
|
|
168
197
|
maxTimeoutInMs?: number | undefined;
|
|
169
198
|
randomize?: boolean | undefined;
|
|
170
199
|
maxAttempts?: number | undefined;
|
|
200
|
+
outOfMemory?: {
|
|
201
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
202
|
+
} | undefined;
|
|
171
203
|
}>>;
|
|
172
204
|
machine: z.ZodOptional<z.ZodObject<{
|
|
173
205
|
cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
@@ -209,11 +241,14 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
209
241
|
maxTimeoutInMs?: number | undefined;
|
|
210
242
|
randomize?: boolean | undefined;
|
|
211
243
|
maxAttempts?: number | undefined;
|
|
244
|
+
outOfMemory?: {
|
|
245
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
246
|
+
} | undefined;
|
|
212
247
|
} | undefined;
|
|
213
248
|
maxDuration?: number | undefined;
|
|
214
249
|
queue?: {
|
|
215
250
|
name?: string | undefined;
|
|
216
|
-
concurrencyLimit?: number | undefined;
|
|
251
|
+
concurrencyLimit?: number | null | undefined;
|
|
217
252
|
} | undefined;
|
|
218
253
|
machine?: {
|
|
219
254
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -236,11 +271,14 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
236
271
|
maxTimeoutInMs?: number | undefined;
|
|
237
272
|
randomize?: boolean | undefined;
|
|
238
273
|
maxAttempts?: number | undefined;
|
|
274
|
+
outOfMemory?: {
|
|
275
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
276
|
+
} | undefined;
|
|
239
277
|
} | undefined;
|
|
240
278
|
maxDuration?: number | undefined;
|
|
241
279
|
queue?: {
|
|
242
280
|
name?: string | undefined;
|
|
243
|
-
concurrencyLimit?: number | undefined;
|
|
281
|
+
concurrencyLimit?: number | null | undefined;
|
|
244
282
|
} | undefined;
|
|
245
283
|
machine?: {
|
|
246
284
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -281,11 +319,14 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
281
319
|
maxTimeoutInMs?: number | undefined;
|
|
282
320
|
randomize?: boolean | undefined;
|
|
283
321
|
maxAttempts?: number | undefined;
|
|
322
|
+
outOfMemory?: {
|
|
323
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
324
|
+
} | undefined;
|
|
284
325
|
} | undefined;
|
|
285
326
|
maxDuration?: number | undefined;
|
|
286
327
|
queue?: {
|
|
287
328
|
name?: string | undefined;
|
|
288
|
-
concurrencyLimit?: number | undefined;
|
|
329
|
+
concurrencyLimit?: number | null | undefined;
|
|
289
330
|
} | undefined;
|
|
290
331
|
machine?: {
|
|
291
332
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -319,11 +360,14 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
319
360
|
maxTimeoutInMs?: number | undefined;
|
|
320
361
|
randomize?: boolean | undefined;
|
|
321
362
|
maxAttempts?: number | undefined;
|
|
363
|
+
outOfMemory?: {
|
|
364
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
365
|
+
} | undefined;
|
|
322
366
|
} | undefined;
|
|
323
367
|
maxDuration?: number | undefined;
|
|
324
368
|
queue?: {
|
|
325
369
|
name?: string | undefined;
|
|
326
|
-
concurrencyLimit?: number | undefined;
|
|
370
|
+
concurrencyLimit?: number | null | undefined;
|
|
327
371
|
} | undefined;
|
|
328
372
|
machine?: {
|
|
329
373
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -1410,18 +1410,35 @@ export declare const RetryOptions: z.ZodObject<{
|
|
|
1410
1410
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
1411
1411
|
*/
|
|
1412
1412
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
1413
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
1414
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
1415
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
1416
|
+
*/
|
|
1417
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
1418
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1419
|
+
}, "strip", z.ZodTypeAny, {
|
|
1420
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1421
|
+
}, {
|
|
1422
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1423
|
+
}>>;
|
|
1413
1424
|
}, "strip", z.ZodTypeAny, {
|
|
1414
1425
|
factor?: number | undefined;
|
|
1415
1426
|
minTimeoutInMs?: number | undefined;
|
|
1416
1427
|
maxTimeoutInMs?: number | undefined;
|
|
1417
1428
|
randomize?: boolean | undefined;
|
|
1418
1429
|
maxAttempts?: number | undefined;
|
|
1430
|
+
outOfMemory?: {
|
|
1431
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1432
|
+
} | undefined;
|
|
1419
1433
|
}, {
|
|
1420
1434
|
factor?: number | undefined;
|
|
1421
1435
|
minTimeoutInMs?: number | undefined;
|
|
1422
1436
|
maxTimeoutInMs?: number | undefined;
|
|
1423
1437
|
randomize?: boolean | undefined;
|
|
1424
1438
|
maxAttempts?: number | undefined;
|
|
1439
|
+
outOfMemory?: {
|
|
1440
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1441
|
+
} | undefined;
|
|
1425
1442
|
}>;
|
|
1426
1443
|
export type RetryOptions = z.infer<typeof RetryOptions>;
|
|
1427
1444
|
export declare const QueueOptions: z.ZodObject<{
|
|
@@ -1459,14 +1476,14 @@ export declare const QueueOptions: z.ZodObject<{
|
|
|
1459
1476
|
name: z.ZodOptional<z.ZodString>;
|
|
1460
1477
|
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
1461
1478
|
*
|
|
1462
|
-
* If this property is omitted, the task can potentially use up the full concurrency of an environment
|
|
1463
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber
|
|
1479
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment */
|
|
1480
|
+
concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1464
1481
|
}, "strip", z.ZodTypeAny, {
|
|
1465
1482
|
name?: string | undefined;
|
|
1466
|
-
concurrencyLimit?: number | undefined;
|
|
1483
|
+
concurrencyLimit?: number | null | undefined;
|
|
1467
1484
|
}, {
|
|
1468
1485
|
name?: string | undefined;
|
|
1469
|
-
concurrencyLimit?: number | undefined;
|
|
1486
|
+
concurrencyLimit?: number | null | undefined;
|
|
1470
1487
|
}>;
|
|
1471
1488
|
export type QueueOptions = z.infer<typeof QueueOptions>;
|
|
1472
1489
|
export declare const ScheduleMetadata: z.ZodObject<{
|
|
@@ -1517,14 +1534,14 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1517
1534
|
name: z.ZodOptional<z.ZodString>;
|
|
1518
1535
|
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
1519
1536
|
*
|
|
1520
|
-
* If this property is omitted, the task can potentially use up the full concurrency of an environment
|
|
1521
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber
|
|
1537
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment */
|
|
1538
|
+
concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1522
1539
|
}, "strip", z.ZodTypeAny, {
|
|
1523
1540
|
name?: string | undefined;
|
|
1524
|
-
concurrencyLimit?: number | undefined;
|
|
1541
|
+
concurrencyLimit?: number | null | undefined;
|
|
1525
1542
|
}, {
|
|
1526
1543
|
name?: string | undefined;
|
|
1527
|
-
concurrencyLimit?: number | undefined;
|
|
1544
|
+
concurrencyLimit?: number | null | undefined;
|
|
1528
1545
|
}>>;
|
|
1529
1546
|
retry: z.ZodOptional<z.ZodObject<{
|
|
1530
1547
|
/** The number of attempts before giving up */
|
|
@@ -1543,18 +1560,35 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1543
1560
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
1544
1561
|
*/
|
|
1545
1562
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
1563
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
1564
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
1565
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
1566
|
+
*/
|
|
1567
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
1568
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1569
|
+
}, "strip", z.ZodTypeAny, {
|
|
1570
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1571
|
+
}, {
|
|
1572
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1573
|
+
}>>;
|
|
1546
1574
|
}, "strip", z.ZodTypeAny, {
|
|
1547
1575
|
factor?: number | undefined;
|
|
1548
1576
|
minTimeoutInMs?: number | undefined;
|
|
1549
1577
|
maxTimeoutInMs?: number | undefined;
|
|
1550
1578
|
randomize?: boolean | undefined;
|
|
1551
1579
|
maxAttempts?: number | undefined;
|
|
1580
|
+
outOfMemory?: {
|
|
1581
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1582
|
+
} | undefined;
|
|
1552
1583
|
}, {
|
|
1553
1584
|
factor?: number | undefined;
|
|
1554
1585
|
minTimeoutInMs?: number | undefined;
|
|
1555
1586
|
maxTimeoutInMs?: number | undefined;
|
|
1556
1587
|
randomize?: boolean | undefined;
|
|
1557
1588
|
maxAttempts?: number | undefined;
|
|
1589
|
+
outOfMemory?: {
|
|
1590
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1591
|
+
} | undefined;
|
|
1558
1592
|
}>>;
|
|
1559
1593
|
machine: z.ZodOptional<z.ZodObject<{
|
|
1560
1594
|
cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
@@ -1594,11 +1628,14 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1594
1628
|
maxTimeoutInMs?: number | undefined;
|
|
1595
1629
|
randomize?: boolean | undefined;
|
|
1596
1630
|
maxAttempts?: number | undefined;
|
|
1631
|
+
outOfMemory?: {
|
|
1632
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1633
|
+
} | undefined;
|
|
1597
1634
|
} | undefined;
|
|
1598
1635
|
maxDuration?: number | undefined;
|
|
1599
1636
|
queue?: {
|
|
1600
1637
|
name?: string | undefined;
|
|
1601
|
-
concurrencyLimit?: number | undefined;
|
|
1638
|
+
concurrencyLimit?: number | null | undefined;
|
|
1602
1639
|
} | undefined;
|
|
1603
1640
|
machine?: {
|
|
1604
1641
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -1619,11 +1656,14 @@ export declare const TaskMetadata: z.ZodObject<{
|
|
|
1619
1656
|
maxTimeoutInMs?: number | undefined;
|
|
1620
1657
|
randomize?: boolean | undefined;
|
|
1621
1658
|
maxAttempts?: number | undefined;
|
|
1659
|
+
outOfMemory?: {
|
|
1660
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1661
|
+
} | undefined;
|
|
1622
1662
|
} | undefined;
|
|
1623
1663
|
maxDuration?: number | undefined;
|
|
1624
1664
|
queue?: {
|
|
1625
1665
|
name?: string | undefined;
|
|
1626
|
-
concurrencyLimit?: number | undefined;
|
|
1666
|
+
concurrencyLimit?: number | null | undefined;
|
|
1627
1667
|
} | undefined;
|
|
1628
1668
|
machine?: {
|
|
1629
1669
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -1699,14 +1739,14 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1699
1739
|
name: z.ZodOptional<z.ZodString>;
|
|
1700
1740
|
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
1701
1741
|
*
|
|
1702
|
-
* If this property is omitted, the task can potentially use up the full concurrency of an environment
|
|
1703
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber
|
|
1742
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment */
|
|
1743
|
+
concurrencyLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1704
1744
|
}, "strip", z.ZodTypeAny, {
|
|
1705
1745
|
name?: string | undefined;
|
|
1706
|
-
concurrencyLimit?: number | undefined;
|
|
1746
|
+
concurrencyLimit?: number | null | undefined;
|
|
1707
1747
|
}, {
|
|
1708
1748
|
name?: string | undefined;
|
|
1709
|
-
concurrencyLimit?: number | undefined;
|
|
1749
|
+
concurrencyLimit?: number | null | undefined;
|
|
1710
1750
|
}>>;
|
|
1711
1751
|
retry: z.ZodOptional<z.ZodObject<{
|
|
1712
1752
|
/** The number of attempts before giving up */
|
|
@@ -1725,18 +1765,35 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1725
1765
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
1726
1766
|
*/
|
|
1727
1767
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
1768
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
1769
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
1770
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
1771
|
+
*/
|
|
1772
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
1773
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1774
|
+
}, "strip", z.ZodTypeAny, {
|
|
1775
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1776
|
+
}, {
|
|
1777
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1778
|
+
}>>;
|
|
1728
1779
|
}, "strip", z.ZodTypeAny, {
|
|
1729
1780
|
factor?: number | undefined;
|
|
1730
1781
|
minTimeoutInMs?: number | undefined;
|
|
1731
1782
|
maxTimeoutInMs?: number | undefined;
|
|
1732
1783
|
randomize?: boolean | undefined;
|
|
1733
1784
|
maxAttempts?: number | undefined;
|
|
1785
|
+
outOfMemory?: {
|
|
1786
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1787
|
+
} | undefined;
|
|
1734
1788
|
}, {
|
|
1735
1789
|
factor?: number | undefined;
|
|
1736
1790
|
minTimeoutInMs?: number | undefined;
|
|
1737
1791
|
maxTimeoutInMs?: number | undefined;
|
|
1738
1792
|
randomize?: boolean | undefined;
|
|
1739
1793
|
maxAttempts?: number | undefined;
|
|
1794
|
+
outOfMemory?: {
|
|
1795
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1796
|
+
} | undefined;
|
|
1740
1797
|
}>>;
|
|
1741
1798
|
machine: z.ZodOptional<z.ZodObject<{
|
|
1742
1799
|
cpu: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>]>>;
|
|
@@ -1779,11 +1836,14 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1779
1836
|
maxTimeoutInMs?: number | undefined;
|
|
1780
1837
|
randomize?: boolean | undefined;
|
|
1781
1838
|
maxAttempts?: number | undefined;
|
|
1839
|
+
outOfMemory?: {
|
|
1840
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1841
|
+
} | undefined;
|
|
1782
1842
|
} | undefined;
|
|
1783
1843
|
maxDuration?: number | undefined;
|
|
1784
1844
|
queue?: {
|
|
1785
1845
|
name?: string | undefined;
|
|
1786
|
-
concurrencyLimit?: number | undefined;
|
|
1846
|
+
concurrencyLimit?: number | null | undefined;
|
|
1787
1847
|
} | undefined;
|
|
1788
1848
|
machine?: {
|
|
1789
1849
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -1807,11 +1867,14 @@ export declare const TaskManifest: z.ZodObject<{
|
|
|
1807
1867
|
maxTimeoutInMs?: number | undefined;
|
|
1808
1868
|
randomize?: boolean | undefined;
|
|
1809
1869
|
maxAttempts?: number | undefined;
|
|
1870
|
+
outOfMemory?: {
|
|
1871
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1872
|
+
} | undefined;
|
|
1810
1873
|
} | undefined;
|
|
1811
1874
|
maxDuration?: number | undefined;
|
|
1812
1875
|
queue?: {
|
|
1813
1876
|
name?: string | undefined;
|
|
1814
|
-
concurrencyLimit?: number | undefined;
|
|
1877
|
+
concurrencyLimit?: number | null | undefined;
|
|
1815
1878
|
} | undefined;
|
|
1816
1879
|
machine?: {
|
|
1817
1880
|
cpu?: 1 | 2 | 4 | 0.25 | 0.5 | undefined;
|
|
@@ -1850,18 +1913,35 @@ export declare const Config: z.ZodObject<{
|
|
|
1850
1913
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
1851
1914
|
*/
|
|
1852
1915
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
1916
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
1917
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
1918
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
1919
|
+
*/
|
|
1920
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
1921
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
1922
|
+
}, "strip", z.ZodTypeAny, {
|
|
1923
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1924
|
+
}, {
|
|
1925
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1926
|
+
}>>;
|
|
1853
1927
|
}, "strip", z.ZodTypeAny, {
|
|
1854
1928
|
factor?: number | undefined;
|
|
1855
1929
|
minTimeoutInMs?: number | undefined;
|
|
1856
1930
|
maxTimeoutInMs?: number | undefined;
|
|
1857
1931
|
randomize?: boolean | undefined;
|
|
1858
1932
|
maxAttempts?: number | undefined;
|
|
1933
|
+
outOfMemory?: {
|
|
1934
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1935
|
+
} | undefined;
|
|
1859
1936
|
}, {
|
|
1860
1937
|
factor?: number | undefined;
|
|
1861
1938
|
minTimeoutInMs?: number | undefined;
|
|
1862
1939
|
maxTimeoutInMs?: number | undefined;
|
|
1863
1940
|
randomize?: boolean | undefined;
|
|
1864
1941
|
maxAttempts?: number | undefined;
|
|
1942
|
+
outOfMemory?: {
|
|
1943
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1944
|
+
} | undefined;
|
|
1865
1945
|
}>>;
|
|
1866
1946
|
}, "strip", z.ZodTypeAny, {
|
|
1867
1947
|
enabledInDev: boolean;
|
|
@@ -1871,6 +1951,9 @@ export declare const Config: z.ZodObject<{
|
|
|
1871
1951
|
maxTimeoutInMs?: number | undefined;
|
|
1872
1952
|
randomize?: boolean | undefined;
|
|
1873
1953
|
maxAttempts?: number | undefined;
|
|
1954
|
+
outOfMemory?: {
|
|
1955
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1956
|
+
} | undefined;
|
|
1874
1957
|
} | undefined;
|
|
1875
1958
|
}, {
|
|
1876
1959
|
default?: {
|
|
@@ -1879,6 +1962,9 @@ export declare const Config: z.ZodObject<{
|
|
|
1879
1962
|
maxTimeoutInMs?: number | undefined;
|
|
1880
1963
|
randomize?: boolean | undefined;
|
|
1881
1964
|
maxAttempts?: number | undefined;
|
|
1965
|
+
outOfMemory?: {
|
|
1966
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1967
|
+
} | undefined;
|
|
1882
1968
|
} | undefined;
|
|
1883
1969
|
enabledInDev?: boolean | undefined;
|
|
1884
1970
|
}>>;
|
|
@@ -1903,6 +1989,9 @@ export declare const Config: z.ZodObject<{
|
|
|
1903
1989
|
maxTimeoutInMs?: number | undefined;
|
|
1904
1990
|
randomize?: boolean | undefined;
|
|
1905
1991
|
maxAttempts?: number | undefined;
|
|
1992
|
+
outOfMemory?: {
|
|
1993
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
1994
|
+
} | undefined;
|
|
1906
1995
|
} | undefined;
|
|
1907
1996
|
} | undefined;
|
|
1908
1997
|
additionalPackages?: string[] | undefined;
|
|
@@ -1925,6 +2014,9 @@ export declare const Config: z.ZodObject<{
|
|
|
1925
2014
|
maxTimeoutInMs?: number | undefined;
|
|
1926
2015
|
randomize?: boolean | undefined;
|
|
1927
2016
|
maxAttempts?: number | undefined;
|
|
2017
|
+
outOfMemory?: {
|
|
2018
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
2019
|
+
} | undefined;
|
|
1928
2020
|
} | undefined;
|
|
1929
2021
|
enabledInDev?: boolean | undefined;
|
|
1930
2022
|
} | undefined;
|
|
@@ -80,6 +80,15 @@ exports.RetryOptions = zod_1.z.object({
|
|
|
80
80
|
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
81
81
|
*/
|
|
82
82
|
randomize: zod_1.z.boolean().optional(),
|
|
83
|
+
/** If a run fails with an Out Of Memory (OOM) error and you have this set, it will retry with the machine you specify.
|
|
84
|
+
* Note: it will not default to this [machine](https://trigger.dev/docs/machines) for new runs, only for failures caused by OOM errors.
|
|
85
|
+
* So if you frequently have attempts failing with OOM errors, you should set the [default machine](https://trigger.dev/docs/machines) to be higher.
|
|
86
|
+
*/
|
|
87
|
+
outOfMemory: zod_1.z
|
|
88
|
+
.object({
|
|
89
|
+
machine: common_js_1.MachinePresetName.optional(),
|
|
90
|
+
})
|
|
91
|
+
.optional(),
|
|
83
92
|
});
|
|
84
93
|
exports.QueueOptions = zod_1.z.object({
|
|
85
94
|
/** You can define a shared queue and then pass the name in to your task.
|
|
@@ -116,8 +125,8 @@ exports.QueueOptions = zod_1.z.object({
|
|
|
116
125
|
name: zod_1.z.string().optional(),
|
|
117
126
|
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
118
127
|
*
|
|
119
|
-
* If this property is omitted, the task can potentially use up the full concurrency of an environment
|
|
120
|
-
concurrencyLimit: zod_1.z.number().int().min(0).max(1000).optional(),
|
|
128
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment */
|
|
129
|
+
concurrencyLimit: zod_1.z.number().int().min(0).max(1000).optional().nullable(),
|
|
121
130
|
});
|
|
122
131
|
exports.ScheduleMetadata = zod_1.z.object({
|
|
123
132
|
cron: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/v3/schemas/schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/v3/schemas/schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,2CAAgG;AAEhG;;EAEE;AACW,QAAA,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC;AAG9E,QAAA,uBAAuB,GAAG,OAAC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CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC"}
|
|
@@ -123,17 +123,14 @@ type CommonTaskOptions<TIdentifier extends string, TPayload = void, TOutput = un
|
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
125
|
queue?: QueueOptions;
|
|
126
|
-
/** Configure the spec of the machine you want your task to run on.
|
|
126
|
+
/** Configure the spec of the [machine](https://trigger.dev/docs/machines) you want your task to run on.
|
|
127
127
|
*
|
|
128
128
|
* @example
|
|
129
129
|
*
|
|
130
130
|
* ```ts
|
|
131
131
|
* export const heavyTask = task({
|
|
132
132
|
id: "heavy-task",
|
|
133
|
-
machine:
|
|
134
|
-
cpu: 2,
|
|
135
|
-
memory: 4,
|
|
136
|
-
},
|
|
133
|
+
machine: "medium-1x",
|
|
137
134
|
run: async ({ payload, ctx }) => {
|
|
138
135
|
//...
|
|
139
136
|
},
|
|
@@ -69,10 +69,12 @@ type ZodMessageSenderCallback<TMessageCatalog extends ZodMessageCatalogSchema> =
|
|
|
69
69
|
export type ZodMessageSenderOptions<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
70
70
|
schema: TMessageCatalog;
|
|
71
71
|
sender: ZodMessageSenderCallback<TMessageCatalog>;
|
|
72
|
+
canSendMessage?: () => Promise<boolean> | boolean;
|
|
72
73
|
};
|
|
73
74
|
export declare class ZodMessageSender<TMessageCatalog extends ZodMessageCatalogSchema> {
|
|
74
75
|
#private;
|
|
75
76
|
constructor(options: ZodMessageSenderOptions<TMessageCatalog>);
|
|
77
|
+
validateCanSendMessage(): Promise<boolean>;
|
|
76
78
|
send<K extends keyof TMessageCatalog>(type: K, payload: z.input<TMessageCatalog[K]>): Promise<void>;
|
|
77
79
|
forwardMessage(message: unknown): Promise<void>;
|
|
78
80
|
}
|
|
@@ -145,9 +145,17 @@ function parseMessageFromCatalog(message, schema) {
|
|
|
145
145
|
class ZodMessageSender {
|
|
146
146
|
#schema;
|
|
147
147
|
#sender;
|
|
148
|
+
#canSendMessage;
|
|
148
149
|
constructor(options) {
|
|
149
150
|
this.#schema = options.schema;
|
|
150
151
|
this.#sender = options.sender;
|
|
152
|
+
this.#canSendMessage = options.canSendMessage;
|
|
153
|
+
}
|
|
154
|
+
async validateCanSendMessage() {
|
|
155
|
+
if (!this.#canSendMessage) {
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
return await this.#canSendMessage();
|
|
151
159
|
}
|
|
152
160
|
async send(type, payload) {
|
|
153
161
|
const schema = this.#schema[type];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zodMessageHandler.js","sourceRoot":"","sources":["../../../src/v3/zodMessageHandler.ts"],"names":[],"mappings":";;;AA4MA,0DA0BC;
|
|
1
|
+
{"version":3,"file":"zodMessageHandler.js","sourceRoot":"","sources":["../../../src/v3/zodMessageHandler.ts"],"names":[],"mappings":";;;AA4MA,0DA0BC;AAsFD,oDAmBC;AA/UD,6BAAwB;AAGxB,MAAa,oBAAqB,SAAQ,KAAK;IAEpC;IACA;IAFT,YACS,KAAiB,EACjB,OAAgB;QAEvB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAHd,UAAK,GAAL,KAAK,CAAY;QACjB,YAAO,GAAP,OAAO,CAAS;IAGzB,CAAC;CACF;AAPD,oDAOC;AAqCY,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IACtC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAMH,MAAa,iBAAiB;IAC5B,OAAO,CAAkB;IACzB,SAAS,CAAkD;IAC3D,OAAO,CAA6B;IAEpC,YAAY,OAAkD;QAC5D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;QAC9B,IAAI,CAAC,S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