@trigger.dev/core 0.0.0-prerelease-20241003205750 → 0.0.0-prerelease-20241119135607
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/schemas/api.d.ts +8 -8
- package/dist/commonjs/v3/apiClient/core.d.ts +1 -1
- package/dist/commonjs/v3/apiClient/core.js +9 -1
- package/dist/commonjs/v3/apiClient/core.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +136 -102
- package/dist/commonjs/v3/apiClient/index.js +116 -4
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.d.ts +99 -0
- package/dist/commonjs/v3/apiClient/runStream.js +260 -0
- package/dist/commonjs/v3/apiClient/runStream.js.map +1 -0
- package/dist/commonjs/v3/apiClient/stream.d.ts +9 -0
- package/dist/commonjs/v3/apiClient/stream.js +51 -0
- package/dist/commonjs/v3/apiClient/stream.js.map +1 -0
- package/dist/commonjs/v3/apiClient/types.d.ts +4 -0
- package/dist/commonjs/v3/apiClientManager/index.d.ts +2 -1
- package/dist/commonjs/v3/apiClientManager/index.js +18 -7
- package/dist/commonjs/v3/apiClientManager/index.js.map +1 -1
- package/dist/commonjs/v3/apiClientManager/types.d.ts +7 -0
- package/dist/commonjs/v3/apps/duration.d.ts +1 -0
- package/dist/commonjs/v3/apps/duration.js +51 -0
- package/dist/commonjs/v3/apps/duration.js.map +1 -0
- package/dist/commonjs/v3/apps/friendlyId.d.ts +1 -0
- package/dist/commonjs/v3/apps/friendlyId.js +9 -0
- package/dist/commonjs/v3/apps/friendlyId.js.map +1 -0
- package/dist/commonjs/v3/apps/index.d.ts +2 -0
- package/dist/commonjs/v3/apps/index.js +2 -0
- package/dist/commonjs/v3/apps/index.js.map +1 -1
- package/dist/commonjs/v3/apps/process.d.ts +2 -0
- package/dist/commonjs/v3/apps/process.js +2 -0
- package/dist/commonjs/v3/apps/process.js.map +1 -1
- package/dist/commonjs/v3/build/extensions.d.ts +1 -0
- package/dist/commonjs/v3/errors.d.ts +19 -2
- package/dist/commonjs/v3/errors.js +307 -23
- package/dist/commonjs/v3/errors.js.map +1 -1
- package/dist/commonjs/v3/idempotencyKeys.d.ts +41 -0
- package/dist/commonjs/v3/idempotencyKeys.js +83 -0
- package/dist/commonjs/v3/idempotencyKeys.js.map +1 -0
- package/dist/commonjs/v3/index.d.ts +5 -1
- package/dist/commonjs/v3/index.js +8 -3
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/jwt.d.ts +19 -0
- package/dist/commonjs/v3/jwt.js +47 -0
- package/dist/commonjs/v3/jwt.js.map +1 -0
- package/dist/commonjs/v3/links.d.ts +20 -0
- package/dist/commonjs/v3/links.js +24 -0
- package/dist/commonjs/v3/links.js.map +1 -0
- package/dist/commonjs/v3/otel/index.d.ts +2 -3
- package/dist/commonjs/v3/otel/index.js +15 -21
- package/dist/commonjs/v3/otel/index.js.map +1 -1
- package/dist/commonjs/v3/otel/utils.d.ts +2 -0
- package/dist/commonjs/v3/otel/utils.js +24 -0
- package/dist/commonjs/v3/otel/utils.js.map +1 -0
- package/dist/commonjs/v3/runMetadata/index.d.ts +13 -6
- package/dist/commonjs/v3/runMetadata/index.js +33 -39
- package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
- package/dist/commonjs/v3/runMetadata/manager.d.ts +30 -0
- package/dist/commonjs/v3/runMetadata/manager.js +278 -0
- package/dist/commonjs/v3/runMetadata/manager.js.map +1 -0
- package/dist/commonjs/v3/runMetadata/metadataStream.d.ts +21 -0
- package/dist/commonjs/v3/runMetadata/metadataStream.js +71 -0
- package/dist/commonjs/v3/runMetadata/metadataStream.js.map +1 -0
- package/dist/commonjs/v3/runMetadata/noopManager.d.ts +17 -0
- package/dist/commonjs/v3/runMetadata/noopManager.js +41 -0
- package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -0
- package/dist/commonjs/v3/runMetadata/types.d.ts +16 -0
- package/dist/commonjs/v3/runMetadata/types.js +3 -0
- package/dist/commonjs/v3/runMetadata/types.js.map +1 -0
- package/dist/commonjs/v3/runtime/devRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/runtime/noopRuntimeManager.js +5 -1
- package/dist/commonjs/v3/runtime/noopRuntimeManager.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +471 -335
- package/dist/commonjs/v3/schemas/api.js +34 -4
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +62 -48
- package/dist/commonjs/v3/schemas/common.d.ts +165 -181
- package/dist/commonjs/v3/schemas/common.js +11 -18
- package/dist/commonjs/v3/schemas/common.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +1813 -1775
- package/dist/commonjs/v3/schemas/messages.js +3 -0
- package/dist/commonjs/v3/schemas/messages.js.map +1 -1
- package/dist/commonjs/v3/schemas/resources.d.ts +36 -28
- package/dist/commonjs/v3/schemas/resources.js +1 -0
- package/dist/commonjs/v3/schemas/resources.js.map +1 -1
- package/dist/commonjs/v3/schemas/schemas.d.ts +258 -252
- package/dist/commonjs/v3/schemas/schemas.js +1 -0
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/tracer.js +2 -2
- package/dist/commonjs/v3/types/idempotencyKeys.d.ts +7 -0
- package/dist/commonjs/v3/types/idempotencyKeys.js +3 -0
- package/dist/commonjs/v3/types/idempotencyKeys.js.map +1 -0
- package/dist/commonjs/v3/types/index.d.ts +10 -63
- package/dist/commonjs/v3/types/index.js +3 -0
- package/dist/commonjs/v3/types/index.js.map +1 -1
- package/dist/commonjs/v3/types/schemas.d.ts +44 -0
- package/dist/commonjs/v3/types/schemas.js +41 -0
- package/dist/commonjs/v3/types/schemas.js.map +1 -0
- package/dist/commonjs/v3/types/tasks.d.ts +487 -0
- package/dist/commonjs/v3/types/tasks.js +42 -0
- package/dist/commonjs/v3/types/tasks.js.map +1 -0
- package/dist/commonjs/v3/types/tools.d.ts +6 -0
- package/dist/commonjs/v3/types/tools.js +22 -0
- package/dist/commonjs/v3/types/tools.js.map +1 -0
- package/dist/commonjs/v3/utils/flattenAttributes.d.ts +2 -1
- package/dist/commonjs/v3/utils/flattenAttributes.js +39 -16
- package/dist/commonjs/v3/utils/flattenAttributes.js.map +1 -1
- package/dist/commonjs/v3/utils/getEnv.d.ts +2 -1
- package/dist/commonjs/v3/utils/getEnv.js +15 -3
- package/dist/commonjs/v3/utils/getEnv.js.map +1 -1
- package/dist/commonjs/v3/utils/globals.d.ts +4 -2
- package/dist/commonjs/v3/utils/globals.js.map +1 -1
- package/dist/commonjs/v3/utils/ioSerialization.d.ts +8 -2
- package/dist/commonjs/v3/utils/ioSerialization.js +62 -37
- package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
- package/dist/commonjs/v3/utils/safeAsyncLocalStorage.d.ts +1 -0
- package/dist/commonjs/v3/utils/safeAsyncLocalStorage.js +3 -0
- package/dist/commonjs/v3/utils/safeAsyncLocalStorage.js.map +1 -1
- package/dist/commonjs/v3/utils/structuredLogger.d.ts +1 -0
- package/dist/commonjs/v3/utils/structuredLogger.js +10 -4
- package/dist/commonjs/v3/utils/structuredLogger.js.map +1 -1
- package/dist/commonjs/v3/wait-until-api.d.ts +2 -0
- package/dist/commonjs/v3/wait-until-api.js +8 -0
- package/dist/commonjs/v3/wait-until-api.js.map +1 -0
- package/dist/commonjs/v3/waitUntil/index.d.ts +11 -0
- package/dist/commonjs/v3/waitUntil/index.js +44 -0
- package/dist/commonjs/v3/waitUntil/index.js.map +1 -0
- package/dist/commonjs/v3/waitUntil/manager.d.ts +8 -0
- package/dist/commonjs/v3/waitUntil/manager.js +28 -0
- package/dist/commonjs/v3/waitUntil/manager.js.map +1 -0
- package/dist/commonjs/v3/waitUntil/types.d.ts +9 -0
- package/dist/commonjs/v3/waitUntil/types.js +3 -0
- package/dist/commonjs/v3/waitUntil/types.js.map +1 -0
- package/dist/commonjs/v3/workers/index.d.ts +3 -1
- package/dist/commonjs/v3/workers/index.js +6 -1
- package/dist/commonjs/v3/workers/index.js.map +1 -1
- package/dist/commonjs/v3/workers/taskExecutor.js +56 -9
- package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
- package/dist/commonjs/v3/zodNamespace.d.ts +1 -0
- package/dist/commonjs/v3/zodNamespace.js +6 -1
- package/dist/commonjs/v3/zodNamespace.js.map +1 -1
- package/dist/commonjs/v3/zodSocket.d.ts +2 -0
- package/dist/commonjs/v3/zodSocket.js +15 -5
- package/dist/commonjs/v3/zodSocket.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/core.d.ts +1 -1
- package/dist/esm/v3/apiClient/core.js +9 -1
- package/dist/esm/v3/apiClient/core.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +136 -102
- package/dist/esm/v3/apiClient/index.js +116 -4
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.d.ts +99 -0
- package/dist/esm/v3/apiClient/runStream.js +253 -0
- package/dist/esm/v3/apiClient/runStream.js.map +1 -0
- package/dist/esm/v3/apiClient/stream.d.ts +9 -0
- package/dist/esm/v3/apiClient/stream.js +47 -0
- package/dist/esm/v3/apiClient/stream.js.map +1 -0
- package/dist/esm/v3/apiClient/types.d.ts +4 -0
- package/dist/esm/v3/apiClientManager/index.d.ts +2 -1
- package/dist/esm/v3/apiClientManager/index.js +18 -7
- package/dist/esm/v3/apiClientManager/index.js.map +1 -1
- package/dist/esm/v3/apiClientManager/types.d.ts +7 -0
- package/dist/esm/v3/apps/duration.d.ts +1 -0
- package/dist/esm/v3/apps/duration.js +48 -0
- package/dist/esm/v3/apps/duration.js.map +1 -0
- package/dist/esm/v3/apps/friendlyId.d.ts +1 -0
- package/dist/esm/v3/apps/friendlyId.js +6 -0
- package/dist/esm/v3/apps/friendlyId.js.map +1 -0
- package/dist/esm/v3/apps/index.d.ts +2 -0
- package/dist/esm/v3/apps/index.js +2 -0
- package/dist/esm/v3/apps/index.js.map +1 -1
- package/dist/esm/v3/apps/process.d.ts +2 -0
- package/dist/esm/v3/apps/process.js +2 -0
- package/dist/esm/v3/apps/process.js.map +1 -1
- package/dist/esm/v3/build/extensions.d.ts +1 -0
- package/dist/esm/v3/errors.d.ts +19 -2
- package/dist/esm/v3/errors.js +301 -21
- package/dist/esm/v3/errors.js.map +1 -1
- package/dist/esm/v3/idempotencyKeys.d.ts +41 -0
- package/dist/esm/v3/idempotencyKeys.js +78 -0
- package/dist/esm/v3/idempotencyKeys.js.map +1 -0
- package/dist/esm/v3/index.d.ts +5 -1
- package/dist/esm/v3/index.js +5 -1
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/esm/v3/jwt.d.ts +19 -0
- package/dist/esm/v3/jwt.js +42 -0
- package/dist/esm/v3/jwt.js.map +1 -0
- package/dist/esm/v3/links.d.ts +20 -0
- package/dist/esm/v3/links.js +21 -0
- package/dist/esm/v3/links.js.map +1 -0
- package/dist/esm/v3/otel/index.d.ts +2 -3
- package/dist/esm/v3/otel/index.js +1 -20
- package/dist/esm/v3/otel/index.js.map +1 -1
- package/dist/esm/v3/otel/utils.d.ts +2 -0
- package/dist/esm/v3/otel/utils.js +21 -0
- package/dist/esm/v3/otel/utils.js.map +1 -0
- package/dist/esm/v3/runMetadata/index.d.ts +13 -6
- package/dist/esm/v3/runMetadata/index.js +35 -41
- package/dist/esm/v3/runMetadata/index.js.map +1 -1
- package/dist/esm/v3/runMetadata/manager.d.ts +30 -0
- package/dist/esm/v3/runMetadata/manager.js +274 -0
- package/dist/esm/v3/runMetadata/manager.js.map +1 -0
- package/dist/esm/v3/runMetadata/metadataStream.d.ts +21 -0
- package/dist/esm/v3/runMetadata/metadataStream.js +67 -0
- package/dist/esm/v3/runMetadata/metadataStream.js.map +1 -0
- package/dist/esm/v3/runMetadata/noopManager.d.ts +17 -0
- package/dist/esm/v3/runMetadata/noopManager.js +37 -0
- package/dist/esm/v3/runMetadata/noopManager.js.map +1 -0
- package/dist/esm/v3/runMetadata/types.d.ts +16 -0
- package/dist/esm/v3/runMetadata/types.js +2 -0
- package/dist/esm/v3/runMetadata/types.js.map +1 -0
- package/dist/esm/v3/runtime/devRuntimeManager.js.map +1 -1
- package/dist/esm/v3/runtime/noopRuntimeManager.js +5 -1
- package/dist/esm/v3/runtime/noopRuntimeManager.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +471 -335
- package/dist/esm/v3/schemas/api.js +33 -3
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/build.d.ts +62 -48
- package/dist/esm/v3/schemas/common.d.ts +103 -119
- package/dist/esm/v3/schemas/common.js +10 -17
- package/dist/esm/v3/schemas/common.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +1813 -1775
- package/dist/esm/v3/schemas/messages.js +4 -1
- package/dist/esm/v3/schemas/messages.js.map +1 -1
- package/dist/esm/v3/schemas/resources.d.ts +36 -28
- package/dist/esm/v3/schemas/resources.js +1 -0
- package/dist/esm/v3/schemas/resources.js.map +1 -1
- package/dist/esm/v3/schemas/schemas.d.ts +258 -252
- package/dist/esm/v3/schemas/schemas.js +1 -0
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/tracer.js +1 -1
- package/dist/esm/v3/types/idempotencyKeys.d.ts +7 -0
- package/dist/esm/v3/types/idempotencyKeys.js +2 -0
- package/dist/esm/v3/types/idempotencyKeys.js.map +1 -0
- package/dist/esm/v3/types/index.d.ts +10 -63
- package/dist/esm/v3/types/index.js +3 -0
- package/dist/esm/v3/types/index.js.map +1 -1
- package/dist/esm/v3/types/schemas.d.ts +44 -0
- package/dist/esm/v3/types/schemas.js +38 -0
- package/dist/esm/v3/types/schemas.js.map +1 -0
- package/dist/esm/v3/types/tasks.d.ts +487 -0
- package/dist/esm/v3/types/tasks.js +37 -0
- package/dist/esm/v3/types/tasks.js.map +1 -0
- package/dist/esm/v3/types/tools.d.ts +6 -0
- package/dist/esm/v3/types/tools.js +19 -0
- package/dist/esm/v3/types/tools.js.map +1 -0
- package/dist/esm/v3/utils/flattenAttributes.d.ts +2 -1
- package/dist/esm/v3/utils/flattenAttributes.js +38 -15
- package/dist/esm/v3/utils/flattenAttributes.js.map +1 -1
- package/dist/esm/v3/utils/getEnv.d.ts +2 -1
- package/dist/esm/v3/utils/getEnv.js +14 -3
- package/dist/esm/v3/utils/getEnv.js.map +1 -1
- package/dist/esm/v3/utils/globals.d.ts +4 -2
- package/dist/esm/v3/utils/globals.js.map +1 -1
- package/dist/esm/v3/utils/ioSerialization.d.ts +8 -2
- package/dist/esm/v3/utils/ioSerialization.js +61 -37
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/v3/utils/safeAsyncLocalStorage.d.ts +1 -0
- package/dist/esm/v3/utils/safeAsyncLocalStorage.js +3 -0
- package/dist/esm/v3/utils/safeAsyncLocalStorage.js.map +1 -1
- package/dist/esm/v3/utils/structuredLogger.d.ts +1 -0
- package/dist/esm/v3/utils/structuredLogger.js +10 -4
- package/dist/esm/v3/utils/structuredLogger.js.map +1 -1
- package/dist/esm/v3/wait-until-api.d.ts +2 -0
- package/dist/esm/v3/wait-until-api.js +5 -0
- package/dist/esm/v3/wait-until-api.js.map +1 -0
- package/dist/esm/v3/waitUntil/index.d.ts +11 -0
- package/dist/esm/v3/waitUntil/index.js +40 -0
- package/dist/esm/v3/waitUntil/index.js.map +1 -0
- package/dist/esm/v3/waitUntil/manager.d.ts +8 -0
- package/dist/esm/v3/waitUntil/manager.js +24 -0
- package/dist/esm/v3/waitUntil/manager.js.map +1 -0
- package/dist/esm/v3/waitUntil/types.d.ts +9 -0
- package/dist/esm/v3/waitUntil/types.js +2 -0
- package/dist/esm/v3/waitUntil/types.js.map +1 -0
- package/dist/esm/v3/workers/index.d.ts +3 -1
- package/dist/esm/v3/workers/index.js +3 -1
- package/dist/esm/v3/workers/index.js.map +1 -1
- package/dist/esm/v3/workers/taskExecutor.js +58 -11
- package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
- package/dist/esm/v3/zodNamespace.d.ts +1 -0
- package/dist/esm/v3/zodNamespace.js +6 -1
- package/dist/esm/v3/zodNamespace.js.map +1 -1
- package/dist/esm/v3/zodSocket.d.ts +2 -0
- package/dist/esm/v3/zodSocket.js +15 -5
- package/dist/esm/v3/zodSocket.js.map +1 -1
- package/package.json +40 -1
|
@@ -10,12 +10,12 @@ export declare const MachineConfig: z.ZodObject<{
|
|
|
10
10
|
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>]>>;
|
|
11
11
|
preset: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
cpu?: 2 | 1 |
|
|
14
|
-
memory?: 2 | 1 |
|
|
13
|
+
cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
|
|
14
|
+
memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
|
|
15
15
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
16
16
|
}, {
|
|
17
|
-
cpu?: 2 | 1 |
|
|
18
|
-
memory?: 2 | 1 |
|
|
17
|
+
cpu?: 2 | 1 | 0.25 | 0.5 | 4 | undefined;
|
|
18
|
+
memory?: 2 | 1 | 0.25 | 0.5 | 4 | 8 | undefined;
|
|
19
19
|
preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export type MachineConfig = z.infer<typeof MachineConfig>;
|
|
@@ -25,14 +25,14 @@ export declare const MachinePreset: z.ZodObject<{
|
|
|
25
25
|
memory: z.ZodNumber;
|
|
26
26
|
centsPerMs: z.ZodNumber;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
29
28
|
cpu: number;
|
|
30
29
|
memory: number;
|
|
30
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
31
31
|
centsPerMs: number;
|
|
32
32
|
}, {
|
|
33
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
34
33
|
cpu: number;
|
|
35
34
|
memory: number;
|
|
35
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
36
36
|
centsPerMs: number;
|
|
37
37
|
}>;
|
|
38
38
|
export type MachinePreset = z.infer<typeof MachinePreset>;
|
|
@@ -75,40 +75,24 @@ export declare const TaskRunStringError: z.ZodObject<{
|
|
|
75
75
|
raw: string;
|
|
76
76
|
}>;
|
|
77
77
|
export type TaskRunStringError = z.infer<typeof TaskRunStringError>;
|
|
78
|
-
export declare const TaskRunErrorCodes: {
|
|
79
|
-
readonly COULD_NOT_FIND_EXECUTOR: "COULD_NOT_FIND_EXECUTOR";
|
|
80
|
-
readonly COULD_NOT_FIND_TASK: "COULD_NOT_FIND_TASK";
|
|
81
|
-
readonly COULD_NOT_IMPORT_TASK: "COULD_NOT_IMPORT_TASK";
|
|
82
|
-
readonly CONFIGURED_INCORRECTLY: "CONFIGURED_INCORRECTLY";
|
|
83
|
-
readonly TASK_ALREADY_RUNNING: "TASK_ALREADY_RUNNING";
|
|
84
|
-
readonly TASK_EXECUTION_FAILED: "TASK_EXECUTION_FAILED";
|
|
85
|
-
readonly TASK_EXECUTION_ABORTED: "TASK_EXECUTION_ABORTED";
|
|
86
|
-
readonly TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE: "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE";
|
|
87
|
-
readonly TASK_PROCESS_SIGKILL_TIMEOUT: "TASK_PROCESS_SIGKILL_TIMEOUT";
|
|
88
|
-
readonly TASK_RUN_CANCELLED: "TASK_RUN_CANCELLED";
|
|
89
|
-
readonly TASK_OUTPUT_ERROR: "TASK_OUTPUT_ERROR";
|
|
90
|
-
readonly HANDLE_ERROR_ERROR: "HANDLE_ERROR_ERROR";
|
|
91
|
-
readonly GRACEFUL_EXIT_TIMEOUT: "GRACEFUL_EXIT_TIMEOUT";
|
|
92
|
-
readonly TASK_RUN_CRASHED: "TASK_RUN_CRASHED";
|
|
93
|
-
readonly MAX_DURATION_EXCEEDED: "MAX_DURATION_EXCEEDED";
|
|
94
|
-
};
|
|
95
78
|
export declare const TaskRunInternalError: z.ZodObject<{
|
|
96
79
|
type: z.ZodLiteral<"INTERNAL_ERROR">;
|
|
97
|
-
code: z.ZodEnum<["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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
|
|
80
|
+
code: z.ZodEnum<["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", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "OUTDATED_SDK_VERSION"]>;
|
|
98
81
|
message: z.ZodOptional<z.ZodString>;
|
|
99
82
|
stackTrace: z.ZodOptional<z.ZodString>;
|
|
100
83
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
84
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
102
85
|
type: "INTERNAL_ERROR";
|
|
103
86
|
message?: string | undefined;
|
|
104
87
|
stackTrace?: string | undefined;
|
|
105
88
|
}, {
|
|
106
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
89
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
107
90
|
type: "INTERNAL_ERROR";
|
|
108
91
|
message?: string | undefined;
|
|
109
92
|
stackTrace?: string | undefined;
|
|
110
93
|
}>;
|
|
111
94
|
export type TaskRunInternalError = z.infer<typeof TaskRunInternalError>;
|
|
95
|
+
export declare const TaskRunErrorCodes: z.Values<["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", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "OUTDATED_SDK_VERSION"]>;
|
|
112
96
|
export declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
113
97
|
type: z.ZodLiteral<"BUILT_IN_ERROR">;
|
|
114
98
|
name: z.ZodString;
|
|
@@ -144,16 +128,16 @@ export declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
|
|
|
144
128
|
raw: string;
|
|
145
129
|
}>, z.ZodObject<{
|
|
146
130
|
type: z.ZodLiteral<"INTERNAL_ERROR">;
|
|
147
|
-
code: z.ZodEnum<["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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
|
|
131
|
+
code: z.ZodEnum<["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", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "OUTDATED_SDK_VERSION"]>;
|
|
148
132
|
message: z.ZodOptional<z.ZodString>;
|
|
149
133
|
stackTrace: z.ZodOptional<z.ZodString>;
|
|
150
134
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
135
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
152
136
|
type: "INTERNAL_ERROR";
|
|
153
137
|
message?: string | undefined;
|
|
154
138
|
stackTrace?: string | undefined;
|
|
155
139
|
}, {
|
|
156
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
140
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
157
141
|
type: "INTERNAL_ERROR";
|
|
158
142
|
message?: string | undefined;
|
|
159
143
|
stackTrace?: string | undefined;
|
|
@@ -178,12 +162,12 @@ export declare const TaskRun: z.ZodObject<{
|
|
|
178
162
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
179
163
|
}, "strip", z.ZodTypeAny, {
|
|
180
164
|
id: string;
|
|
181
|
-
startedAt: Date;
|
|
182
165
|
payload: string;
|
|
183
166
|
payloadType: string;
|
|
184
167
|
tags: string[];
|
|
185
168
|
isTest: boolean;
|
|
186
169
|
createdAt: Date;
|
|
170
|
+
startedAt: Date;
|
|
187
171
|
durationMs: number;
|
|
188
172
|
costInCents: number;
|
|
189
173
|
baseCostInCents: number;
|
|
@@ -235,15 +219,15 @@ export declare const TaskRunExecutionAttempt: z.ZodObject<{
|
|
|
235
219
|
status: z.ZodString;
|
|
236
220
|
}, "strip", z.ZodTypeAny, {
|
|
237
221
|
number: number;
|
|
238
|
-
id: string;
|
|
239
222
|
status: string;
|
|
223
|
+
id: string;
|
|
240
224
|
startedAt: Date;
|
|
241
225
|
backgroundWorkerId: string;
|
|
242
226
|
backgroundWorkerTaskId: string;
|
|
243
227
|
}, {
|
|
244
228
|
number: number;
|
|
245
|
-
id: string;
|
|
246
229
|
status: string;
|
|
230
|
+
id: string;
|
|
247
231
|
startedAt: Date;
|
|
248
232
|
backgroundWorkerId: string;
|
|
249
233
|
backgroundWorkerTaskId: string;
|
|
@@ -254,12 +238,12 @@ export declare const TaskRunExecutionEnvironment: z.ZodObject<{
|
|
|
254
238
|
slug: z.ZodString;
|
|
255
239
|
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
256
240
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
id: string;
|
|
258
241
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
242
|
+
id: string;
|
|
259
243
|
slug: string;
|
|
260
244
|
}, {
|
|
261
|
-
id: string;
|
|
262
245
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
246
|
+
id: string;
|
|
263
247
|
slug: string;
|
|
264
248
|
}>;
|
|
265
249
|
export type TaskRunExecutionEnvironment = z.infer<typeof TaskRunExecutionEnvironment>;
|
|
@@ -268,12 +252,12 @@ export declare const TaskRunExecutionOrganization: z.ZodObject<{
|
|
|
268
252
|
slug: z.ZodString;
|
|
269
253
|
name: z.ZodString;
|
|
270
254
|
}, "strip", z.ZodTypeAny, {
|
|
271
|
-
id: string;
|
|
272
255
|
name: string;
|
|
256
|
+
id: string;
|
|
273
257
|
slug: string;
|
|
274
258
|
}, {
|
|
275
|
-
id: string;
|
|
276
259
|
name: string;
|
|
260
|
+
id: string;
|
|
277
261
|
slug: string;
|
|
278
262
|
}>;
|
|
279
263
|
export type TaskRunExecutionOrganization = z.infer<typeof TaskRunExecutionOrganization>;
|
|
@@ -283,13 +267,13 @@ export declare const TaskRunExecutionProject: z.ZodObject<{
|
|
|
283
267
|
slug: z.ZodString;
|
|
284
268
|
name: z.ZodString;
|
|
285
269
|
}, "strip", z.ZodTypeAny, {
|
|
286
|
-
id: string;
|
|
287
270
|
name: string;
|
|
271
|
+
id: string;
|
|
288
272
|
slug: string;
|
|
289
273
|
ref: string;
|
|
290
274
|
}, {
|
|
291
|
-
id: string;
|
|
292
275
|
name: string;
|
|
276
|
+
id: string;
|
|
293
277
|
slug: string;
|
|
294
278
|
ref: string;
|
|
295
279
|
}>;
|
|
@@ -298,11 +282,11 @@ export declare const TaskRunExecutionQueue: z.ZodObject<{
|
|
|
298
282
|
id: z.ZodString;
|
|
299
283
|
name: z.ZodString;
|
|
300
284
|
}, "strip", z.ZodTypeAny, {
|
|
301
|
-
id: string;
|
|
302
285
|
name: string;
|
|
303
|
-
}, {
|
|
304
286
|
id: string;
|
|
287
|
+
}, {
|
|
305
288
|
name: string;
|
|
289
|
+
id: string;
|
|
306
290
|
}>;
|
|
307
291
|
export type TaskRunExecutionQueue = z.infer<typeof TaskRunExecutionQueue>;
|
|
308
292
|
export declare const TaskRunExecutionBatch: z.ZodObject<{
|
|
@@ -335,15 +319,15 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
335
319
|
status: z.ZodString;
|
|
336
320
|
}, "strip", z.ZodTypeAny, {
|
|
337
321
|
number: number;
|
|
338
|
-
id: string;
|
|
339
322
|
status: string;
|
|
323
|
+
id: string;
|
|
340
324
|
startedAt: Date;
|
|
341
325
|
backgroundWorkerId: string;
|
|
342
326
|
backgroundWorkerTaskId: string;
|
|
343
327
|
}, {
|
|
344
328
|
number: number;
|
|
345
|
-
id: string;
|
|
346
329
|
status: string;
|
|
330
|
+
id: string;
|
|
347
331
|
startedAt: Date;
|
|
348
332
|
backgroundWorkerId: string;
|
|
349
333
|
backgroundWorkerTaskId: string;
|
|
@@ -367,12 +351,12 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
367
351
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
368
352
|
}, "strip", z.ZodTypeAny, {
|
|
369
353
|
id: string;
|
|
370
|
-
startedAt: Date;
|
|
371
354
|
payload: string;
|
|
372
355
|
payloadType: string;
|
|
373
356
|
tags: string[];
|
|
374
357
|
isTest: boolean;
|
|
375
358
|
createdAt: Date;
|
|
359
|
+
startedAt: Date;
|
|
376
360
|
durationMs: number;
|
|
377
361
|
costInCents: number;
|
|
378
362
|
baseCostInCents: number;
|
|
@@ -404,23 +388,23 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
404
388
|
id: z.ZodString;
|
|
405
389
|
name: z.ZodString;
|
|
406
390
|
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
id: string;
|
|
408
391
|
name: string;
|
|
409
|
-
}, {
|
|
410
392
|
id: string;
|
|
393
|
+
}, {
|
|
411
394
|
name: string;
|
|
395
|
+
id: string;
|
|
412
396
|
}>;
|
|
413
397
|
environment: z.ZodObject<{
|
|
414
398
|
id: z.ZodString;
|
|
415
399
|
slug: z.ZodString;
|
|
416
400
|
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
417
401
|
}, "strip", z.ZodTypeAny, {
|
|
418
|
-
id: string;
|
|
419
402
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
403
|
+
id: string;
|
|
420
404
|
slug: string;
|
|
421
405
|
}, {
|
|
422
|
-
id: string;
|
|
423
406
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
407
|
+
id: string;
|
|
424
408
|
slug: string;
|
|
425
409
|
}>;
|
|
426
410
|
organization: z.ZodObject<{
|
|
@@ -428,12 +412,12 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
428
412
|
slug: z.ZodString;
|
|
429
413
|
name: z.ZodString;
|
|
430
414
|
}, "strip", z.ZodTypeAny, {
|
|
431
|
-
id: string;
|
|
432
415
|
name: string;
|
|
416
|
+
id: string;
|
|
433
417
|
slug: string;
|
|
434
418
|
}, {
|
|
435
|
-
id: string;
|
|
436
419
|
name: string;
|
|
420
|
+
id: string;
|
|
437
421
|
slug: string;
|
|
438
422
|
}>;
|
|
439
423
|
project: z.ZodObject<{
|
|
@@ -442,13 +426,13 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
442
426
|
slug: z.ZodString;
|
|
443
427
|
name: z.ZodString;
|
|
444
428
|
}, "strip", z.ZodTypeAny, {
|
|
445
|
-
id: string;
|
|
446
429
|
name: string;
|
|
430
|
+
id: string;
|
|
447
431
|
slug: string;
|
|
448
432
|
ref: string;
|
|
449
433
|
}, {
|
|
450
|
-
id: string;
|
|
451
434
|
name: string;
|
|
435
|
+
id: string;
|
|
452
436
|
slug: string;
|
|
453
437
|
ref: string;
|
|
454
438
|
}>;
|
|
@@ -465,14 +449,14 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
465
449
|
memory: z.ZodNumber;
|
|
466
450
|
centsPerMs: z.ZodNumber;
|
|
467
451
|
}, "strip", z.ZodTypeAny, {
|
|
468
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
469
452
|
cpu: number;
|
|
470
453
|
memory: number;
|
|
454
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
471
455
|
centsPerMs: number;
|
|
472
456
|
}, {
|
|
473
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
474
457
|
cpu: number;
|
|
475
458
|
memory: number;
|
|
459
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
476
460
|
centsPerMs: number;
|
|
477
461
|
}>>;
|
|
478
462
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -483,20 +467,20 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
483
467
|
};
|
|
484
468
|
attempt: {
|
|
485
469
|
number: number;
|
|
486
|
-
id: string;
|
|
487
470
|
status: string;
|
|
471
|
+
id: string;
|
|
488
472
|
startedAt: Date;
|
|
489
473
|
backgroundWorkerId: string;
|
|
490
474
|
backgroundWorkerTaskId: string;
|
|
491
475
|
};
|
|
492
476
|
run: {
|
|
493
477
|
id: string;
|
|
494
|
-
startedAt: Date;
|
|
495
478
|
payload: string;
|
|
496
479
|
payloadType: string;
|
|
497
480
|
tags: string[];
|
|
498
481
|
isTest: boolean;
|
|
499
482
|
createdAt: Date;
|
|
483
|
+
startedAt: Date;
|
|
500
484
|
durationMs: number;
|
|
501
485
|
costInCents: number;
|
|
502
486
|
baseCostInCents: number;
|
|
@@ -508,22 +492,22 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
508
492
|
maxDuration?: number | undefined;
|
|
509
493
|
};
|
|
510
494
|
queue: {
|
|
511
|
-
id: string;
|
|
512
495
|
name: string;
|
|
496
|
+
id: string;
|
|
513
497
|
};
|
|
514
498
|
environment: {
|
|
515
|
-
id: string;
|
|
516
499
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
500
|
+
id: string;
|
|
517
501
|
slug: string;
|
|
518
502
|
};
|
|
519
503
|
organization: {
|
|
520
|
-
id: string;
|
|
521
504
|
name: string;
|
|
505
|
+
id: string;
|
|
522
506
|
slug: string;
|
|
523
507
|
};
|
|
524
508
|
project: {
|
|
525
|
-
id: string;
|
|
526
509
|
name: string;
|
|
510
|
+
id: string;
|
|
527
511
|
slug: string;
|
|
528
512
|
ref: string;
|
|
529
513
|
};
|
|
@@ -531,9 +515,9 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
531
515
|
id: string;
|
|
532
516
|
} | undefined;
|
|
533
517
|
machine?: {
|
|
534
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
535
518
|
cpu: number;
|
|
536
519
|
memory: number;
|
|
520
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
537
521
|
centsPerMs: number;
|
|
538
522
|
} | undefined;
|
|
539
523
|
}, {
|
|
@@ -544,8 +528,8 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
544
528
|
};
|
|
545
529
|
attempt: {
|
|
546
530
|
number: number;
|
|
547
|
-
id: string;
|
|
548
531
|
status: string;
|
|
532
|
+
id: string;
|
|
549
533
|
startedAt: Date;
|
|
550
534
|
backgroundWorkerId: string;
|
|
551
535
|
backgroundWorkerTaskId: string;
|
|
@@ -569,22 +553,22 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
569
553
|
maxDuration?: number | undefined;
|
|
570
554
|
};
|
|
571
555
|
queue: {
|
|
572
|
-
id: string;
|
|
573
556
|
name: string;
|
|
557
|
+
id: string;
|
|
574
558
|
};
|
|
575
559
|
environment: {
|
|
576
|
-
id: string;
|
|
577
560
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
561
|
+
id: string;
|
|
578
562
|
slug: string;
|
|
579
563
|
};
|
|
580
564
|
organization: {
|
|
581
|
-
id: string;
|
|
582
565
|
name: string;
|
|
566
|
+
id: string;
|
|
583
567
|
slug: string;
|
|
584
568
|
};
|
|
585
569
|
project: {
|
|
586
|
-
id: string;
|
|
587
570
|
name: string;
|
|
571
|
+
id: string;
|
|
588
572
|
slug: string;
|
|
589
573
|
ref: string;
|
|
590
574
|
};
|
|
@@ -592,9 +576,9 @@ export declare const TaskRunExecution: z.ZodObject<{
|
|
|
592
576
|
id: string;
|
|
593
577
|
} | undefined;
|
|
594
578
|
machine?: {
|
|
595
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
596
579
|
cpu: number;
|
|
597
580
|
memory: number;
|
|
581
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
598
582
|
centsPerMs: number;
|
|
599
583
|
} | undefined;
|
|
600
584
|
}>;
|
|
@@ -622,13 +606,13 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
622
606
|
status: z.ZodString;
|
|
623
607
|
}, "backgroundWorkerId" | "backgroundWorkerTaskId">, "strip", z.ZodTypeAny, {
|
|
624
608
|
number: number;
|
|
625
|
-
id: string;
|
|
626
609
|
status: string;
|
|
610
|
+
id: string;
|
|
627
611
|
startedAt: Date;
|
|
628
612
|
}, {
|
|
629
613
|
number: number;
|
|
630
|
-
id: string;
|
|
631
614
|
status: string;
|
|
615
|
+
id: string;
|
|
632
616
|
startedAt: Date;
|
|
633
617
|
}>;
|
|
634
618
|
run: z.ZodObject<Omit<{
|
|
@@ -650,10 +634,10 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
650
634
|
maxDuration: z.ZodOptional<z.ZodNumber>;
|
|
651
635
|
}, "payload" | "payloadType" | "metadata">, "strip", z.ZodTypeAny, {
|
|
652
636
|
id: string;
|
|
653
|
-
startedAt: Date;
|
|
654
637
|
tags: string[];
|
|
655
638
|
isTest: boolean;
|
|
656
639
|
createdAt: Date;
|
|
640
|
+
startedAt: Date;
|
|
657
641
|
durationMs: number;
|
|
658
642
|
costInCents: number;
|
|
659
643
|
baseCostInCents: number;
|
|
@@ -666,9 +650,9 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
666
650
|
id: string;
|
|
667
651
|
tags: string[];
|
|
668
652
|
createdAt: Date;
|
|
669
|
-
startedAt?: Date | undefined;
|
|
670
653
|
context?: any;
|
|
671
654
|
isTest?: boolean | undefined;
|
|
655
|
+
startedAt?: Date | undefined;
|
|
672
656
|
idempotencyKey?: string | undefined;
|
|
673
657
|
maxAttempts?: number | undefined;
|
|
674
658
|
durationMs?: number | undefined;
|
|
@@ -681,23 +665,23 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
681
665
|
id: z.ZodString;
|
|
682
666
|
name: z.ZodString;
|
|
683
667
|
}, "strip", z.ZodTypeAny, {
|
|
684
|
-
id: string;
|
|
685
668
|
name: string;
|
|
686
|
-
}, {
|
|
687
669
|
id: string;
|
|
670
|
+
}, {
|
|
688
671
|
name: string;
|
|
672
|
+
id: string;
|
|
689
673
|
}>;
|
|
690
674
|
environment: z.ZodObject<{
|
|
691
675
|
id: z.ZodString;
|
|
692
676
|
slug: z.ZodString;
|
|
693
677
|
type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
|
|
694
678
|
}, "strip", z.ZodTypeAny, {
|
|
695
|
-
id: string;
|
|
696
679
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
680
|
+
id: string;
|
|
697
681
|
slug: string;
|
|
698
682
|
}, {
|
|
699
|
-
id: string;
|
|
700
683
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
684
|
+
id: string;
|
|
701
685
|
slug: string;
|
|
702
686
|
}>;
|
|
703
687
|
organization: z.ZodObject<{
|
|
@@ -705,12 +689,12 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
705
689
|
slug: z.ZodString;
|
|
706
690
|
name: z.ZodString;
|
|
707
691
|
}, "strip", z.ZodTypeAny, {
|
|
708
|
-
id: string;
|
|
709
692
|
name: string;
|
|
693
|
+
id: string;
|
|
710
694
|
slug: string;
|
|
711
695
|
}, {
|
|
712
|
-
id: string;
|
|
713
696
|
name: string;
|
|
697
|
+
id: string;
|
|
714
698
|
slug: string;
|
|
715
699
|
}>;
|
|
716
700
|
project: z.ZodObject<{
|
|
@@ -719,13 +703,13 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
719
703
|
slug: z.ZodString;
|
|
720
704
|
name: z.ZodString;
|
|
721
705
|
}, "strip", z.ZodTypeAny, {
|
|
722
|
-
id: string;
|
|
723
706
|
name: string;
|
|
707
|
+
id: string;
|
|
724
708
|
slug: string;
|
|
725
709
|
ref: string;
|
|
726
710
|
}, {
|
|
727
|
-
id: string;
|
|
728
711
|
name: string;
|
|
712
|
+
id: string;
|
|
729
713
|
slug: string;
|
|
730
714
|
ref: string;
|
|
731
715
|
}>;
|
|
@@ -742,14 +726,14 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
742
726
|
memory: z.ZodNumber;
|
|
743
727
|
centsPerMs: z.ZodNumber;
|
|
744
728
|
}, "strip", z.ZodTypeAny, {
|
|
745
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
746
729
|
cpu: number;
|
|
747
730
|
memory: number;
|
|
731
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
748
732
|
centsPerMs: number;
|
|
749
733
|
}, {
|
|
750
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
751
734
|
cpu: number;
|
|
752
735
|
memory: number;
|
|
736
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
753
737
|
centsPerMs: number;
|
|
754
738
|
}>>;
|
|
755
739
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -760,16 +744,16 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
760
744
|
};
|
|
761
745
|
attempt: {
|
|
762
746
|
number: number;
|
|
763
|
-
id: string;
|
|
764
747
|
status: string;
|
|
748
|
+
id: string;
|
|
765
749
|
startedAt: Date;
|
|
766
750
|
};
|
|
767
751
|
run: {
|
|
768
752
|
id: string;
|
|
769
|
-
startedAt: Date;
|
|
770
753
|
tags: string[];
|
|
771
754
|
isTest: boolean;
|
|
772
755
|
createdAt: Date;
|
|
756
|
+
startedAt: Date;
|
|
773
757
|
durationMs: number;
|
|
774
758
|
costInCents: number;
|
|
775
759
|
baseCostInCents: number;
|
|
@@ -780,22 +764,22 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
780
764
|
maxDuration?: number | undefined;
|
|
781
765
|
};
|
|
782
766
|
queue: {
|
|
783
|
-
id: string;
|
|
784
767
|
name: string;
|
|
768
|
+
id: string;
|
|
785
769
|
};
|
|
786
770
|
environment: {
|
|
787
|
-
id: string;
|
|
788
771
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
772
|
+
id: string;
|
|
789
773
|
slug: string;
|
|
790
774
|
};
|
|
791
775
|
organization: {
|
|
792
|
-
id: string;
|
|
793
776
|
name: string;
|
|
777
|
+
id: string;
|
|
794
778
|
slug: string;
|
|
795
779
|
};
|
|
796
780
|
project: {
|
|
797
|
-
id: string;
|
|
798
781
|
name: string;
|
|
782
|
+
id: string;
|
|
799
783
|
slug: string;
|
|
800
784
|
ref: string;
|
|
801
785
|
};
|
|
@@ -803,9 +787,9 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
803
787
|
id: string;
|
|
804
788
|
} | undefined;
|
|
805
789
|
machine?: {
|
|
806
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
807
790
|
cpu: number;
|
|
808
791
|
memory: number;
|
|
792
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
809
793
|
centsPerMs: number;
|
|
810
794
|
} | undefined;
|
|
811
795
|
}, {
|
|
@@ -816,17 +800,17 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
816
800
|
};
|
|
817
801
|
attempt: {
|
|
818
802
|
number: number;
|
|
819
|
-
id: string;
|
|
820
803
|
status: string;
|
|
804
|
+
id: string;
|
|
821
805
|
startedAt: Date;
|
|
822
806
|
};
|
|
823
807
|
run: {
|
|
824
808
|
id: string;
|
|
825
809
|
tags: string[];
|
|
826
810
|
createdAt: Date;
|
|
827
|
-
startedAt?: Date | undefined;
|
|
828
811
|
context?: any;
|
|
829
812
|
isTest?: boolean | undefined;
|
|
813
|
+
startedAt?: Date | undefined;
|
|
830
814
|
idempotencyKey?: string | undefined;
|
|
831
815
|
maxAttempts?: number | undefined;
|
|
832
816
|
durationMs?: number | undefined;
|
|
@@ -836,22 +820,22 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
836
820
|
maxDuration?: number | undefined;
|
|
837
821
|
};
|
|
838
822
|
queue: {
|
|
839
|
-
id: string;
|
|
840
823
|
name: string;
|
|
824
|
+
id: string;
|
|
841
825
|
};
|
|
842
826
|
environment: {
|
|
843
|
-
id: string;
|
|
844
827
|
type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
|
|
828
|
+
id: string;
|
|
845
829
|
slug: string;
|
|
846
830
|
};
|
|
847
831
|
organization: {
|
|
848
|
-
id: string;
|
|
849
832
|
name: string;
|
|
833
|
+
id: string;
|
|
850
834
|
slug: string;
|
|
851
835
|
};
|
|
852
836
|
project: {
|
|
853
|
-
id: string;
|
|
854
837
|
name: string;
|
|
838
|
+
id: string;
|
|
855
839
|
slug: string;
|
|
856
840
|
ref: string;
|
|
857
841
|
};
|
|
@@ -859,9 +843,9 @@ export declare const TaskRunContext: z.ZodObject<{
|
|
|
859
843
|
id: string;
|
|
860
844
|
} | undefined;
|
|
861
845
|
machine?: {
|
|
862
|
-
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
863
846
|
cpu: number;
|
|
864
847
|
memory: number;
|
|
848
|
+
name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
|
|
865
849
|
centsPerMs: number;
|
|
866
850
|
} | undefined;
|
|
867
851
|
}>;
|
|
@@ -926,16 +910,16 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
926
910
|
raw: string;
|
|
927
911
|
}>, z.ZodObject<{
|
|
928
912
|
type: z.ZodLiteral<"INTERNAL_ERROR">;
|
|
929
|
-
code: z.ZodEnum<["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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
|
|
913
|
+
code: z.ZodEnum<["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", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "OUTDATED_SDK_VERSION"]>;
|
|
930
914
|
message: z.ZodOptional<z.ZodString>;
|
|
931
915
|
stackTrace: z.ZodOptional<z.ZodString>;
|
|
932
916
|
}, "strip", z.ZodTypeAny, {
|
|
933
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
917
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
934
918
|
type: "INTERNAL_ERROR";
|
|
935
919
|
message?: string | undefined;
|
|
936
920
|
stackTrace?: string | undefined;
|
|
937
921
|
}, {
|
|
938
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
922
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
939
923
|
type: "INTERNAL_ERROR";
|
|
940
924
|
message?: string | undefined;
|
|
941
925
|
stackTrace?: string | undefined;
|
|
@@ -962,7 +946,6 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
962
946
|
durationMs: number;
|
|
963
947
|
}>>;
|
|
964
948
|
}, "strip", z.ZodTypeAny, {
|
|
965
|
-
id: string;
|
|
966
949
|
error: {
|
|
967
950
|
message: string;
|
|
968
951
|
type: "BUILT_IN_ERROR";
|
|
@@ -975,11 +958,12 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
975
958
|
type: "STRING_ERROR";
|
|
976
959
|
raw: string;
|
|
977
960
|
} | {
|
|
978
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
961
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
979
962
|
type: "INTERNAL_ERROR";
|
|
980
963
|
message?: string | undefined;
|
|
981
964
|
stackTrace?: string | undefined;
|
|
982
965
|
};
|
|
966
|
+
id: string;
|
|
983
967
|
ok: false;
|
|
984
968
|
retry?: {
|
|
985
969
|
timestamp: number;
|
|
@@ -991,7 +975,6 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
991
975
|
durationMs: number;
|
|
992
976
|
} | undefined;
|
|
993
977
|
}, {
|
|
994
|
-
id: string;
|
|
995
978
|
error: {
|
|
996
979
|
message: string;
|
|
997
980
|
type: "BUILT_IN_ERROR";
|
|
@@ -1004,11 +987,12 @@ export declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
1004
987
|
type: "STRING_ERROR";
|
|
1005
988
|
raw: string;
|
|
1006
989
|
} | {
|
|
1007
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
990
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1008
991
|
type: "INTERNAL_ERROR";
|
|
1009
992
|
message?: string | undefined;
|
|
1010
993
|
stackTrace?: string | undefined;
|
|
1011
994
|
};
|
|
995
|
+
id: string;
|
|
1012
996
|
ok: false;
|
|
1013
997
|
retry?: {
|
|
1014
998
|
timestamp: number;
|
|
@@ -1117,16 +1101,16 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
1117
1101
|
raw: string;
|
|
1118
1102
|
}>, z.ZodObject<{
|
|
1119
1103
|
type: z.ZodLiteral<"INTERNAL_ERROR">;
|
|
1120
|
-
code: z.ZodEnum<["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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
|
|
1104
|
+
code: z.ZodEnum<["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", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "OUTDATED_SDK_VERSION"]>;
|
|
1121
1105
|
message: z.ZodOptional<z.ZodString>;
|
|
1122
1106
|
stackTrace: z.ZodOptional<z.ZodString>;
|
|
1123
1107
|
}, "strip", z.ZodTypeAny, {
|
|
1124
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1108
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1125
1109
|
type: "INTERNAL_ERROR";
|
|
1126
1110
|
message?: string | undefined;
|
|
1127
1111
|
stackTrace?: string | undefined;
|
|
1128
1112
|
}, {
|
|
1129
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1113
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1130
1114
|
type: "INTERNAL_ERROR";
|
|
1131
1115
|
message?: string | undefined;
|
|
1132
1116
|
stackTrace?: string | undefined;
|
|
@@ -1153,7 +1137,6 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
1153
1137
|
durationMs: number;
|
|
1154
1138
|
}>>;
|
|
1155
1139
|
}, "strip", z.ZodTypeAny, {
|
|
1156
|
-
id: string;
|
|
1157
1140
|
error: {
|
|
1158
1141
|
message: string;
|
|
1159
1142
|
type: "BUILT_IN_ERROR";
|
|
@@ -1166,11 +1149,12 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
1166
1149
|
type: "STRING_ERROR";
|
|
1167
1150
|
raw: string;
|
|
1168
1151
|
} | {
|
|
1169
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1152
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1170
1153
|
type: "INTERNAL_ERROR";
|
|
1171
1154
|
message?: string | undefined;
|
|
1172
1155
|
stackTrace?: string | undefined;
|
|
1173
1156
|
};
|
|
1157
|
+
id: string;
|
|
1174
1158
|
ok: false;
|
|
1175
1159
|
retry?: {
|
|
1176
1160
|
timestamp: number;
|
|
@@ -1182,7 +1166,6 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
1182
1166
|
durationMs: number;
|
|
1183
1167
|
} | undefined;
|
|
1184
1168
|
}, {
|
|
1185
|
-
id: string;
|
|
1186
1169
|
error: {
|
|
1187
1170
|
message: string;
|
|
1188
1171
|
type: "BUILT_IN_ERROR";
|
|
@@ -1195,11 +1178,12 @@ export declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
|
|
|
1195
1178
|
type: "STRING_ERROR";
|
|
1196
1179
|
raw: string;
|
|
1197
1180
|
} | {
|
|
1198
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1181
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1199
1182
|
type: "INTERNAL_ERROR";
|
|
1200
1183
|
message?: string | undefined;
|
|
1201
1184
|
stackTrace?: string | undefined;
|
|
1202
1185
|
};
|
|
1186
|
+
id: string;
|
|
1203
1187
|
ok: false;
|
|
1204
1188
|
retry?: {
|
|
1205
1189
|
timestamp: number;
|
|
@@ -1280,16 +1264,16 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
1280
1264
|
raw: string;
|
|
1281
1265
|
}>, z.ZodObject<{
|
|
1282
1266
|
type: z.ZodLiteral<"INTERNAL_ERROR">;
|
|
1283
|
-
code: z.ZodEnum<["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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED"]>;
|
|
1267
|
+
code: z.ZodEnum<["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", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED", "MAX_DURATION_EXCEEDED", "DISK_SPACE_EXCEEDED", "POD_EVICTED", "POD_UNKNOWN_ERROR", "OUTDATED_SDK_VERSION"]>;
|
|
1284
1268
|
message: z.ZodOptional<z.ZodString>;
|
|
1285
1269
|
stackTrace: z.ZodOptional<z.ZodString>;
|
|
1286
1270
|
}, "strip", z.ZodTypeAny, {
|
|
1287
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1271
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1288
1272
|
type: "INTERNAL_ERROR";
|
|
1289
1273
|
message?: string | undefined;
|
|
1290
1274
|
stackTrace?: string | undefined;
|
|
1291
1275
|
}, {
|
|
1292
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1276
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1293
1277
|
type: "INTERNAL_ERROR";
|
|
1294
1278
|
message?: string | undefined;
|
|
1295
1279
|
stackTrace?: string | undefined;
|
|
@@ -1316,7 +1300,6 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
1316
1300
|
durationMs: number;
|
|
1317
1301
|
}>>;
|
|
1318
1302
|
}, "strip", z.ZodTypeAny, {
|
|
1319
|
-
id: string;
|
|
1320
1303
|
error: {
|
|
1321
1304
|
message: string;
|
|
1322
1305
|
type: "BUILT_IN_ERROR";
|
|
@@ -1329,11 +1312,12 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
1329
1312
|
type: "STRING_ERROR";
|
|
1330
1313
|
raw: string;
|
|
1331
1314
|
} | {
|
|
1332
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1315
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1333
1316
|
type: "INTERNAL_ERROR";
|
|
1334
1317
|
message?: string | undefined;
|
|
1335
1318
|
stackTrace?: string | undefined;
|
|
1336
1319
|
};
|
|
1320
|
+
id: string;
|
|
1337
1321
|
ok: false;
|
|
1338
1322
|
retry?: {
|
|
1339
1323
|
timestamp: number;
|
|
@@ -1345,7 +1329,6 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
1345
1329
|
durationMs: number;
|
|
1346
1330
|
} | undefined;
|
|
1347
1331
|
}, {
|
|
1348
|
-
id: string;
|
|
1349
1332
|
error: {
|
|
1350
1333
|
message: string;
|
|
1351
1334
|
type: "BUILT_IN_ERROR";
|
|
@@ -1358,11 +1341,12 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
1358
1341
|
type: "STRING_ERROR";
|
|
1359
1342
|
raw: string;
|
|
1360
1343
|
} | {
|
|
1361
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1344
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1362
1345
|
type: "INTERNAL_ERROR";
|
|
1363
1346
|
message?: string | undefined;
|
|
1364
1347
|
stackTrace?: string | undefined;
|
|
1365
1348
|
};
|
|
1349
|
+
id: string;
|
|
1366
1350
|
ok: false;
|
|
1367
1351
|
retry?: {
|
|
1368
1352
|
timestamp: number;
|
|
@@ -1377,7 +1361,6 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
1377
1361
|
}, "strip", z.ZodTypeAny, {
|
|
1378
1362
|
id: string;
|
|
1379
1363
|
items: ({
|
|
1380
|
-
id: string;
|
|
1381
1364
|
error: {
|
|
1382
1365
|
message: string;
|
|
1383
1366
|
type: "BUILT_IN_ERROR";
|
|
@@ -1390,11 +1373,12 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
1390
1373
|
type: "STRING_ERROR";
|
|
1391
1374
|
raw: string;
|
|
1392
1375
|
} | {
|
|
1393
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1376
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1394
1377
|
type: "INTERNAL_ERROR";
|
|
1395
1378
|
message?: string | undefined;
|
|
1396
1379
|
stackTrace?: string | undefined;
|
|
1397
1380
|
};
|
|
1381
|
+
id: string;
|
|
1398
1382
|
ok: false;
|
|
1399
1383
|
retry?: {
|
|
1400
1384
|
timestamp: number;
|
|
@@ -1417,7 +1401,6 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
1417
1401
|
}, {
|
|
1418
1402
|
id: string;
|
|
1419
1403
|
items: ({
|
|
1420
|
-
id: string;
|
|
1421
1404
|
error: {
|
|
1422
1405
|
message: string;
|
|
1423
1406
|
type: "BUILT_IN_ERROR";
|
|
@@ -1430,11 +1413,12 @@ export declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
1430
1413
|
type: "STRING_ERROR";
|
|
1431
1414
|
raw: string;
|
|
1432
1415
|
} | {
|
|
1433
|
-
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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "
|
|
1416
|
+
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" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "OUTDATED_SDK_VERSION";
|
|
1434
1417
|
type: "INTERNAL_ERROR";
|
|
1435
1418
|
message?: string | undefined;
|
|
1436
1419
|
stackTrace?: string | undefined;
|
|
1437
1420
|
};
|
|
1421
|
+
id: string;
|
|
1438
1422
|
ok: false;
|
|
1439
1423
|
retry?: {
|
|
1440
1424
|
timestamp: number;
|