@trigger.dev/core 0.0.0-v3-prerelease-20240730135037 → 0.0.0-v3-prerelease-20240813130521
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/{catalog-h79CG5Wy.d.ts → catalog-5dTDJ-TQ.d.ts} +2 -2
- package/dist/{catalog-H7yFiZ60.d.mts → catalog-gw5uEsZY.d.mts} +2 -2
- package/dist/{common-CLW82lkt.d.mts → common-kzhJv2gD.d.mts} +37 -23
- package/dist/{common-CLW82lkt.d.ts → common-kzhJv2gD.d.ts} +37 -23
- package/dist/{manager-OBA35PzR.d.ts → manager--64zd93C.d.ts} +1 -1
- package/dist/{manager-KvCabW1a.d.mts → manager-k_givRJe.d.mts} +1 -1
- package/dist/{messages-mhHZiNGN.d.mts → messages-EutV4lq2.d.mts} +354 -155
- package/dist/{messages-mhHZiNGN.d.ts → messages-EutV4lq2.d.ts} +354 -155
- package/dist/{schemas-C9ssfehv.d.mts → schemas-38ilA21d.d.mts} +19 -0
- package/dist/{schemas-C9ssfehv.d.ts → schemas-38ilA21d.d.ts} +19 -0
- package/dist/v3/dev/index.d.mts +2 -2
- package/dist/v3/dev/index.d.ts +2 -2
- package/dist/v3/errors.d.mts +1 -1
- package/dist/v3/errors.d.ts +1 -1
- package/dist/v3/index.d.mts +9 -9
- package/dist/v3/index.d.ts +9 -9
- package/dist/v3/index.js +34 -13
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +34 -13
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.js +1 -1
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +1 -1
- package/dist/v3/otel/index.mjs.map +1 -1
- package/dist/v3/prod/index.d.mts +3 -3
- package/dist/v3/prod/index.d.ts +3 -3
- package/dist/v3/schemas/index.d.mts +4 -4
- package/dist/v3/schemas/index.d.ts +4 -4
- package/dist/v3/schemas/index.js +33 -12
- package/dist/v3/schemas/index.js.map +1 -1
- package/dist/v3/schemas/index.mjs +33 -12
- package/dist/v3/schemas/index.mjs.map +1 -1
- package/dist/v3/utils/ioSerialization.d.mts +2 -1
- package/dist/v3/utils/ioSerialization.d.ts +2 -1
- package/dist/v3/utils/ioSerialization.js +18 -4
- package/dist/v3/utils/ioSerialization.js.map +1 -1
- package/dist/v3/utils/ioSerialization.mjs +18 -5
- package/dist/v3/utils/ioSerialization.mjs.map +1 -1
- package/dist/v3/utils/retries.d.mts +1 -1
- package/dist/v3/utils/retries.d.ts +1 -1
- package/dist/v3/workers/index.d.mts +6 -6
- package/dist/v3/workers/index.d.ts +6 -6
- package/dist/v3/workers/index.js +8 -5
- package/dist/v3/workers/index.js.map +1 -1
- package/dist/v3/workers/index.mjs +8 -5
- package/dist/v3/workers/index.mjs.map +1 -1
- package/dist/v3/zodfetch.d.mts +1 -1
- package/dist/v3/zodfetch.d.ts +1 -1
- package/package.json +1 -1
|
@@ -60,6 +60,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
60
60
|
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
61
61
|
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
62
62
|
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
63
|
+
version: z.ZodOptional<z.ZodString>;
|
|
63
64
|
}, "strip", z.ZodTypeAny, {
|
|
64
65
|
id: string;
|
|
65
66
|
startedAt: Date;
|
|
@@ -74,6 +75,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
74
75
|
context?: any;
|
|
75
76
|
idempotencyKey?: string | undefined;
|
|
76
77
|
maxAttempts?: number | undefined;
|
|
78
|
+
version?: string | undefined;
|
|
77
79
|
}, {
|
|
78
80
|
id: string;
|
|
79
81
|
payload: string;
|
|
@@ -88,6 +90,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
88
90
|
durationMs?: number | undefined;
|
|
89
91
|
costInCents?: number | undefined;
|
|
90
92
|
baseCostInCents?: number | undefined;
|
|
93
|
+
version?: string | undefined;
|
|
91
94
|
}>;
|
|
92
95
|
queue: z.ZodObject<{
|
|
93
96
|
id: z.ZodString;
|
|
@@ -192,6 +195,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
192
195
|
context?: any;
|
|
193
196
|
idempotencyKey?: string | undefined;
|
|
194
197
|
maxAttempts?: number | undefined;
|
|
198
|
+
version?: string | undefined;
|
|
195
199
|
};
|
|
196
200
|
queue: {
|
|
197
201
|
id: string;
|
|
@@ -250,6 +254,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
250
254
|
durationMs?: number | undefined;
|
|
251
255
|
costInCents?: number | undefined;
|
|
252
256
|
baseCostInCents?: number | undefined;
|
|
257
|
+
version?: string | undefined;
|
|
253
258
|
};
|
|
254
259
|
queue: {
|
|
255
260
|
id: string;
|
|
@@ -312,6 +317,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
312
317
|
context?: any;
|
|
313
318
|
idempotencyKey?: string | undefined;
|
|
314
319
|
maxAttempts?: number | undefined;
|
|
320
|
+
version?: string | undefined;
|
|
315
321
|
};
|
|
316
322
|
queue: {
|
|
317
323
|
id: string;
|
|
@@ -374,6 +380,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
374
380
|
durationMs?: number | undefined;
|
|
375
381
|
costInCents?: number | undefined;
|
|
376
382
|
baseCostInCents?: number | undefined;
|
|
383
|
+
version?: string | undefined;
|
|
377
384
|
};
|
|
378
385
|
queue: {
|
|
379
386
|
id: string;
|
|
@@ -459,6 +466,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
459
466
|
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
460
467
|
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
461
468
|
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
469
|
+
version: z.ZodOptional<z.ZodString>;
|
|
462
470
|
}, "strip", z.ZodTypeAny, {
|
|
463
471
|
id: string;
|
|
464
472
|
startedAt: Date;
|
|
@@ -473,6 +481,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
473
481
|
context?: any;
|
|
474
482
|
idempotencyKey?: string | undefined;
|
|
475
483
|
maxAttempts?: number | undefined;
|
|
484
|
+
version?: string | undefined;
|
|
476
485
|
}, {
|
|
477
486
|
id: string;
|
|
478
487
|
payload: string;
|
|
@@ -487,6 +496,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
487
496
|
durationMs?: number | undefined;
|
|
488
497
|
costInCents?: number | undefined;
|
|
489
498
|
baseCostInCents?: number | undefined;
|
|
499
|
+
version?: string | undefined;
|
|
490
500
|
}>;
|
|
491
501
|
queue: z.ZodObject<{
|
|
492
502
|
id: z.ZodString;
|
|
@@ -604,6 +614,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
604
614
|
context?: any;
|
|
605
615
|
idempotencyKey?: string | undefined;
|
|
606
616
|
maxAttempts?: number | undefined;
|
|
617
|
+
version?: string | undefined;
|
|
607
618
|
};
|
|
608
619
|
queue: {
|
|
609
620
|
id: string;
|
|
@@ -667,6 +678,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
667
678
|
durationMs?: number | undefined;
|
|
668
679
|
costInCents?: number | undefined;
|
|
669
680
|
baseCostInCents?: number | undefined;
|
|
681
|
+
version?: string | undefined;
|
|
670
682
|
};
|
|
671
683
|
queue: {
|
|
672
684
|
id: string;
|
|
@@ -755,6 +767,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
755
767
|
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
756
768
|
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
757
769
|
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
770
|
+
version: z.ZodOptional<z.ZodString>;
|
|
758
771
|
}, "strip", z.ZodTypeAny, {
|
|
759
772
|
id: string;
|
|
760
773
|
startedAt: Date;
|
|
@@ -769,6 +782,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
769
782
|
context?: any;
|
|
770
783
|
idempotencyKey?: string | undefined;
|
|
771
784
|
maxAttempts?: number | undefined;
|
|
785
|
+
version?: string | undefined;
|
|
772
786
|
}, {
|
|
773
787
|
id: string;
|
|
774
788
|
payload: string;
|
|
@@ -783,6 +797,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
783
797
|
durationMs?: number | undefined;
|
|
784
798
|
costInCents?: number | undefined;
|
|
785
799
|
baseCostInCents?: number | undefined;
|
|
800
|
+
version?: string | undefined;
|
|
786
801
|
}>;
|
|
787
802
|
queue: z.ZodObject<{
|
|
788
803
|
id: z.ZodString;
|
|
@@ -900,6 +915,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
900
915
|
context?: any;
|
|
901
916
|
idempotencyKey?: string | undefined;
|
|
902
917
|
maxAttempts?: number | undefined;
|
|
918
|
+
version?: string | undefined;
|
|
903
919
|
};
|
|
904
920
|
queue: {
|
|
905
921
|
id: string;
|
|
@@ -963,6 +979,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
963
979
|
durationMs?: number | undefined;
|
|
964
980
|
costInCents?: number | undefined;
|
|
965
981
|
baseCostInCents?: number | undefined;
|
|
982
|
+
version?: string | undefined;
|
|
966
983
|
};
|
|
967
984
|
queue: {
|
|
968
985
|
id: string;
|
|
@@ -1030,6 +1047,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1030
1047
|
context?: any;
|
|
1031
1048
|
idempotencyKey?: string | undefined;
|
|
1032
1049
|
maxAttempts?: number | undefined;
|
|
1050
|
+
version?: string | undefined;
|
|
1033
1051
|
};
|
|
1034
1052
|
queue: {
|
|
1035
1053
|
id: string;
|
|
@@ -1097,6 +1115,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1097
1115
|
durationMs?: number | undefined;
|
|
1098
1116
|
costInCents?: number | undefined;
|
|
1099
1117
|
baseCostInCents?: number | undefined;
|
|
1118
|
+
version?: string | undefined;
|
|
1100
1119
|
};
|
|
1101
1120
|
queue: {
|
|
1102
1121
|
id: string;
|
|
@@ -60,6 +60,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
60
60
|
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
61
61
|
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
62
62
|
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
63
|
+
version: z.ZodOptional<z.ZodString>;
|
|
63
64
|
}, "strip", z.ZodTypeAny, {
|
|
64
65
|
id: string;
|
|
65
66
|
startedAt: Date;
|
|
@@ -74,6 +75,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
74
75
|
context?: any;
|
|
75
76
|
idempotencyKey?: string | undefined;
|
|
76
77
|
maxAttempts?: number | undefined;
|
|
78
|
+
version?: string | undefined;
|
|
77
79
|
}, {
|
|
78
80
|
id: string;
|
|
79
81
|
payload: string;
|
|
@@ -88,6 +90,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
88
90
|
durationMs?: number | undefined;
|
|
89
91
|
costInCents?: number | undefined;
|
|
90
92
|
baseCostInCents?: number | undefined;
|
|
93
|
+
version?: string | undefined;
|
|
91
94
|
}>;
|
|
92
95
|
queue: z.ZodObject<{
|
|
93
96
|
id: z.ZodString;
|
|
@@ -192,6 +195,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
192
195
|
context?: any;
|
|
193
196
|
idempotencyKey?: string | undefined;
|
|
194
197
|
maxAttempts?: number | undefined;
|
|
198
|
+
version?: string | undefined;
|
|
195
199
|
};
|
|
196
200
|
queue: {
|
|
197
201
|
id: string;
|
|
@@ -250,6 +254,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
250
254
|
durationMs?: number | undefined;
|
|
251
255
|
costInCents?: number | undefined;
|
|
252
256
|
baseCostInCents?: number | undefined;
|
|
257
|
+
version?: string | undefined;
|
|
253
258
|
};
|
|
254
259
|
queue: {
|
|
255
260
|
id: string;
|
|
@@ -312,6 +317,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
312
317
|
context?: any;
|
|
313
318
|
idempotencyKey?: string | undefined;
|
|
314
319
|
maxAttempts?: number | undefined;
|
|
320
|
+
version?: string | undefined;
|
|
315
321
|
};
|
|
316
322
|
queue: {
|
|
317
323
|
id: string;
|
|
@@ -374,6 +380,7 @@ declare const TaskRunExecutionPayload: z.ZodObject<{
|
|
|
374
380
|
durationMs?: number | undefined;
|
|
375
381
|
costInCents?: number | undefined;
|
|
376
382
|
baseCostInCents?: number | undefined;
|
|
383
|
+
version?: string | undefined;
|
|
377
384
|
};
|
|
378
385
|
queue: {
|
|
379
386
|
id: string;
|
|
@@ -459,6 +466,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
459
466
|
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
460
467
|
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
461
468
|
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
469
|
+
version: z.ZodOptional<z.ZodString>;
|
|
462
470
|
}, "strip", z.ZodTypeAny, {
|
|
463
471
|
id: string;
|
|
464
472
|
startedAt: Date;
|
|
@@ -473,6 +481,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
473
481
|
context?: any;
|
|
474
482
|
idempotencyKey?: string | undefined;
|
|
475
483
|
maxAttempts?: number | undefined;
|
|
484
|
+
version?: string | undefined;
|
|
476
485
|
}, {
|
|
477
486
|
id: string;
|
|
478
487
|
payload: string;
|
|
@@ -487,6 +496,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
487
496
|
durationMs?: number | undefined;
|
|
488
497
|
costInCents?: number | undefined;
|
|
489
498
|
baseCostInCents?: number | undefined;
|
|
499
|
+
version?: string | undefined;
|
|
490
500
|
}>;
|
|
491
501
|
queue: z.ZodObject<{
|
|
492
502
|
id: z.ZodString;
|
|
@@ -604,6 +614,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
604
614
|
context?: any;
|
|
605
615
|
idempotencyKey?: string | undefined;
|
|
606
616
|
maxAttempts?: number | undefined;
|
|
617
|
+
version?: string | undefined;
|
|
607
618
|
};
|
|
608
619
|
queue: {
|
|
609
620
|
id: string;
|
|
@@ -667,6 +678,7 @@ declare const ProdTaskRunExecution: z.ZodObject<{
|
|
|
667
678
|
durationMs?: number | undefined;
|
|
668
679
|
costInCents?: number | undefined;
|
|
669
680
|
baseCostInCents?: number | undefined;
|
|
681
|
+
version?: string | undefined;
|
|
670
682
|
};
|
|
671
683
|
queue: {
|
|
672
684
|
id: string;
|
|
@@ -755,6 +767,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
755
767
|
durationMs: z.ZodDefault<z.ZodNumber>;
|
|
756
768
|
costInCents: z.ZodDefault<z.ZodNumber>;
|
|
757
769
|
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
770
|
+
version: z.ZodOptional<z.ZodString>;
|
|
758
771
|
}, "strip", z.ZodTypeAny, {
|
|
759
772
|
id: string;
|
|
760
773
|
startedAt: Date;
|
|
@@ -769,6 +782,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
769
782
|
context?: any;
|
|
770
783
|
idempotencyKey?: string | undefined;
|
|
771
784
|
maxAttempts?: number | undefined;
|
|
785
|
+
version?: string | undefined;
|
|
772
786
|
}, {
|
|
773
787
|
id: string;
|
|
774
788
|
payload: string;
|
|
@@ -783,6 +797,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
783
797
|
durationMs?: number | undefined;
|
|
784
798
|
costInCents?: number | undefined;
|
|
785
799
|
baseCostInCents?: number | undefined;
|
|
800
|
+
version?: string | undefined;
|
|
786
801
|
}>;
|
|
787
802
|
queue: z.ZodObject<{
|
|
788
803
|
id: z.ZodString;
|
|
@@ -900,6 +915,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
900
915
|
context?: any;
|
|
901
916
|
idempotencyKey?: string | undefined;
|
|
902
917
|
maxAttempts?: number | undefined;
|
|
918
|
+
version?: string | undefined;
|
|
903
919
|
};
|
|
904
920
|
queue: {
|
|
905
921
|
id: string;
|
|
@@ -963,6 +979,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
963
979
|
durationMs?: number | undefined;
|
|
964
980
|
costInCents?: number | undefined;
|
|
965
981
|
baseCostInCents?: number | undefined;
|
|
982
|
+
version?: string | undefined;
|
|
966
983
|
};
|
|
967
984
|
queue: {
|
|
968
985
|
id: string;
|
|
@@ -1030,6 +1047,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1030
1047
|
context?: any;
|
|
1031
1048
|
idempotencyKey?: string | undefined;
|
|
1032
1049
|
maxAttempts?: number | undefined;
|
|
1050
|
+
version?: string | undefined;
|
|
1033
1051
|
};
|
|
1034
1052
|
queue: {
|
|
1035
1053
|
id: string;
|
|
@@ -1097,6 +1115,7 @@ declare const ProdTaskRunExecutionPayload: z.ZodObject<{
|
|
|
1097
1115
|
durationMs?: number | undefined;
|
|
1098
1116
|
costInCents?: number | undefined;
|
|
1099
1117
|
baseCostInCents?: number | undefined;
|
|
1118
|
+
version?: string | undefined;
|
|
1100
1119
|
};
|
|
1101
1120
|
queue: {
|
|
1102
1121
|
id: string;
|
package/dist/v3/dev/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-
|
|
2
|
-
import { R as RuntimeManager } from '../../manager-
|
|
1
|
+
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-kzhJv2gD.mjs';
|
|
2
|
+
import { R as RuntimeManager } from '../../manager-k_givRJe.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare class DevRuntimeManager implements RuntimeManager {
|
package/dist/v3/dev/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-
|
|
2
|
-
import { R as RuntimeManager } from '../../manager
|
|
1
|
+
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../../common-kzhJv2gD.js';
|
|
2
|
+
import { R as RuntimeManager } from '../../manager--64zd93C.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
declare class DevRuntimeManager implements RuntimeManager {
|
package/dist/v3/errors.d.mts
CHANGED
package/dist/v3/errors.d.ts
CHANGED
package/dist/v3/index.d.mts
CHANGED
|
@@ -3,18 +3,18 @@ export { APIHeaders, ApiConnectionError, ApiError, AuthenticationError, BadReque
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { RunStatus, TriggerTaskRequestBody, BatchTriggerTaskRequestBody, ListRunResponseItem, RescheduleRunRequestBody, AddTagsRequestBody, CreateScheduleOptions, ListScheduleOptions, UpdateScheduleOptions, CreateEnvironmentVariableRequestBody, UpdateEnvironmentVariableRequestBody, Accessory } from './schemas/index.mjs';
|
|
5
5
|
export { AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunTags, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskResponse, Variant, WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers } from './schemas/index.mjs';
|
|
6
|
-
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../common-
|
|
7
|
-
export { f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../common-
|
|
8
|
-
import { C as Clock, a as ClockTime, b as TaskCatalog, T as TaskMetadataWithFunctions } from '../catalog-
|
|
9
|
-
export { f as Context, F as FailureFnParams, k as HandleErrorArgs, h as HandleErrorFnParams, H as HandleErrorFunction, i as HandleErrorModificationOptions, j as HandleErrorResult, e as InitFnParams, I as InitOutput, M as MiddlewareFnParams, P as ProjectConfig, n as ResolveEnvironmentVariablesFunction, m as ResolveEnvironmentVariablesParams, l as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, g as SuccessFnParams, u as usage } from '../catalog-
|
|
6
|
+
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../common-kzhJv2gD.mjs';
|
|
7
|
+
export { f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../common-kzhJv2gD.mjs';
|
|
8
|
+
import { C as Clock, a as ClockTime, b as TaskCatalog, T as TaskMetadataWithFunctions } from '../catalog-gw5uEsZY.mjs';
|
|
9
|
+
export { f as Context, F as FailureFnParams, k as HandleErrorArgs, h as HandleErrorFnParams, H as HandleErrorFunction, i as HandleErrorModificationOptions, j as HandleErrorResult, e as InitFnParams, I as InitOutput, M as MiddlewareFnParams, P as ProjectConfig, n as ResolveEnvironmentVariablesFunction, m as ResolveEnvironmentVariablesParams, l as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, g as SuccessFnParams, u as usage } from '../catalog-gw5uEsZY.mjs';
|
|
10
10
|
export { AbortTaskRunError, SerializedError, correctErrorStackTrace, createErrorTaskError, createJsonErrorObject, groupTaskMetadataIssuesByTask, parseError, sanitizeError } from './errors.mjs';
|
|
11
11
|
import { Attributes } from '@opentelemetry/api';
|
|
12
12
|
export { logger } from './logger-api.mjs';
|
|
13
|
-
import { R as RuntimeManager } from '../manager-
|
|
14
|
-
import { B as BackgroundWorkerProperties } from '../messages-
|
|
15
|
-
export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages-
|
|
16
|
-
import { a as TaskFileMetadata, b as TaskMetadataWithFilePath } from '../schemas-
|
|
17
|
-
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, P as Prettify, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, l as RequireKeys, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, T as TaskMetadata, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-
|
|
13
|
+
import { R as RuntimeManager } from '../manager-k_givRJe.mjs';
|
|
14
|
+
import { B as BackgroundWorkerProperties } from '../messages-EutV4lq2.mjs';
|
|
15
|
+
export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages-EutV4lq2.mjs';
|
|
16
|
+
import { a as TaskFileMetadata, b as TaskMetadataWithFilePath } from '../schemas-38ilA21d.mjs';
|
|
17
|
+
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, P as Prettify, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, l as RequireKeys, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, T as TaskMetadata, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-38ilA21d.mjs';
|
|
18
18
|
export { SemanticInternalAttributes } from './semanticInternalAttributes.mjs';
|
|
19
19
|
export { formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, millisecondsToNanoseconds, nanosecondsToMilliseconds } from './utils/durations.mjs';
|
|
20
20
|
export { T as TriggerTracer } from '../tracer-N0p2Fuuv.mjs';
|
package/dist/v3/index.d.ts
CHANGED
|
@@ -3,18 +3,18 @@ export { APIHeaders, ApiConnectionError, ApiError, AuthenticationError, BadReque
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { RunStatus, TriggerTaskRequestBody, BatchTriggerTaskRequestBody, ListRunResponseItem, RescheduleRunRequestBody, AddTagsRequestBody, CreateScheduleOptions, ListScheduleOptions, UpdateScheduleOptions, CreateEnvironmentVariableRequestBody, UpdateEnvironmentVariableRequestBody, Accessory } from './schemas/index.js';
|
|
5
5
|
export { AttemptStatus, BackgroundWorkerMetadata, BatchTriggerTaskResponse, CanceledRunResponse, CancellationSpanEvent, CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, CreateUploadPayloadUrlResponseBody, DeletedScheduleObject, DeploymentErrorData, EnvironmentVariable, EnvironmentVariableResponseBody, EnvironmentVariableValue, EnvironmentVariables, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, ImageDetailsMetadata, ImportEnvironmentVariablesRequestBody, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, ListRunResponse, ListSchedulesResult, OtherSpanEvent, PRIMARY_VARIANT, ReplayRunResponse, RetrieveRunResponse, RunEnvironmentDetails, RunScheduleDetails, RunTags, ScheduleGenerator, ScheduleObject, ScheduleType, ScheduledTaskPayload, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, TaskEventStyle, TaskResource, TimezonesResult, TriggerTaskResponse, Variant, WhoAmIResponse, WhoAmIResponseSchema, isCancellationSpanEvent, isExceptionSpanEvent, stringPatternMatchers } from './schemas/index.js';
|
|
6
|
-
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../common-
|
|
7
|
-
export { f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../common-
|
|
8
|
-
import { C as Clock, a as ClockTime, b as TaskCatalog, T as TaskMetadataWithFunctions } from '../catalog-
|
|
9
|
-
export { f as Context, F as FailureFnParams, k as HandleErrorArgs, h as HandleErrorFnParams, H as HandleErrorFunction, i as HandleErrorModificationOptions, j as HandleErrorResult, e as InitFnParams, I as InitOutput, M as MiddlewareFnParams, P as ProjectConfig, n as ResolveEnvironmentVariablesFunction, m as ResolveEnvironmentVariablesParams, l as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, g as SuccessFnParams, u as usage } from '../catalog-
|
|
6
|
+
import { T as TaskRunExecutionResult, B as BatchTaskRunExecutionResult, a as TaskRunContext } from '../common-kzhJv2gD.js';
|
|
7
|
+
export { f as MachineConfig, d as MachineCpu, e as MachineMemory, g as MachinePreset, M as MachinePresetName, m as TaskRun, h as TaskRunBuiltInError, i as TaskRunCustomErrorObject, b as TaskRunError, k as TaskRunErrorCodes, c as TaskRunExecution, o as TaskRunExecutionAttempt, t as TaskRunExecutionBatch, p as TaskRunExecutionEnvironment, q as TaskRunExecutionOrganization, r as TaskRunExecutionProject, s as TaskRunExecutionQueue, u as TaskRunExecutionRetry, n as TaskRunExecutionTask, v as TaskRunExecutionUsage, w as TaskRunFailedExecutionResult, l as TaskRunInternalError, j as TaskRunStringError, x as TaskRunSuccessfulExecutionResult } from '../common-kzhJv2gD.js';
|
|
8
|
+
import { C as Clock, a as ClockTime, b as TaskCatalog, T as TaskMetadataWithFunctions } from '../catalog-5dTDJ-TQ.js';
|
|
9
|
+
export { f as Context, F as FailureFnParams, k as HandleErrorArgs, h as HandleErrorFnParams, H as HandleErrorFunction, i as HandleErrorModificationOptions, j as HandleErrorResult, e as InitFnParams, I as InitOutput, M as MiddlewareFnParams, P as ProjectConfig, n as ResolveEnvironmentVariablesFunction, m as ResolveEnvironmentVariablesParams, l as ResolveEnvironmentVariablesResult, R as RunFnParams, S as StartFnParams, g as SuccessFnParams, u as usage } from '../catalog-5dTDJ-TQ.js';
|
|
10
10
|
export { AbortTaskRunError, SerializedError, correctErrorStackTrace, createErrorTaskError, createJsonErrorObject, groupTaskMetadataIssuesByTask, parseError, sanitizeError } from './errors.js';
|
|
11
11
|
import { Attributes } from '@opentelemetry/api';
|
|
12
12
|
export { logger } from './logger-api.js';
|
|
13
|
-
import { R as RuntimeManager } from '../manager
|
|
14
|
-
import { B as BackgroundWorkerProperties } from '../messages-
|
|
15
|
-
export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages-
|
|
16
|
-
import { a as TaskFileMetadata, b as TaskMetadataWithFilePath } from '../schemas-
|
|
17
|
-
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, P as Prettify, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, l as RequireKeys, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, T as TaskMetadata, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-
|
|
13
|
+
import { R as RuntimeManager } from '../manager--64zd93C.js';
|
|
14
|
+
import { B as BackgroundWorkerProperties } from '../messages-EutV4lq2.js';
|
|
15
|
+
export { c as BackgroundWorkerClientMessages, b as BackgroundWorkerServerMessages, i as ClientToSharedQueueMessages, m as CoordinatorSocketData, C as CoordinatorToPlatformMessages, k as CoordinatorToProdWorkerMessages, h as PlatformToCoordinatorMessages, g as PlatformToProviderMessages, a as ProdChildToWorkerMessages, l as ProdWorkerSocketData, P as ProdWorkerToChildMessages, j as ProdWorkerToCoordinatorMessages, f as ProviderToPlatformMessages, S as SharedQueueToClientMessages, T as TaskMetadataFailedToParseData, U as UncaughtExceptionMessage, e as childToWorkerMessages, d as clientWebsocketMessages, s as serverWebsocketMessages, w as workerToChildMessages } from '../messages-EutV4lq2.js';
|
|
16
|
+
import { a as TaskFileMetadata, b as TaskMetadataWithFilePath } from '../schemas-38ilA21d.js';
|
|
17
|
+
export { C as Config, E as EnvironmentType, F as FixedWindowRateLimit, h as PostStartCauses, i as PreStopCauses, P as Prettify, d as ProdTaskRunExecution, e as ProdTaskRunExecutionPayload, Q as QueueOptions, f as RateLimitOptions, l as RequireKeys, j as ResolvedConfig, R as RetryOptions, g as ScheduleMetadata, S as SlidingWindowRateLimit, T as TaskMetadata, k as TaskRunExecutionLazyAttemptPayload, c as TaskRunExecutionPayload, W as WaitReason } from '../schemas-38ilA21d.js';
|
|
18
18
|
export { SemanticInternalAttributes } from './semanticInternalAttributes.js';
|
|
19
19
|
export { formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, millisecondsToNanoseconds, nanosecondsToMilliseconds } from './utils/durations.js';
|
|
20
20
|
export { T as TriggerTracer } from '../tracer-N0p2Fuuv.js';
|
package/dist/v3/index.js
CHANGED
|
@@ -33,7 +33,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
// package.json
|
|
36
|
-
var version = "0.0.0-v3-prerelease-
|
|
36
|
+
var version = "0.0.0-v3-prerelease-20240813130521";
|
|
37
37
|
var dependencies = {
|
|
38
38
|
"@google-cloud/precise-date": "^4.0.0",
|
|
39
39
|
"@opentelemetry/api": "^1.8.0",
|
|
@@ -129,7 +129,8 @@ var TaskRunErrorCodes = {
|
|
|
129
129
|
TASK_RUN_CANCELLED: "TASK_RUN_CANCELLED",
|
|
130
130
|
TASK_OUTPUT_ERROR: "TASK_OUTPUT_ERROR",
|
|
131
131
|
HANDLE_ERROR_ERROR: "HANDLE_ERROR_ERROR",
|
|
132
|
-
GRACEFUL_EXIT_TIMEOUT: "GRACEFUL_EXIT_TIMEOUT"
|
|
132
|
+
GRACEFUL_EXIT_TIMEOUT: "GRACEFUL_EXIT_TIMEOUT",
|
|
133
|
+
TASK_RUN_CRASHED: "TASK_RUN_CRASHED"
|
|
133
134
|
};
|
|
134
135
|
var TaskRunInternalError = zod.z.object({
|
|
135
136
|
type: zod.z.literal("INTERNAL_ERROR"),
|
|
@@ -146,7 +147,8 @@ var TaskRunInternalError = zod.z.object({
|
|
|
146
147
|
"TASK_OUTPUT_ERROR",
|
|
147
148
|
"HANDLE_ERROR_ERROR",
|
|
148
149
|
"GRACEFUL_EXIT_TIMEOUT",
|
|
149
|
-
"TASK_RUN_HEARTBEAT_TIMEOUT"
|
|
150
|
+
"TASK_RUN_HEARTBEAT_TIMEOUT",
|
|
151
|
+
"TASK_RUN_CRASHED"
|
|
150
152
|
]),
|
|
151
153
|
message: zod.z.string().optional(),
|
|
152
154
|
stackTrace: zod.z.string().optional()
|
|
@@ -170,7 +172,8 @@ var TaskRun = zod.z.object({
|
|
|
170
172
|
maxAttempts: zod.z.number().optional(),
|
|
171
173
|
durationMs: zod.z.number().default(0),
|
|
172
174
|
costInCents: zod.z.number().default(0),
|
|
173
|
-
baseCostInCents: zod.z.number().default(0)
|
|
175
|
+
baseCostInCents: zod.z.number().default(0),
|
|
176
|
+
version: zod.z.string().optional()
|
|
174
177
|
});
|
|
175
178
|
var TaskRunExecutionTask = zod.z.object({
|
|
176
179
|
id: zod.z.string(),
|
|
@@ -720,7 +723,7 @@ var CreateBackgroundWorkerResponse = zod.z.object({
|
|
|
720
723
|
var RunTag = zod.z.string().max(64, "Tags must be less than 64 characters");
|
|
721
724
|
var RunTags = zod.z.union([
|
|
722
725
|
RunTag,
|
|
723
|
-
RunTag.array()
|
|
726
|
+
RunTag.array()
|
|
724
727
|
]);
|
|
725
728
|
var TriggerTaskRequestBody = zod.z.object({
|
|
726
729
|
payload: zod.z.any(),
|
|
@@ -1100,6 +1103,7 @@ var BackgroundWorkerServerMessages = zod.z.discriminatedUnion("type", [
|
|
|
1100
1103
|
image: zod.z.string(),
|
|
1101
1104
|
version: zod.z.string(),
|
|
1102
1105
|
machine: MachinePreset,
|
|
1106
|
+
nextAttemptNumber: zod.z.number().optional(),
|
|
1103
1107
|
// identifiers
|
|
1104
1108
|
id: zod.z.string().optional(),
|
|
1105
1109
|
envId: zod.z.string(),
|
|
@@ -1414,6 +1418,7 @@ var PlatformToProviderMessages = {
|
|
|
1414
1418
|
location: zod.z.string(),
|
|
1415
1419
|
reason: zod.z.string().optional(),
|
|
1416
1420
|
imageRef: zod.z.string(),
|
|
1421
|
+
attemptNumber: zod.z.number().optional(),
|
|
1417
1422
|
machine: MachinePreset,
|
|
1418
1423
|
// identifiers
|
|
1419
1424
|
checkpointId: zod.z.string(),
|
|
@@ -1537,7 +1542,10 @@ var CoordinatorToPlatformMessages = {
|
|
|
1537
1542
|
},
|
|
1538
1543
|
TASK_RUN_COMPLETED: {
|
|
1539
1544
|
message: zod.z.object({
|
|
1540
|
-
version: zod.z.
|
|
1545
|
+
version: zod.z.enum([
|
|
1546
|
+
"v1",
|
|
1547
|
+
"v2"
|
|
1548
|
+
]).default("v1"),
|
|
1541
1549
|
execution: ProdTaskRunExecution,
|
|
1542
1550
|
completion: TaskRunExecutionResult,
|
|
1543
1551
|
checkpoint: zod.z.object({
|
|
@@ -1749,11 +1757,19 @@ var ProdWorkerToCoordinatorMessages = {
|
|
|
1749
1757
|
})
|
|
1750
1758
|
},
|
|
1751
1759
|
READY_FOR_RESUME: {
|
|
1752
|
-
message: zod.z.
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1760
|
+
message: zod.z.discriminatedUnion("version", [
|
|
1761
|
+
zod.z.object({
|
|
1762
|
+
version: zod.z.literal("v1"),
|
|
1763
|
+
attemptFriendlyId: zod.z.string(),
|
|
1764
|
+
type: WaitReason
|
|
1765
|
+
}),
|
|
1766
|
+
zod.z.object({
|
|
1767
|
+
version: zod.z.literal("v2"),
|
|
1768
|
+
attemptFriendlyId: zod.z.string(),
|
|
1769
|
+
attemptNumber: zod.z.number(),
|
|
1770
|
+
type: WaitReason
|
|
1771
|
+
})
|
|
1772
|
+
])
|
|
1757
1773
|
},
|
|
1758
1774
|
READY_FOR_CHECKPOINT: {
|
|
1759
1775
|
message: zod.z.object({
|
|
@@ -1792,7 +1808,10 @@ var ProdWorkerToCoordinatorMessages = {
|
|
|
1792
1808
|
},
|
|
1793
1809
|
TASK_RUN_COMPLETED: {
|
|
1794
1810
|
message: zod.z.object({
|
|
1795
|
-
version: zod.z.
|
|
1811
|
+
version: zod.z.enum([
|
|
1812
|
+
"v1",
|
|
1813
|
+
"v2"
|
|
1814
|
+
]).default("v1"),
|
|
1796
1815
|
execution: ProdTaskRunExecution,
|
|
1797
1816
|
completion: TaskRunExecutionResult
|
|
1798
1817
|
}),
|
|
@@ -1888,7 +1907,8 @@ var ProdWorkerToCoordinatorMessages = {
|
|
|
1888
1907
|
SET_STATE: {
|
|
1889
1908
|
message: zod.z.object({
|
|
1890
1909
|
version: zod.z.literal("v1").default("v1"),
|
|
1891
|
-
attemptFriendlyId: zod.z.string().optional()
|
|
1910
|
+
attemptFriendlyId: zod.z.string().optional(),
|
|
1911
|
+
attemptNumber: zod.z.string().optional()
|
|
1892
1912
|
})
|
|
1893
1913
|
}
|
|
1894
1914
|
};
|
|
@@ -1950,6 +1970,7 @@ var ProdWorkerSocketData = zod.z.object({
|
|
|
1950
1970
|
envId: zod.z.string(),
|
|
1951
1971
|
runId: zod.z.string(),
|
|
1952
1972
|
attemptFriendlyId: zod.z.string().optional(),
|
|
1973
|
+
attemptNumber: zod.z.string().optional(),
|
|
1953
1974
|
podName: zod.z.string(),
|
|
1954
1975
|
deploymentId: zod.z.string(),
|
|
1955
1976
|
deploymentVersion: zod.z.string()
|