@trigger.dev/core 0.0.0-prerelease-20250430143421 → 0.0.0-prerelease-20250503193704
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/utils.d.ts +6 -0
- package/dist/commonjs/utils.js +14 -0
- package/dist/commonjs/utils.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +43 -43
- package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
- package/dist/commonjs/v3/lifecycle-hooks-api.d.ts +1 -1
- package/dist/commonjs/v3/lifecycleHooks/index.d.ts +7 -1
- package/dist/commonjs/v3/lifecycleHooks/index.js +18 -0
- package/dist/commonjs/v3/lifecycleHooks/index.js.map +1 -1
- package/dist/commonjs/v3/lifecycleHooks/manager.d.ts +18 -3
- package/dist/commonjs/v3/lifecycleHooks/manager.js +49 -2
- package/dist/commonjs/v3/lifecycleHooks/manager.js.map +1 -1
- package/dist/commonjs/v3/lifecycleHooks/types.d.ts +26 -10
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +17 -17
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.d.ts +4 -2
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js +11 -5
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +164 -164
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.d.ts +3 -3
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js +2 -4
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +12 -12
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +142 -142
- package/dist/commonjs/v3/schemas/api.d.ts +214 -214
- package/dist/commonjs/v3/schemas/build.d.ts +164 -164
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +18 -18
- package/dist/commonjs/v3/schemas/common.d.ts +171 -171
- package/dist/commonjs/v3/schemas/fetch.d.ts +10 -10
- package/dist/commonjs/v3/schemas/messages.d.ts +3046 -3036
- package/dist/commonjs/v3/schemas/messages.js +6 -0
- package/dist/commonjs/v3/schemas/messages.js.map +1 -1
- package/dist/commonjs/v3/schemas/resources.d.ts +34 -34
- package/dist/commonjs/v3/schemas/runEngine.d.ts +68 -68
- package/dist/commonjs/v3/schemas/schemas.d.ts +128 -128
- package/dist/commonjs/v3/schemas/style.d.ts +2 -2
- package/dist/commonjs/v3/schemas/webhooks.d.ts +166 -166
- package/dist/commonjs/v3/streams/asyncIterableStream.d.ts +2 -1
- package/dist/commonjs/v3/streams/asyncIterableStream.js +4 -0
- package/dist/commonjs/v3/streams/asyncIterableStream.js.map +1 -1
- package/dist/commonjs/v3/timeout/api.d.ts +1 -1
- package/dist/commonjs/v3/timeout/api.js +4 -4
- package/dist/commonjs/v3/timeout/api.js.map +1 -1
- package/dist/commonjs/v3/timeout/types.d.ts +1 -1
- package/dist/commonjs/v3/timeout/usageTimeoutManager.d.ts +2 -1
- package/dist/commonjs/v3/timeout/usageTimeoutManager.js +10 -3
- package/dist/commonjs/v3/timeout/usageTimeoutManager.js.map +1 -1
- package/dist/commonjs/v3/tryCatch.d.ts +3 -4
- package/dist/commonjs/v3/types/tasks.d.ts +17 -9
- package/dist/commonjs/v3/types/tasks.js.map +1 -1
- package/dist/commonjs/v3/usage/devUsageManager.js +3 -1
- package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
- package/dist/commonjs/v3/usage-api.d.ts +1 -0
- package/dist/commonjs/v3/workers/taskExecutor.d.ts +1 -1
- package/dist/commonjs/v3/workers/taskExecutor.js +76 -16
- package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
- package/dist/commonjs/v3/zodMessageHandler.d.ts +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/utils.d.ts +6 -0
- package/dist/esm/utils.js +13 -0
- package/dist/esm/utils.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +43 -43
- package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
- package/dist/esm/v3/lifecycle-hooks-api.d.ts +1 -1
- package/dist/esm/v3/lifecycleHooks/index.d.ts +7 -1
- package/dist/esm/v3/lifecycleHooks/index.js +18 -0
- package/dist/esm/v3/lifecycleHooks/index.js.map +1 -1
- package/dist/esm/v3/lifecycleHooks/manager.d.ts +18 -3
- package/dist/esm/v3/lifecycleHooks/manager.js +49 -2
- package/dist/esm/v3/lifecycleHooks/manager.js.map +1 -1
- package/dist/esm/v3/lifecycleHooks/types.d.ts +26 -10
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +17 -17
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.d.ts +4 -2
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js +11 -5
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +164 -164
- package/dist/esm/v3/runEngineWorker/supervisor/session.d.ts +3 -3
- package/dist/esm/v3/runEngineWorker/supervisor/session.js +2 -4
- package/dist/esm/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +12 -12
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +142 -142
- package/dist/esm/v3/schemas/api.d.ts +214 -214
- package/dist/esm/v3/schemas/build.d.ts +164 -164
- package/dist/esm/v3/schemas/checkpoints.d.ts +18 -18
- package/dist/esm/v3/schemas/common.d.ts +171 -171
- package/dist/esm/v3/schemas/fetch.d.ts +10 -10
- package/dist/esm/v3/schemas/messages.d.ts +3046 -3036
- package/dist/esm/v3/schemas/messages.js +6 -0
- package/dist/esm/v3/schemas/messages.js.map +1 -1
- package/dist/esm/v3/schemas/resources.d.ts +34 -34
- package/dist/esm/v3/schemas/runEngine.d.ts +68 -68
- package/dist/esm/v3/schemas/schemas.d.ts +128 -128
- package/dist/esm/v3/schemas/style.d.ts +2 -2
- package/dist/esm/v3/schemas/webhooks.d.ts +166 -166
- package/dist/esm/v3/streams/asyncIterableStream.d.ts +2 -1
- package/dist/esm/v3/streams/asyncIterableStream.js +3 -0
- package/dist/esm/v3/streams/asyncIterableStream.js.map +1 -1
- package/dist/esm/v3/timeout/api.d.ts +1 -1
- package/dist/esm/v3/timeout/api.js +4 -4
- package/dist/esm/v3/timeout/api.js.map +1 -1
- package/dist/esm/v3/timeout/types.d.ts +1 -1
- package/dist/esm/v3/timeout/usageTimeoutManager.d.ts +2 -1
- package/dist/esm/v3/timeout/usageTimeoutManager.js +10 -3
- package/dist/esm/v3/timeout/usageTimeoutManager.js.map +1 -1
- package/dist/esm/v3/tryCatch.d.ts +3 -4
- package/dist/esm/v3/types/tasks.d.ts +17 -9
- package/dist/esm/v3/types/tasks.js.map +1 -1
- package/dist/esm/v3/usage/devUsageManager.js +3 -1
- package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
- package/dist/esm/v3/usage-api.d.ts +1 -0
- package/dist/esm/v3/workers/taskExecutor.d.ts +1 -1
- package/dist/esm/v3/workers/taskExecutor.js +77 -17
- package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
- package/dist/esm/v3/zodMessageHandler.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -506,12 +506,12 @@ export declare const MachineConfig: z.ZodObject<{
|
|
|
506
506
|
memory: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0.25>, z.ZodLiteral<0.5>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<4>, z.ZodLiteral<8>]>>;
|
|
507
507
|
preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
508
508
|
}, "strip", z.ZodTypeAny, {
|
|
509
|
-
cpu?:
|
|
510
|
-
memory?:
|
|
509
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
510
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
511
511
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
512
512
|
}, {
|
|
513
|
-
cpu?:
|
|
514
|
-
memory?:
|
|
513
|
+
cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
|
|
514
|
+
memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
|
|
515
515
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
516
516
|
}>;
|
|
517
517
|
export type MachineConfig = z.infer<typeof MachineConfig>;
|
|
@@ -521,14 +521,14 @@ export declare const MachinePreset: z.ZodObject<{
|
|
|
521
521
|
memory: z.ZodNumber;
|
|
522
522
|
centsPerMs: z.ZodNumber;
|
|
523
523
|
}, "strip", z.ZodTypeAny, {
|
|
524
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
525
524
|
cpu: number;
|
|
526
525
|
memory: number;
|
|
526
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
527
527
|
centsPerMs: number;
|
|
528
528
|
}, {
|
|
529
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
530
529
|
cpu: number;
|
|
531
530
|
memory: number;
|
|
531
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
532
532
|
centsPerMs: number;
|
|
533
533
|
}>;
|
|
534
534
|
export type MachinePreset = z.infer<typeof MachinePreset>;
|
|
@@ -539,14 +539,14 @@ export declare const TaskRunBuiltInError: z.ZodObject<{
|
|
|
539
539
|
message: z.ZodString;
|
|
540
540
|
stackTrace: z.ZodString;
|
|
541
541
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
name: string;
|
|
543
542
|
message: string;
|
|
544
543
|
type: "BUILT_IN_ERROR";
|
|
544
|
+
name: string;
|
|
545
545
|
stackTrace: string;
|
|
546
546
|
}, {
|
|
547
|
-
name: string;
|
|
548
547
|
message: string;
|
|
549
548
|
type: "BUILT_IN_ERROR";
|
|
549
|
+
name: string;
|
|
550
550
|
stackTrace: string;
|
|
551
551
|
}>;
|
|
552
552
|
export type TaskRunBuiltInError = z.infer<typeof TaskRunBuiltInError>;
|
|
@@ -597,14 +597,14 @@ export declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
597
597
|
message: z.ZodString;
|
|
598
598
|
stackTrace: z.ZodString;
|
|
599
599
|
}, "strip", z.ZodTypeAny, {
|
|
600
|
-
name: string;
|
|
601
600
|
message: string;
|
|
602
601
|
type: "BUILT_IN_ERROR";
|
|
602
|
+
name: string;
|
|
603
603
|
stackTrace: string;
|
|
604
604
|
}, {
|
|
605
|
-
name: string;
|
|
606
605
|
message: string;
|
|
607
606
|
type: "BUILT_IN_ERROR";
|
|
607
|
+
name: string;
|
|
608
608
|
stackTrace: string;
|
|
609
609
|
}>, z.ZodObject<{
|
|
610
610
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -674,37 +674,37 @@ export declare const TaskRun: z.ZodObject<{
|
|
|
674
674
|
/** The priority of the run. Wih a value of 10 it will be dequeued before runs that were triggered 9 seconds before it (assuming they had no priority set). */
|
|
675
675
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
676
676
|
}, "strip", z.ZodTypeAny, {
|
|
677
|
-
id: string;
|
|
678
|
-
startedAt: Date;
|
|
679
677
|
payload: string;
|
|
678
|
+
id: string;
|
|
680
679
|
payloadType: string;
|
|
681
680
|
tags: string[];
|
|
682
681
|
isTest: boolean;
|
|
683
682
|
createdAt: Date;
|
|
683
|
+
startedAt: Date;
|
|
684
684
|
durationMs: number;
|
|
685
685
|
costInCents: number;
|
|
686
686
|
baseCostInCents: number;
|
|
687
|
+
context?: any;
|
|
688
|
+
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
687
689
|
idempotencyKey?: string | undefined;
|
|
688
690
|
maxAttempts?: number | undefined;
|
|
689
691
|
version?: string | undefined;
|
|
690
|
-
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
691
692
|
maxDuration?: number | undefined;
|
|
692
|
-
context?: any;
|
|
693
693
|
priority?: number | undefined;
|
|
694
694
|
}, {
|
|
695
|
-
id: string;
|
|
696
695
|
payload: string;
|
|
696
|
+
id: string;
|
|
697
697
|
payloadType: string;
|
|
698
698
|
tags: string[];
|
|
699
699
|
createdAt: Date;
|
|
700
|
-
|
|
700
|
+
context?: any;
|
|
701
|
+
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
701
702
|
isTest?: boolean | undefined;
|
|
703
|
+
startedAt?: Date | undefined;
|
|
702
704
|
idempotencyKey?: string | undefined;
|
|
703
705
|
maxAttempts?: number | undefined;
|
|
704
706
|
version?: string | undefined;
|
|
705
|
-
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
706
707
|
maxDuration?: number | undefined;
|
|
707
|
-
context?: any;
|
|
708
708
|
durationMs?: number | undefined;
|
|
709
709
|
costInCents?: number | undefined;
|
|
710
710
|
baseCostInCents?: number | undefined;
|
|
@@ -888,37 +888,37 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
888
888
|
/** The priority of the run. Wih a value of 10 it will be dequeued before runs that were triggered 9 seconds before it (assuming they had no priority set). */
|
|
889
889
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
890
890
|
}, "strip", z.ZodTypeAny, {
|
|
891
|
-
id: string;
|
|
892
|
-
startedAt: Date;
|
|
893
891
|
payload: string;
|
|
892
|
+
id: string;
|
|
894
893
|
payloadType: string;
|
|
895
894
|
tags: string[];
|
|
896
895
|
isTest: boolean;
|
|
897
896
|
createdAt: Date;
|
|
897
|
+
startedAt: Date;
|
|
898
898
|
durationMs: number;
|
|
899
899
|
costInCents: number;
|
|
900
900
|
baseCostInCents: number;
|
|
901
|
+
context?: any;
|
|
902
|
+
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
901
903
|
idempotencyKey?: string | undefined;
|
|
902
904
|
maxAttempts?: number | undefined;
|
|
903
905
|
version?: string | undefined;
|
|
904
|
-
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
905
906
|
maxDuration?: number | undefined;
|
|
906
|
-
context?: any;
|
|
907
907
|
priority?: number | undefined;
|
|
908
908
|
}, {
|
|
909
|
-
id: string;
|
|
910
909
|
payload: string;
|
|
910
|
+
id: string;
|
|
911
911
|
payloadType: string;
|
|
912
912
|
tags: string[];
|
|
913
913
|
createdAt: Date;
|
|
914
|
-
|
|
914
|
+
context?: any;
|
|
915
|
+
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
915
916
|
isTest?: boolean | undefined;
|
|
917
|
+
startedAt?: Date | undefined;
|
|
916
918
|
idempotencyKey?: string | undefined;
|
|
917
919
|
maxAttempts?: number | undefined;
|
|
918
920
|
version?: string | undefined;
|
|
919
|
-
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
920
921
|
maxDuration?: number | undefined;
|
|
921
|
-
context?: any;
|
|
922
922
|
durationMs?: number | undefined;
|
|
923
923
|
costInCents?: number | undefined;
|
|
924
924
|
baseCostInCents?: number | undefined;
|
|
@@ -995,14 +995,14 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
995
995
|
memory: z.ZodNumber;
|
|
996
996
|
centsPerMs: z.ZodNumber;
|
|
997
997
|
}, "strip", z.ZodTypeAny, {
|
|
998
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
999
998
|
cpu: number;
|
|
1000
999
|
memory: number;
|
|
1000
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1001
1001
|
centsPerMs: number;
|
|
1002
1002
|
}, {
|
|
1003
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1004
1003
|
cpu: number;
|
|
1005
1004
|
memory: number;
|
|
1005
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1006
1006
|
centsPerMs: number;
|
|
1007
1007
|
}>;
|
|
1008
1008
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1020,22 +1020,22 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
1020
1020
|
backgroundWorkerTaskId: string;
|
|
1021
1021
|
};
|
|
1022
1022
|
run: {
|
|
1023
|
-
id: string;
|
|
1024
|
-
startedAt: Date;
|
|
1025
1023
|
payload: string;
|
|
1024
|
+
id: string;
|
|
1026
1025
|
payloadType: string;
|
|
1027
1026
|
tags: string[];
|
|
1028
1027
|
isTest: boolean;
|
|
1029
1028
|
createdAt: Date;
|
|
1029
|
+
startedAt: Date;
|
|
1030
1030
|
durationMs: number;
|
|
1031
1031
|
costInCents: number;
|
|
1032
1032
|
baseCostInCents: number;
|
|
1033
|
+
context?: any;
|
|
1034
|
+
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
1033
1035
|
idempotencyKey?: string | undefined;
|
|
1034
1036
|
maxAttempts?: number | undefined;
|
|
1035
1037
|
version?: string | undefined;
|
|
1036
|
-
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
1037
1038
|
maxDuration?: number | undefined;
|
|
1038
|
-
context?: any;
|
|
1039
1039
|
priority?: number | undefined;
|
|
1040
1040
|
} & {
|
|
1041
1041
|
traceContext?: Record<string, unknown> | undefined;
|
|
@@ -1061,9 +1061,9 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
1061
1061
|
ref: string;
|
|
1062
1062
|
};
|
|
1063
1063
|
machine: {
|
|
1064
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1065
1064
|
cpu: number;
|
|
1066
1065
|
memory: number;
|
|
1066
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1067
1067
|
centsPerMs: number;
|
|
1068
1068
|
};
|
|
1069
1069
|
batch?: {
|
|
@@ -1084,19 +1084,19 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
1084
1084
|
backgroundWorkerTaskId: string;
|
|
1085
1085
|
};
|
|
1086
1086
|
run: {
|
|
1087
|
-
id: string;
|
|
1088
1087
|
payload: string;
|
|
1088
|
+
id: string;
|
|
1089
1089
|
payloadType: string;
|
|
1090
1090
|
tags: string[];
|
|
1091
1091
|
createdAt: Date;
|
|
1092
|
-
|
|
1092
|
+
context?: any;
|
|
1093
|
+
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
1093
1094
|
isTest?: boolean | undefined;
|
|
1095
|
+
startedAt?: Date | undefined;
|
|
1094
1096
|
idempotencyKey?: string | undefined;
|
|
1095
1097
|
maxAttempts?: number | undefined;
|
|
1096
1098
|
version?: string | undefined;
|
|
1097
|
-
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
1098
1099
|
maxDuration?: number | undefined;
|
|
1099
|
-
context?: any;
|
|
1100
1100
|
durationMs?: number | undefined;
|
|
1101
1101
|
costInCents?: number | undefined;
|
|
1102
1102
|
baseCostInCents?: number | undefined;
|
|
@@ -1125,9 +1125,9 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
1125
1125
|
ref: string;
|
|
1126
1126
|
};
|
|
1127
1127
|
machine: {
|
|
1128
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1129
1128
|
cpu: number;
|
|
1130
1129
|
memory: number;
|
|
1130
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1131
1131
|
centsPerMs: number;
|
|
1132
1132
|
};
|
|
1133
1133
|
batch?: {
|
|
@@ -1203,32 +1203,32 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
1203
1203
|
baseCostInCents: z.ZodDefault<z.ZodNumber>;
|
|
1204
1204
|
/** The priority of the run. Wih a value of 10 it will be dequeued before runs that were triggered 9 seconds before it (assuming they had no priority set). */
|
|
1205
1205
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
1206
|
-
}, "payload" | "
|
|
1206
|
+
}, "payload" | "metadata" | "payloadType">, "strip", z.ZodTypeAny, {
|
|
1207
1207
|
id: string;
|
|
1208
|
-
startedAt: Date;
|
|
1209
1208
|
tags: string[];
|
|
1210
1209
|
isTest: boolean;
|
|
1211
1210
|
createdAt: Date;
|
|
1211
|
+
startedAt: Date;
|
|
1212
1212
|
durationMs: number;
|
|
1213
1213
|
costInCents: number;
|
|
1214
1214
|
baseCostInCents: number;
|
|
1215
|
+
context?: any;
|
|
1215
1216
|
idempotencyKey?: string | undefined;
|
|
1216
1217
|
maxAttempts?: number | undefined;
|
|
1217
1218
|
version?: string | undefined;
|
|
1218
1219
|
maxDuration?: number | undefined;
|
|
1219
|
-
context?: any;
|
|
1220
1220
|
priority?: number | undefined;
|
|
1221
1221
|
}, {
|
|
1222
1222
|
id: string;
|
|
1223
1223
|
tags: string[];
|
|
1224
1224
|
createdAt: Date;
|
|
1225
|
-
|
|
1225
|
+
context?: any;
|
|
1226
1226
|
isTest?: boolean | undefined;
|
|
1227
|
+
startedAt?: Date | undefined;
|
|
1227
1228
|
idempotencyKey?: string | undefined;
|
|
1228
1229
|
maxAttempts?: number | undefined;
|
|
1229
1230
|
version?: string | undefined;
|
|
1230
1231
|
maxDuration?: number | undefined;
|
|
1231
|
-
context?: any;
|
|
1232
1232
|
durationMs?: number | undefined;
|
|
1233
1233
|
costInCents?: number | undefined;
|
|
1234
1234
|
baseCostInCents?: number | undefined;
|
|
@@ -1299,14 +1299,14 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
1299
1299
|
memory: z.ZodNumber;
|
|
1300
1300
|
centsPerMs: z.ZodNumber;
|
|
1301
1301
|
}, "strip", z.ZodTypeAny, {
|
|
1302
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1303
1302
|
cpu: number;
|
|
1304
1303
|
memory: number;
|
|
1304
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1305
1305
|
centsPerMs: number;
|
|
1306
1306
|
}, {
|
|
1307
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1308
1307
|
cpu: number;
|
|
1309
1308
|
memory: number;
|
|
1309
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1310
1310
|
centsPerMs: number;
|
|
1311
1311
|
}>>;
|
|
1312
1312
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1323,18 +1323,18 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
1323
1323
|
};
|
|
1324
1324
|
run: {
|
|
1325
1325
|
id: string;
|
|
1326
|
-
startedAt: Date;
|
|
1327
1326
|
tags: string[];
|
|
1328
1327
|
isTest: boolean;
|
|
1329
1328
|
createdAt: Date;
|
|
1329
|
+
startedAt: Date;
|
|
1330
1330
|
durationMs: number;
|
|
1331
1331
|
costInCents: number;
|
|
1332
1332
|
baseCostInCents: number;
|
|
1333
|
+
context?: any;
|
|
1333
1334
|
idempotencyKey?: string | undefined;
|
|
1334
1335
|
maxAttempts?: number | undefined;
|
|
1335
1336
|
version?: string | undefined;
|
|
1336
1337
|
maxDuration?: number | undefined;
|
|
1337
|
-
context?: any;
|
|
1338
1338
|
priority?: number | undefined;
|
|
1339
1339
|
};
|
|
1340
1340
|
queue: {
|
|
@@ -1361,9 +1361,9 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
1361
1361
|
id: string;
|
|
1362
1362
|
} | undefined;
|
|
1363
1363
|
machine?: {
|
|
1364
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1365
1364
|
cpu: number;
|
|
1366
1365
|
memory: number;
|
|
1366
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1367
1367
|
centsPerMs: number;
|
|
1368
1368
|
} | undefined;
|
|
1369
1369
|
}, {
|
|
@@ -1382,13 +1382,13 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
1382
1382
|
id: string;
|
|
1383
1383
|
tags: string[];
|
|
1384
1384
|
createdAt: Date;
|
|
1385
|
-
|
|
1385
|
+
context?: any;
|
|
1386
1386
|
isTest?: boolean | undefined;
|
|
1387
|
+
startedAt?: Date | undefined;
|
|
1387
1388
|
idempotencyKey?: string | undefined;
|
|
1388
1389
|
maxAttempts?: number | undefined;
|
|
1389
1390
|
version?: string | undefined;
|
|
1390
1391
|
maxDuration?: number | undefined;
|
|
1391
|
-
context?: any;
|
|
1392
1392
|
durationMs?: number | undefined;
|
|
1393
1393
|
costInCents?: number | undefined;
|
|
1394
1394
|
baseCostInCents?: number | undefined;
|
|
@@ -1418,9 +1418,9 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
1418
1418
|
id: string;
|
|
1419
1419
|
} | undefined;
|
|
1420
1420
|
machine?: {
|
|
1421
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1422
1421
|
cpu: number;
|
|
1423
1422
|
memory: number;
|
|
1423
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
1424
1424
|
centsPerMs: number;
|
|
1425
1425
|
} | undefined;
|
|
1426
1426
|
}>;
|
|
@@ -1457,14 +1457,14 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
1457
1457
|
message: z.ZodString;
|
|
1458
1458
|
stackTrace: z.ZodString;
|
|
1459
1459
|
}, "strip", z.ZodTypeAny, {
|
|
1460
|
-
name: string;
|
|
1461
1460
|
message: string;
|
|
1462
1461
|
type: "BUILT_IN_ERROR";
|
|
1462
|
+
name: string;
|
|
1463
1463
|
stackTrace: string;
|
|
1464
1464
|
}, {
|
|
1465
|
-
name: string;
|
|
1466
1465
|
message: string;
|
|
1467
1466
|
type: "BUILT_IN_ERROR";
|
|
1467
|
+
name: string;
|
|
1468
1468
|
stackTrace: string;
|
|
1469
1469
|
}>, z.ZodObject<{
|
|
1470
1470
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -1870,16 +1870,10 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
1870
1870
|
})[] | undefined;
|
|
1871
1871
|
}>>;
|
|
1872
1872
|
}, "strip", z.ZodTypeAny, {
|
|
1873
|
-
id: string;
|
|
1874
1873
|
error: {
|
|
1875
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
1876
|
-
type: "INTERNAL_ERROR";
|
|
1877
|
-
message?: string | undefined;
|
|
1878
|
-
stackTrace?: string | undefined;
|
|
1879
|
-
} | {
|
|
1880
|
-
name: string;
|
|
1881
1874
|
message: string;
|
|
1882
1875
|
type: "BUILT_IN_ERROR";
|
|
1876
|
+
name: string;
|
|
1883
1877
|
stackTrace: string;
|
|
1884
1878
|
} | {
|
|
1885
1879
|
type: "CUSTOM_ERROR";
|
|
@@ -1887,8 +1881,14 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
1887
1881
|
} | {
|
|
1888
1882
|
type: "STRING_ERROR";
|
|
1889
1883
|
raw: string;
|
|
1884
|
+
} | {
|
|
1885
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
1886
|
+
type: "INTERNAL_ERROR";
|
|
1887
|
+
message?: string | undefined;
|
|
1888
|
+
stackTrace?: string | undefined;
|
|
1890
1889
|
};
|
|
1891
1890
|
ok: false;
|
|
1891
|
+
id: string;
|
|
1892
1892
|
metadata?: {
|
|
1893
1893
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
1894
1894
|
operations?: ({
|
|
@@ -1966,22 +1966,16 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
1966
1966
|
delay: number;
|
|
1967
1967
|
error?: unknown;
|
|
1968
1968
|
} | undefined;
|
|
1969
|
+
skippedRetrying?: boolean | undefined;
|
|
1969
1970
|
usage?: {
|
|
1970
1971
|
durationMs: number;
|
|
1971
1972
|
} | undefined;
|
|
1972
1973
|
taskIdentifier?: string | undefined;
|
|
1973
|
-
skippedRetrying?: boolean | undefined;
|
|
1974
1974
|
}, {
|
|
1975
|
-
id: string;
|
|
1976
1975
|
error: {
|
|
1977
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
1978
|
-
type: "INTERNAL_ERROR";
|
|
1979
|
-
message?: string | undefined;
|
|
1980
|
-
stackTrace?: string | undefined;
|
|
1981
|
-
} | {
|
|
1982
|
-
name: string;
|
|
1983
1976
|
message: string;
|
|
1984
1977
|
type: "BUILT_IN_ERROR";
|
|
1978
|
+
name: string;
|
|
1985
1979
|
stackTrace: string;
|
|
1986
1980
|
} | {
|
|
1987
1981
|
type: "CUSTOM_ERROR";
|
|
@@ -1989,8 +1983,14 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
1989
1983
|
} | {
|
|
1990
1984
|
type: "STRING_ERROR";
|
|
1991
1985
|
raw: string;
|
|
1986
|
+
} | {
|
|
1987
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
1988
|
+
type: "INTERNAL_ERROR";
|
|
1989
|
+
message?: string | undefined;
|
|
1990
|
+
stackTrace?: string | undefined;
|
|
1992
1991
|
};
|
|
1993
1992
|
ok: false;
|
|
1993
|
+
id: string;
|
|
1994
1994
|
metadata?: {
|
|
1995
1995
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
1996
1996
|
operations?: ({
|
|
@@ -2068,11 +2068,11 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
2068
2068
|
delay: number;
|
|
2069
2069
|
error?: unknown;
|
|
2070
2070
|
} | undefined;
|
|
2071
|
+
skippedRetrying?: boolean | undefined;
|
|
2071
2072
|
usage?: {
|
|
2072
2073
|
durationMs: number;
|
|
2073
2074
|
} | undefined;
|
|
2074
2075
|
taskIdentifier?: string | undefined;
|
|
2075
|
-
skippedRetrying?: boolean | undefined;
|
|
2076
2076
|
}>;
|
|
2077
2077
|
export type TaskRunFailedExecutionResult = z.infer<typeof TaskRunFailedExecutionResult>;
|
|
2078
2078
|
export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
|
|
@@ -2435,9 +2435,9 @@ export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
|
|
|
2435
2435
|
})[] | undefined;
|
|
2436
2436
|
}>>;
|
|
2437
2437
|
}, "strip", z.ZodTypeAny, {
|
|
2438
|
+
ok: true;
|
|
2438
2439
|
id: string;
|
|
2439
2440
|
outputType: string;
|
|
2440
|
-
ok: true;
|
|
2441
2441
|
metadata?: {
|
|
2442
2442
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
2443
2443
|
operations?: ({
|
|
@@ -2510,15 +2510,15 @@ export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
|
|
|
2510
2510
|
key: string;
|
|
2511
2511
|
})[] | undefined;
|
|
2512
2512
|
} | undefined;
|
|
2513
|
-
output?: string | undefined;
|
|
2514
2513
|
usage?: {
|
|
2515
2514
|
durationMs: number;
|
|
2516
2515
|
} | undefined;
|
|
2517
2516
|
taskIdentifier?: string | undefined;
|
|
2517
|
+
output?: string | undefined;
|
|
2518
2518
|
}, {
|
|
2519
|
+
ok: true;
|
|
2519
2520
|
id: string;
|
|
2520
2521
|
outputType: string;
|
|
2521
|
-
ok: true;
|
|
2522
2522
|
metadata?: {
|
|
2523
2523
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
2524
2524
|
operations?: ({
|
|
@@ -2591,11 +2591,11 @@ export declare const TaskRunSuccessfulExecutionResult: z.ZodObject<{
|
|
|
2591
2591
|
key: string;
|
|
2592
2592
|
})[] | undefined;
|
|
2593
2593
|
} | undefined;
|
|
2594
|
-
output?: string | undefined;
|
|
2595
2594
|
usage?: {
|
|
2596
2595
|
durationMs: number;
|
|
2597
2596
|
} | undefined;
|
|
2598
2597
|
taskIdentifier?: string | undefined;
|
|
2598
|
+
output?: string | undefined;
|
|
2599
2599
|
}>;
|
|
2600
2600
|
export type TaskRunSuccessfulExecutionResult = z.infer<typeof TaskRunSuccessfulExecutionResult>;
|
|
2601
2601
|
export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
@@ -2958,9 +2958,9 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
2958
2958
|
})[] | undefined;
|
|
2959
2959
|
}>>;
|
|
2960
2960
|
}, "strip", z.ZodTypeAny, {
|
|
2961
|
+
ok: true;
|
|
2961
2962
|
id: string;
|
|
2962
2963
|
outputType: string;
|
|
2963
|
-
ok: true;
|
|
2964
2964
|
metadata?: {
|
|
2965
2965
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
2966
2966
|
operations?: ({
|
|
@@ -3033,15 +3033,15 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
3033
3033
|
key: string;
|
|
3034
3034
|
})[] | undefined;
|
|
3035
3035
|
} | undefined;
|
|
3036
|
-
output?: string | undefined;
|
|
3037
3036
|
usage?: {
|
|
3038
3037
|
durationMs: number;
|
|
3039
3038
|
} | undefined;
|
|
3040
3039
|
taskIdentifier?: string | undefined;
|
|
3040
|
+
output?: string | undefined;
|
|
3041
3041
|
}, {
|
|
3042
|
+
ok: true;
|
|
3042
3043
|
id: string;
|
|
3043
3044
|
outputType: string;
|
|
3044
|
-
ok: true;
|
|
3045
3045
|
metadata?: {
|
|
3046
3046
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
3047
3047
|
operations?: ({
|
|
@@ -3114,11 +3114,11 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
3114
3114
|
key: string;
|
|
3115
3115
|
})[] | undefined;
|
|
3116
3116
|
} | undefined;
|
|
3117
|
-
output?: string | undefined;
|
|
3118
3117
|
usage?: {
|
|
3119
3118
|
durationMs: number;
|
|
3120
3119
|
} | undefined;
|
|
3121
3120
|
taskIdentifier?: string | undefined;
|
|
3121
|
+
output?: string | undefined;
|
|
3122
3122
|
}>, z.ZodObject<{
|
|
3123
3123
|
ok: z.ZodLiteral<false>;
|
|
3124
3124
|
id: z.ZodString;
|
|
@@ -3128,14 +3128,14 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
3128
3128
|
message: z.ZodString;
|
|
3129
3129
|
stackTrace: z.ZodString;
|
|
3130
3130
|
}, "strip", z.ZodTypeAny, {
|
|
3131
|
-
name: string;
|
|
3132
3131
|
message: string;
|
|
3133
3132
|
type: "BUILT_IN_ERROR";
|
|
3133
|
+
name: string;
|
|
3134
3134
|
stackTrace: string;
|
|
3135
3135
|
}, {
|
|
3136
|
-
name: string;
|
|
3137
3136
|
message: string;
|
|
3138
3137
|
type: "BUILT_IN_ERROR";
|
|
3138
|
+
name: string;
|
|
3139
3139
|
stackTrace: string;
|
|
3140
3140
|
}>, z.ZodObject<{
|
|
3141
3141
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -3541,16 +3541,10 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
3541
3541
|
})[] | undefined;
|
|
3542
3542
|
}>>;
|
|
3543
3543
|
}, "strip", z.ZodTypeAny, {
|
|
3544
|
-
id: string;
|
|
3545
3544
|
error: {
|
|
3546
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
3547
|
-
type: "INTERNAL_ERROR";
|
|
3548
|
-
message?: string | undefined;
|
|
3549
|
-
stackTrace?: string | undefined;
|
|
3550
|
-
} | {
|
|
3551
|
-
name: string;
|
|
3552
3545
|
message: string;
|
|
3553
3546
|
type: "BUILT_IN_ERROR";
|
|
3547
|
+
name: string;
|
|
3554
3548
|
stackTrace: string;
|
|
3555
3549
|
} | {
|
|
3556
3550
|
type: "CUSTOM_ERROR";
|
|
@@ -3558,8 +3552,14 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
3558
3552
|
} | {
|
|
3559
3553
|
type: "STRING_ERROR";
|
|
3560
3554
|
raw: string;
|
|
3555
|
+
} | {
|
|
3556
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
3557
|
+
type: "INTERNAL_ERROR";
|
|
3558
|
+
message?: string | undefined;
|
|
3559
|
+
stackTrace?: string | undefined;
|
|
3561
3560
|
};
|
|
3562
3561
|
ok: false;
|
|
3562
|
+
id: string;
|
|
3563
3563
|
metadata?: {
|
|
3564
3564
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
3565
3565
|
operations?: ({
|
|
@@ -3637,22 +3637,16 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
3637
3637
|
delay: number;
|
|
3638
3638
|
error?: unknown;
|
|
3639
3639
|
} | undefined;
|
|
3640
|
+
skippedRetrying?: boolean | undefined;
|
|
3640
3641
|
usage?: {
|
|
3641
3642
|
durationMs: number;
|
|
3642
3643
|
} | undefined;
|
|
3643
3644
|
taskIdentifier?: string | undefined;
|
|
3644
|
-
skippedRetrying?: boolean | undefined;
|
|
3645
3645
|
}, {
|
|
3646
|
-
id: string;
|
|
3647
3646
|
error: {
|
|
3648
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
3649
|
-
type: "INTERNAL_ERROR";
|
|
3650
|
-
message?: string | undefined;
|
|
3651
|
-
stackTrace?: string | undefined;
|
|
3652
|
-
} | {
|
|
3653
|
-
name: string;
|
|
3654
3647
|
message: string;
|
|
3655
3648
|
type: "BUILT_IN_ERROR";
|
|
3649
|
+
name: string;
|
|
3656
3650
|
stackTrace: string;
|
|
3657
3651
|
} | {
|
|
3658
3652
|
type: "CUSTOM_ERROR";
|
|
@@ -3660,8 +3654,14 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
3660
3654
|
} | {
|
|
3661
3655
|
type: "STRING_ERROR";
|
|
3662
3656
|
raw: string;
|
|
3657
|
+
} | {
|
|
3658
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
3659
|
+
type: "INTERNAL_ERROR";
|
|
3660
|
+
message?: string | undefined;
|
|
3661
|
+
stackTrace?: string | undefined;
|
|
3663
3662
|
};
|
|
3664
3663
|
ok: false;
|
|
3664
|
+
id: string;
|
|
3665
3665
|
metadata?: {
|
|
3666
3666
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
3667
3667
|
operations?: ({
|
|
@@ -3739,11 +3739,11 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
3739
3739
|
delay: number;
|
|
3740
3740
|
error?: unknown;
|
|
3741
3741
|
} | undefined;
|
|
3742
|
+
skippedRetrying?: boolean | undefined;
|
|
3742
3743
|
usage?: {
|
|
3743
3744
|
durationMs: number;
|
|
3744
3745
|
} | undefined;
|
|
3745
3746
|
taskIdentifier?: string | undefined;
|
|
3746
|
-
skippedRetrying?: boolean | undefined;
|
|
3747
3747
|
}>]>;
|
|
3748
3748
|
export type TaskRunExecutionResult = z.infer<typeof TaskRunExecutionResult>;
|
|
3749
3749
|
export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
@@ -4108,9 +4108,9 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4108
4108
|
})[] | undefined;
|
|
4109
4109
|
}>>;
|
|
4110
4110
|
}, "strip", z.ZodTypeAny, {
|
|
4111
|
+
ok: true;
|
|
4111
4112
|
id: string;
|
|
4112
4113
|
outputType: string;
|
|
4113
|
-
ok: true;
|
|
4114
4114
|
metadata?: {
|
|
4115
4115
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
4116
4116
|
operations?: ({
|
|
@@ -4183,15 +4183,15 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4183
4183
|
key: string;
|
|
4184
4184
|
})[] | undefined;
|
|
4185
4185
|
} | undefined;
|
|
4186
|
-
output?: string | undefined;
|
|
4187
4186
|
usage?: {
|
|
4188
4187
|
durationMs: number;
|
|
4189
4188
|
} | undefined;
|
|
4190
4189
|
taskIdentifier?: string | undefined;
|
|
4190
|
+
output?: string | undefined;
|
|
4191
4191
|
}, {
|
|
4192
|
+
ok: true;
|
|
4192
4193
|
id: string;
|
|
4193
4194
|
outputType: string;
|
|
4194
|
-
ok: true;
|
|
4195
4195
|
metadata?: {
|
|
4196
4196
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
4197
4197
|
operations?: ({
|
|
@@ -4264,11 +4264,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4264
4264
|
key: string;
|
|
4265
4265
|
})[] | undefined;
|
|
4266
4266
|
} | undefined;
|
|
4267
|
-
output?: string | undefined;
|
|
4268
4267
|
usage?: {
|
|
4269
4268
|
durationMs: number;
|
|
4270
4269
|
} | undefined;
|
|
4271
4270
|
taskIdentifier?: string | undefined;
|
|
4271
|
+
output?: string | undefined;
|
|
4272
4272
|
}>, z.ZodObject<{
|
|
4273
4273
|
ok: z.ZodLiteral<false>;
|
|
4274
4274
|
id: z.ZodString;
|
|
@@ -4278,14 +4278,14 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4278
4278
|
message: z.ZodString;
|
|
4279
4279
|
stackTrace: z.ZodString;
|
|
4280
4280
|
}, "strip", z.ZodTypeAny, {
|
|
4281
|
-
name: string;
|
|
4282
4281
|
message: string;
|
|
4283
4282
|
type: "BUILT_IN_ERROR";
|
|
4283
|
+
name: string;
|
|
4284
4284
|
stackTrace: string;
|
|
4285
4285
|
}, {
|
|
4286
|
-
name: string;
|
|
4287
4286
|
message: string;
|
|
4288
4287
|
type: "BUILT_IN_ERROR";
|
|
4288
|
+
name: string;
|
|
4289
4289
|
stackTrace: string;
|
|
4290
4290
|
}>, z.ZodObject<{
|
|
4291
4291
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -4691,16 +4691,10 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4691
4691
|
})[] | undefined;
|
|
4692
4692
|
}>>;
|
|
4693
4693
|
}, "strip", z.ZodTypeAny, {
|
|
4694
|
-
id: string;
|
|
4695
4694
|
error: {
|
|
4696
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
4697
|
-
type: "INTERNAL_ERROR";
|
|
4698
|
-
message?: string | undefined;
|
|
4699
|
-
stackTrace?: string | undefined;
|
|
4700
|
-
} | {
|
|
4701
|
-
name: string;
|
|
4702
4695
|
message: string;
|
|
4703
4696
|
type: "BUILT_IN_ERROR";
|
|
4697
|
+
name: string;
|
|
4704
4698
|
stackTrace: string;
|
|
4705
4699
|
} | {
|
|
4706
4700
|
type: "CUSTOM_ERROR";
|
|
@@ -4708,8 +4702,14 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4708
4702
|
} | {
|
|
4709
4703
|
type: "STRING_ERROR";
|
|
4710
4704
|
raw: string;
|
|
4705
|
+
} | {
|
|
4706
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
4707
|
+
type: "INTERNAL_ERROR";
|
|
4708
|
+
message?: string | undefined;
|
|
4709
|
+
stackTrace?: string | undefined;
|
|
4711
4710
|
};
|
|
4712
4711
|
ok: false;
|
|
4712
|
+
id: string;
|
|
4713
4713
|
metadata?: {
|
|
4714
4714
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
4715
4715
|
operations?: ({
|
|
@@ -4787,22 +4787,16 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4787
4787
|
delay: number;
|
|
4788
4788
|
error?: unknown;
|
|
4789
4789
|
} | undefined;
|
|
4790
|
+
skippedRetrying?: boolean | undefined;
|
|
4790
4791
|
usage?: {
|
|
4791
4792
|
durationMs: number;
|
|
4792
4793
|
} | undefined;
|
|
4793
4794
|
taskIdentifier?: string | undefined;
|
|
4794
|
-
skippedRetrying?: boolean | undefined;
|
|
4795
4795
|
}, {
|
|
4796
|
-
id: string;
|
|
4797
4796
|
error: {
|
|
4798
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
4799
|
-
type: "INTERNAL_ERROR";
|
|
4800
|
-
message?: string | undefined;
|
|
4801
|
-
stackTrace?: string | undefined;
|
|
4802
|
-
} | {
|
|
4803
|
-
name: string;
|
|
4804
4797
|
message: string;
|
|
4805
4798
|
type: "BUILT_IN_ERROR";
|
|
4799
|
+
name: string;
|
|
4806
4800
|
stackTrace: string;
|
|
4807
4801
|
} | {
|
|
4808
4802
|
type: "CUSTOM_ERROR";
|
|
@@ -4810,8 +4804,14 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4810
4804
|
} | {
|
|
4811
4805
|
type: "STRING_ERROR";
|
|
4812
4806
|
raw: string;
|
|
4807
|
+
} | {
|
|
4808
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
4809
|
+
type: "INTERNAL_ERROR";
|
|
4810
|
+
message?: string | undefined;
|
|
4811
|
+
stackTrace?: string | undefined;
|
|
4813
4812
|
};
|
|
4814
4813
|
ok: false;
|
|
4814
|
+
id: string;
|
|
4815
4815
|
metadata?: {
|
|
4816
4816
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
4817
4817
|
operations?: ({
|
|
@@ -4889,18 +4889,34 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4889
4889
|
delay: number;
|
|
4890
4890
|
error?: unknown;
|
|
4891
4891
|
} | undefined;
|
|
4892
|
+
skippedRetrying?: boolean | undefined;
|
|
4892
4893
|
usage?: {
|
|
4893
4894
|
durationMs: number;
|
|
4894
4895
|
} | undefined;
|
|
4895
4896
|
taskIdentifier?: string | undefined;
|
|
4896
|
-
skippedRetrying?: boolean | undefined;
|
|
4897
4897
|
}>]>, "many">;
|
|
4898
4898
|
}, "strip", z.ZodTypeAny, {
|
|
4899
4899
|
id: string;
|
|
4900
4900
|
items: ({
|
|
4901
|
+
error: {
|
|
4902
|
+
message: string;
|
|
4903
|
+
type: "BUILT_IN_ERROR";
|
|
4904
|
+
name: string;
|
|
4905
|
+
stackTrace: string;
|
|
4906
|
+
} | {
|
|
4907
|
+
type: "CUSTOM_ERROR";
|
|
4908
|
+
raw: string;
|
|
4909
|
+
} | {
|
|
4910
|
+
type: "STRING_ERROR";
|
|
4911
|
+
raw: string;
|
|
4912
|
+
} | {
|
|
4913
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
4914
|
+
type: "INTERNAL_ERROR";
|
|
4915
|
+
message?: string | undefined;
|
|
4916
|
+
stackTrace?: string | undefined;
|
|
4917
|
+
};
|
|
4918
|
+
ok: false;
|
|
4901
4919
|
id: string;
|
|
4902
|
-
outputType: string;
|
|
4903
|
-
ok: true;
|
|
4904
4920
|
metadata?: {
|
|
4905
4921
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
4906
4922
|
operations?: ({
|
|
@@ -4973,31 +4989,20 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
4973
4989
|
key: string;
|
|
4974
4990
|
})[] | undefined;
|
|
4975
4991
|
} | undefined;
|
|
4976
|
-
|
|
4992
|
+
retry?: {
|
|
4993
|
+
timestamp: number;
|
|
4994
|
+
delay: number;
|
|
4995
|
+
error?: unknown;
|
|
4996
|
+
} | undefined;
|
|
4997
|
+
skippedRetrying?: boolean | undefined;
|
|
4977
4998
|
usage?: {
|
|
4978
4999
|
durationMs: number;
|
|
4979
5000
|
} | undefined;
|
|
4980
5001
|
taskIdentifier?: string | undefined;
|
|
4981
5002
|
} | {
|
|
5003
|
+
ok: true;
|
|
4982
5004
|
id: string;
|
|
4983
|
-
|
|
4984
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
4985
|
-
type: "INTERNAL_ERROR";
|
|
4986
|
-
message?: string | undefined;
|
|
4987
|
-
stackTrace?: string | undefined;
|
|
4988
|
-
} | {
|
|
4989
|
-
name: string;
|
|
4990
|
-
message: string;
|
|
4991
|
-
type: "BUILT_IN_ERROR";
|
|
4992
|
-
stackTrace: string;
|
|
4993
|
-
} | {
|
|
4994
|
-
type: "CUSTOM_ERROR";
|
|
4995
|
-
raw: string;
|
|
4996
|
-
} | {
|
|
4997
|
-
type: "STRING_ERROR";
|
|
4998
|
-
raw: string;
|
|
4999
|
-
};
|
|
5000
|
-
ok: false;
|
|
5005
|
+
outputType: string;
|
|
5001
5006
|
metadata?: {
|
|
5002
5007
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
5003
5008
|
operations?: ({
|
|
@@ -5070,23 +5075,34 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
5070
5075
|
key: string;
|
|
5071
5076
|
})[] | undefined;
|
|
5072
5077
|
} | undefined;
|
|
5073
|
-
retry?: {
|
|
5074
|
-
timestamp: number;
|
|
5075
|
-
delay: number;
|
|
5076
|
-
error?: unknown;
|
|
5077
|
-
} | undefined;
|
|
5078
5078
|
usage?: {
|
|
5079
5079
|
durationMs: number;
|
|
5080
5080
|
} | undefined;
|
|
5081
5081
|
taskIdentifier?: string | undefined;
|
|
5082
|
-
|
|
5082
|
+
output?: string | undefined;
|
|
5083
5083
|
})[];
|
|
5084
5084
|
}, {
|
|
5085
5085
|
id: string;
|
|
5086
5086
|
items: ({
|
|
5087
|
+
error: {
|
|
5088
|
+
message: string;
|
|
5089
|
+
type: "BUILT_IN_ERROR";
|
|
5090
|
+
name: string;
|
|
5091
|
+
stackTrace: string;
|
|
5092
|
+
} | {
|
|
5093
|
+
type: "CUSTOM_ERROR";
|
|
5094
|
+
raw: string;
|
|
5095
|
+
} | {
|
|
5096
|
+
type: "STRING_ERROR";
|
|
5097
|
+
raw: string;
|
|
5098
|
+
} | {
|
|
5099
|
+
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
5100
|
+
type: "INTERNAL_ERROR";
|
|
5101
|
+
message?: string | undefined;
|
|
5102
|
+
stackTrace?: string | undefined;
|
|
5103
|
+
};
|
|
5104
|
+
ok: false;
|
|
5087
5105
|
id: string;
|
|
5088
|
-
outputType: string;
|
|
5089
|
-
ok: true;
|
|
5090
5106
|
metadata?: {
|
|
5091
5107
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
5092
5108
|
operations?: ({
|
|
@@ -5159,31 +5175,20 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
5159
5175
|
key: string;
|
|
5160
5176
|
})[] | undefined;
|
|
5161
5177
|
} | undefined;
|
|
5162
|
-
|
|
5178
|
+
retry?: {
|
|
5179
|
+
timestamp: number;
|
|
5180
|
+
delay: number;
|
|
5181
|
+
error?: unknown;
|
|
5182
|
+
} | undefined;
|
|
5183
|
+
skippedRetrying?: boolean | undefined;
|
|
5163
5184
|
usage?: {
|
|
5164
5185
|
durationMs: number;
|
|
5165
5186
|
} | undefined;
|
|
5166
5187
|
taskIdentifier?: string | undefined;
|
|
5167
5188
|
} | {
|
|
5189
|
+
ok: true;
|
|
5168
5190
|
id: string;
|
|
5169
|
-
|
|
5170
|
-
code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK";
|
|
5171
|
-
type: "INTERNAL_ERROR";
|
|
5172
|
-
message?: string | undefined;
|
|
5173
|
-
stackTrace?: string | undefined;
|
|
5174
|
-
} | {
|
|
5175
|
-
name: string;
|
|
5176
|
-
message: string;
|
|
5177
|
-
type: "BUILT_IN_ERROR";
|
|
5178
|
-
stackTrace: string;
|
|
5179
|
-
} | {
|
|
5180
|
-
type: "CUSTOM_ERROR";
|
|
5181
|
-
raw: string;
|
|
5182
|
-
} | {
|
|
5183
|
-
type: "STRING_ERROR";
|
|
5184
|
-
raw: string;
|
|
5185
|
-
};
|
|
5186
|
-
ok: false;
|
|
5191
|
+
outputType: string;
|
|
5187
5192
|
metadata?: {
|
|
5188
5193
|
metadata?: Record<string, import("../../schemas/json.js").DeserializedJson> | undefined;
|
|
5189
5194
|
operations?: ({
|
|
@@ -5256,16 +5261,11 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
5256
5261
|
key: string;
|
|
5257
5262
|
})[] | undefined;
|
|
5258
5263
|
} | undefined;
|
|
5259
|
-
retry?: {
|
|
5260
|
-
timestamp: number;
|
|
5261
|
-
delay: number;
|
|
5262
|
-
error?: unknown;
|
|
5263
|
-
} | undefined;
|
|
5264
5264
|
usage?: {
|
|
5265
5265
|
durationMs: number;
|
|
5266
5266
|
} | undefined;
|
|
5267
5267
|
taskIdentifier?: string | undefined;
|
|
5268
|
-
|
|
5268
|
+
output?: string | undefined;
|
|
5269
5269
|
})[];
|
|
5270
5270
|
}>;
|
|
5271
5271
|
export type BatchTaskRunExecutionResult = z.infer<typeof BatchTaskRunExecutionResult>;
|