@trigger.dev/core 4.0.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/v3/errors.d.ts +1 -0
- package/dist/commonjs/v3/errors.js +35 -2
- package/dist/commonjs/v3/errors.js.map +1 -1
- package/dist/commonjs/v3/heartbeats/api.d.ts +14 -0
- package/dist/commonjs/v3/heartbeats/api.js +58 -0
- package/dist/commonjs/v3/heartbeats/api.js.map +1 -0
- package/dist/commonjs/v3/heartbeats/manager.d.ts +16 -0
- package/dist/commonjs/v3/heartbeats/manager.js +72 -0
- package/dist/commonjs/v3/heartbeats/manager.js.map +1 -0
- package/dist/commonjs/v3/heartbeats/types.d.ts +7 -0
- package/dist/commonjs/v3/heartbeats/types.js +3 -0
- package/dist/commonjs/v3/heartbeats/types.js.map +1 -0
- package/dist/commonjs/v3/heartbeats-api.d.ts +3 -0
- package/dist/commonjs/v3/heartbeats-api.js +9 -0
- package/dist/commonjs/v3/heartbeats-api.js.map +1 -0
- package/dist/commonjs/v3/index.d.ts +1 -0
- package/dist/commonjs/v3/index.js +1 -0
- package/dist/commonjs/v3/index.js.map +1 -1
- package/dist/commonjs/v3/links.d.ts +1 -0
- package/dist/commonjs/v3/links.js +1 -0
- package/dist/commonjs/v3/links.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/index.d.ts +1 -0
- package/dist/commonjs/v3/runEngineWorker/index.js +1 -0
- package/dist/commonjs/v3/runEngineWorker/index.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.d.ts +71 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.js +316 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.test.d.ts +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.test.js +589 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.test.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPoolMetrics.d.ts +43 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPoolMetrics.js +131 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPoolMetrics.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +2 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.d.ts +7 -4
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueMetricsProcessor.d.ts +76 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueMetricsProcessor.js +161 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueMetricsProcessor.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueMetricsProcessor.test.d.ts +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueMetricsProcessor.test.js +293 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/queueMetricsProcessor.test.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/scalingStrategies.d.ts +67 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/scalingStrategies.js +153 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/scalingStrategies.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/scalingStrategies.test.d.ts +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/scalingStrategies.test.js +235 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/scalingStrategies.test.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +6 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.d.ts +5 -2
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js +14 -8
- package/dist/commonjs/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +81 -111
- package/dist/commonjs/v3/runEngineWorker/workload/http.js +36 -14
- package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +3 -0
- package/dist/commonjs/v3/schemas/api.d.ts +144 -0
- package/dist/commonjs/v3/schemas/api.js +11 -3
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/checkpoints.d.ts +3 -0
- package/dist/commonjs/v3/schemas/runEngine.d.ts +3 -0
- package/dist/commonjs/v3/schemas/runEngine.js +1 -0
- package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
- package/dist/commonjs/v3/utils/globals.d.ts +2 -0
- package/dist/commonjs/v3/utils/globals.js.map +1 -1
- package/dist/commonjs/v3/utils/ioSerialization.d.ts +1 -0
- package/dist/commonjs/v3/utils/ioSerialization.js +92 -3
- package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
- package/dist/commonjs/v3/workers/index.d.ts +1 -0
- package/dist/commonjs/v3/workers/index.js +3 -1
- package/dist/commonjs/v3/workers/index.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/errors.d.ts +1 -0
- package/dist/esm/v3/errors.js +34 -2
- package/dist/esm/v3/errors.js.map +1 -1
- package/dist/esm/v3/heartbeats/api.d.ts +14 -0
- package/dist/esm/v3/heartbeats/api.js +54 -0
- package/dist/esm/v3/heartbeats/api.js.map +1 -0
- package/dist/esm/v3/heartbeats/manager.d.ts +16 -0
- package/dist/esm/v3/heartbeats/manager.js +68 -0
- package/dist/esm/v3/heartbeats/manager.js.map +1 -0
- package/dist/esm/v3/heartbeats/types.d.ts +7 -0
- package/dist/esm/v3/heartbeats/types.js +2 -0
- package/dist/esm/v3/heartbeats/types.js.map +1 -0
- package/dist/esm/v3/heartbeats-api.d.ts +3 -0
- package/dist/esm/v3/heartbeats-api.js +6 -0
- package/dist/esm/v3/heartbeats-api.js.map +1 -0
- package/dist/esm/v3/index.d.ts +1 -0
- package/dist/esm/v3/index.js +1 -0
- package/dist/esm/v3/index.js.map +1 -1
- package/dist/esm/v3/links.d.ts +1 -0
- package/dist/esm/v3/links.js +1 -0
- package/dist/esm/v3/links.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/index.d.ts +1 -0
- package/dist/esm/v3/runEngineWorker/index.js +1 -0
- package/dist/esm/v3/runEngineWorker/index.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.d.ts +71 -0
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.js +312 -0
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.test.d.ts +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.test.js +587 -0
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPool.test.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPoolMetrics.d.ts +43 -0
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPoolMetrics.js +127 -0
- package/dist/esm/v3/runEngineWorker/supervisor/consumerPoolMetrics.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +2 -0
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.d.ts +7 -4
- package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/queueMetricsProcessor.d.ts +76 -0
- package/dist/esm/v3/runEngineWorker/supervisor/queueMetricsProcessor.js +157 -0
- package/dist/esm/v3/runEngineWorker/supervisor/queueMetricsProcessor.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/queueMetricsProcessor.test.d.ts +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/queueMetricsProcessor.test.js +291 -0
- package/dist/esm/v3/runEngineWorker/supervisor/queueMetricsProcessor.test.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/scalingStrategies.d.ts +67 -0
- package/dist/esm/v3/runEngineWorker/supervisor/scalingStrategies.js +146 -0
- package/dist/esm/v3/runEngineWorker/supervisor/scalingStrategies.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/scalingStrategies.test.d.ts +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/scalingStrategies.test.js +233 -0
- package/dist/esm/v3/runEngineWorker/supervisor/scalingStrategies.test.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +6 -0
- package/dist/esm/v3/runEngineWorker/supervisor/session.d.ts +5 -2
- package/dist/esm/v3/runEngineWorker/supervisor/session.js +14 -8
- package/dist/esm/v3/runEngineWorker/supervisor/session.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/http.d.ts +81 -111
- package/dist/esm/v3/runEngineWorker/workload/http.js +37 -15
- package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +3 -0
- package/dist/esm/v3/schemas/api.d.ts +144 -0
- package/dist/esm/v3/schemas/api.js +8 -0
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/checkpoints.d.ts +3 -0
- package/dist/esm/v3/schemas/runEngine.d.ts +3 -0
- package/dist/esm/v3/schemas/runEngine.js +1 -0
- package/dist/esm/v3/schemas/runEngine.js.map +1 -1
- package/dist/esm/v3/utils/globals.d.ts +2 -0
- package/dist/esm/v3/utils/globals.js.map +1 -1
- package/dist/esm/v3/utils/ioSerialization.d.ts +1 -0
- package/dist/esm/v3/utils/ioSerialization.js +92 -3
- package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
- package/dist/esm/v3/workers/index.d.ts +1 -0
- package/dist/esm/v3/workers/index.js +1 -0
- package/dist/esm/v3/workers/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -10,30 +10,46 @@ export declare class WorkloadHttpClient {
|
|
|
10
10
|
updateApiUrl(apiUrl: string): void;
|
|
11
11
|
updateRunnerId(runnerId: string): void;
|
|
12
12
|
defaultHeaders(): Record<string, string>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
private isConnectionError;
|
|
14
|
+
private withConnectionErrorDetection;
|
|
15
|
+
heartbeatRun(runId: string, snapshotId: string, body?: WorkloadHeartbeatRequestBody): Promise<{
|
|
16
|
+
success: false;
|
|
17
|
+
error: string;
|
|
18
|
+
isConnectionError?: boolean;
|
|
19
|
+
} | {
|
|
20
|
+
success: true;
|
|
21
|
+
data: {
|
|
22
|
+
ok: true;
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
16
25
|
suspendRun(runId: string, snapshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
|
|
17
26
|
ok: true;
|
|
18
27
|
} | {
|
|
19
28
|
error: string;
|
|
20
29
|
ok: false;
|
|
21
30
|
}>>;
|
|
22
|
-
continueRunExecution(runId: string, snapshotId: string): Promise<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
continueRunExecution(runId: string, snapshotId: string): Promise<{
|
|
32
|
+
success: false;
|
|
33
|
+
error: string;
|
|
34
|
+
isConnectionError?: boolean;
|
|
35
|
+
} | {
|
|
36
|
+
success: true;
|
|
37
|
+
data: {
|
|
38
|
+
run: {
|
|
39
|
+
status: import("../../index.js").TaskRunStatus;
|
|
40
|
+
id: string;
|
|
41
|
+
friendlyId: string;
|
|
42
|
+
attemptNumber?: number | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
snapshot: {
|
|
45
|
+
id: string;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
description: string;
|
|
48
|
+
friendlyId: string;
|
|
49
|
+
executionStatus: import("../../index.js").TaskRunExecutionStatus;
|
|
50
|
+
};
|
|
35
51
|
};
|
|
36
|
-
}
|
|
52
|
+
}>;
|
|
37
53
|
startRunAttempt(runId: string, snapshotId: string, body: WorkloadRunAttemptStartRequestBody): Promise<import("../../zodfetch.js").ApiResult<{
|
|
38
54
|
run: {
|
|
39
55
|
status: import("../../index.js").TaskRunStatus;
|
|
@@ -175,114 +191,67 @@ export declare class WorkloadHttpClient {
|
|
|
175
191
|
};
|
|
176
192
|
};
|
|
177
193
|
}>>;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
createdAt: Date;
|
|
190
|
-
description: string;
|
|
191
|
-
friendlyId: string;
|
|
192
|
-
executionStatus: import("../../index.js").TaskRunExecutionStatus;
|
|
193
|
-
};
|
|
194
|
-
completedWaitpoints: {
|
|
195
|
-
type: import("../../index.js").WaitpointType;
|
|
196
|
-
id: string;
|
|
197
|
-
friendlyId: string;
|
|
198
|
-
completedAt: Date;
|
|
199
|
-
outputIsError: boolean;
|
|
200
|
-
idempotencyKey?: string | undefined;
|
|
201
|
-
output?: string | undefined;
|
|
202
|
-
outputType?: string | undefined;
|
|
203
|
-
index?: number | undefined;
|
|
204
|
-
completedByTaskRun?: {
|
|
194
|
+
getSnapshotsSince(runId: string, snapshotId: string): Promise<{
|
|
195
|
+
success: false;
|
|
196
|
+
error: string;
|
|
197
|
+
isConnectionError?: boolean;
|
|
198
|
+
} | {
|
|
199
|
+
success: true;
|
|
200
|
+
data: {
|
|
201
|
+
snapshots: {
|
|
202
|
+
version: "1";
|
|
203
|
+
run: {
|
|
204
|
+
status: import("../../index.js").TaskRunStatus;
|
|
205
205
|
id: string;
|
|
206
206
|
friendlyId: string;
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
} | undefined;
|
|
211
|
-
} | undefined;
|
|
212
|
-
completedAfter?: Date | undefined;
|
|
213
|
-
completedByBatch?: {
|
|
207
|
+
attemptNumber?: number | null | undefined;
|
|
208
|
+
};
|
|
209
|
+
snapshot: {
|
|
214
210
|
id: string;
|
|
211
|
+
createdAt: Date;
|
|
212
|
+
description: string;
|
|
215
213
|
friendlyId: string;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
friendlyId: string;
|
|
221
|
-
} | undefined;
|
|
222
|
-
checkpoint?: {
|
|
223
|
-
type: import("../../index.js").CheckpointTypeEnum;
|
|
224
|
-
id: string;
|
|
225
|
-
friendlyId: string;
|
|
226
|
-
location: string;
|
|
227
|
-
imageRef?: string | null | undefined;
|
|
228
|
-
reason?: string | null | undefined;
|
|
229
|
-
} | undefined;
|
|
230
|
-
};
|
|
231
|
-
}>>;
|
|
232
|
-
getSnapshotsSince(runId: string, snapshotId: string): Promise<import("../../zodfetch.js").ApiResult<{
|
|
233
|
-
snapshots: {
|
|
234
|
-
version: "1";
|
|
235
|
-
run: {
|
|
236
|
-
status: import("../../index.js").TaskRunStatus;
|
|
237
|
-
id: string;
|
|
238
|
-
friendlyId: string;
|
|
239
|
-
attemptNumber?: number | null | undefined;
|
|
240
|
-
};
|
|
241
|
-
snapshot: {
|
|
242
|
-
id: string;
|
|
243
|
-
createdAt: Date;
|
|
244
|
-
description: string;
|
|
245
|
-
friendlyId: string;
|
|
246
|
-
executionStatus: import("../../index.js").TaskRunExecutionStatus;
|
|
247
|
-
};
|
|
248
|
-
completedWaitpoints: {
|
|
249
|
-
type: import("../../index.js").WaitpointType;
|
|
250
|
-
id: string;
|
|
251
|
-
friendlyId: string;
|
|
252
|
-
completedAt: Date;
|
|
253
|
-
outputIsError: boolean;
|
|
254
|
-
idempotencyKey?: string | undefined;
|
|
255
|
-
output?: string | undefined;
|
|
256
|
-
outputType?: string | undefined;
|
|
257
|
-
index?: number | undefined;
|
|
258
|
-
completedByTaskRun?: {
|
|
214
|
+
executionStatus: import("../../index.js").TaskRunExecutionStatus;
|
|
215
|
+
};
|
|
216
|
+
completedWaitpoints: {
|
|
217
|
+
type: import("../../index.js").WaitpointType;
|
|
259
218
|
id: string;
|
|
260
219
|
friendlyId: string;
|
|
261
|
-
|
|
220
|
+
completedAt: Date;
|
|
221
|
+
outputIsError: boolean;
|
|
222
|
+
idempotencyKey?: string | undefined;
|
|
223
|
+
output?: string | undefined;
|
|
224
|
+
outputType?: string | undefined;
|
|
225
|
+
index?: number | undefined;
|
|
226
|
+
completedByTaskRun?: {
|
|
227
|
+
id: string;
|
|
228
|
+
friendlyId: string;
|
|
229
|
+
batch?: {
|
|
230
|
+
id: string;
|
|
231
|
+
friendlyId: string;
|
|
232
|
+
} | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
completedAfter?: Date | undefined;
|
|
235
|
+
completedByBatch?: {
|
|
262
236
|
id: string;
|
|
263
237
|
friendlyId: string;
|
|
264
238
|
} | undefined;
|
|
239
|
+
}[];
|
|
240
|
+
batch?: {
|
|
241
|
+
id: string;
|
|
242
|
+
friendlyId: string;
|
|
265
243
|
} | undefined;
|
|
266
|
-
|
|
267
|
-
|
|
244
|
+
checkpoint?: {
|
|
245
|
+
type: import("../../index.js").CheckpointTypeEnum;
|
|
268
246
|
id: string;
|
|
269
247
|
friendlyId: string;
|
|
248
|
+
location: string;
|
|
249
|
+
imageRef?: string | null | undefined;
|
|
250
|
+
reason?: string | null | undefined;
|
|
270
251
|
} | undefined;
|
|
271
252
|
}[];
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
friendlyId: string;
|
|
275
|
-
} | undefined;
|
|
276
|
-
checkpoint?: {
|
|
277
|
-
type: import("../../index.js").CheckpointTypeEnum;
|
|
278
|
-
id: string;
|
|
279
|
-
friendlyId: string;
|
|
280
|
-
location: string;
|
|
281
|
-
imageRef?: string | null | undefined;
|
|
282
|
-
reason?: string | null | undefined;
|
|
283
|
-
} | undefined;
|
|
284
|
-
}[];
|
|
285
|
-
}>>;
|
|
253
|
+
};
|
|
254
|
+
}>;
|
|
286
255
|
sendDebugLog(runId: string, body: WorkloadDebugLogRequestBody): Promise<void>;
|
|
287
256
|
/** @deprecated Not currently used */
|
|
288
257
|
dequeue(): Promise<import("../../zodfetch.js").ApiResult<{
|
|
@@ -360,6 +329,7 @@ export declare class WorkloadHttpClient {
|
|
|
360
329
|
imageRef?: string | null | undefined;
|
|
361
330
|
reason?: string | null | undefined;
|
|
362
331
|
} | undefined;
|
|
332
|
+
workerQueueLength?: number | undefined;
|
|
363
333
|
image?: string | undefined;
|
|
364
334
|
placementTags?: {
|
|
365
335
|
key: string;
|
|
@@ -34,15 +34,44 @@ class WorkloadHttpClient {
|
|
|
34
34
|
runnerId: this.runnerId,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
+
isConnectionError(error) {
|
|
38
|
+
const connectionErrors = [
|
|
39
|
+
"Connection error",
|
|
40
|
+
"ECONNREFUSED",
|
|
41
|
+
"ETIMEDOUT",
|
|
42
|
+
"ENOTFOUND",
|
|
43
|
+
"ECONNRESET",
|
|
44
|
+
"EHOSTUNREACH",
|
|
45
|
+
"ENETUNREACH",
|
|
46
|
+
"EPIPE",
|
|
47
|
+
"ECONNABORTED",
|
|
48
|
+
];
|
|
49
|
+
return connectionErrors.some((errType) => error.includes(errType));
|
|
50
|
+
}
|
|
51
|
+
async withConnectionErrorDetection(operation) {
|
|
52
|
+
const result = await operation();
|
|
53
|
+
if (result.success) {
|
|
54
|
+
return result;
|
|
55
|
+
}
|
|
56
|
+
// Check if this is a connection error
|
|
57
|
+
if (this.isConnectionError(result.error)) {
|
|
58
|
+
return {
|
|
59
|
+
...result,
|
|
60
|
+
isConnectionError: true,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
return result;
|
|
64
|
+
}
|
|
37
65
|
async heartbeatRun(runId, snapshotId, body) {
|
|
38
|
-
return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadHeartbeatResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/heartbeat`, {
|
|
66
|
+
return this.withConnectionErrorDetection(() => (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadHeartbeatResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/heartbeat`, {
|
|
39
67
|
method: "POST",
|
|
40
68
|
headers: {
|
|
41
69
|
...this.defaultHeaders(),
|
|
42
70
|
"Content-Type": "application/json",
|
|
43
71
|
},
|
|
44
72
|
body: JSON.stringify(body ?? {}),
|
|
45
|
-
|
|
73
|
+
signal: AbortSignal.timeout(10_000), // 10 second timeout
|
|
74
|
+
}));
|
|
46
75
|
}
|
|
47
76
|
async suspendRun(runId, snapshotId) {
|
|
48
77
|
return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadSuspendRunResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/suspend`, {
|
|
@@ -53,12 +82,12 @@ class WorkloadHttpClient {
|
|
|
53
82
|
});
|
|
54
83
|
}
|
|
55
84
|
async continueRunExecution(runId, snapshotId) {
|
|
56
|
-
return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadContinueRunExecutionResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/continue`, {
|
|
85
|
+
return this.withConnectionErrorDetection(() => (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadContinueRunExecutionResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/continue`, {
|
|
57
86
|
method: "GET",
|
|
58
87
|
headers: {
|
|
59
88
|
...this.defaultHeaders(),
|
|
60
89
|
},
|
|
61
|
-
});
|
|
90
|
+
}));
|
|
62
91
|
}
|
|
63
92
|
async startRunAttempt(runId, snapshotId, body) {
|
|
64
93
|
return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadRunAttemptStartResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/${snapshotId}/attempts/start`, {
|
|
@@ -78,21 +107,14 @@ class WorkloadHttpClient {
|
|
|
78
107
|
body: JSON.stringify(body),
|
|
79
108
|
});
|
|
80
109
|
}
|
|
81
|
-
async getRunExecutionData(runId) {
|
|
82
|
-
return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadRunLatestSnapshotResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/latest`, {
|
|
83
|
-
method: "GET",
|
|
84
|
-
headers: {
|
|
85
|
-
...this.defaultHeaders(),
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
110
|
async getSnapshotsSince(runId, snapshotId) {
|
|
90
|
-
return (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadRunSnapshotsSinceResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
|
|
111
|
+
return this.withConnectionErrorDetection(() => (0, zodfetch_js_1.wrapZodFetch)(schemas_js_1.WorkloadRunSnapshotsSinceResponseBody, `${this.apiUrl}/api/v1/workload-actions/runs/${runId}/snapshots/since/${snapshotId}`, {
|
|
91
112
|
method: "GET",
|
|
92
113
|
headers: {
|
|
93
114
|
...this.defaultHeaders(),
|
|
94
115
|
},
|
|
95
|
-
|
|
116
|
+
signal: AbortSignal.timeout(10_000), // 10 second timeout
|
|
117
|
+
}));
|
|
96
118
|
}
|
|
97
119
|
async sendDebugLog(runId, body) {
|
|
98
120
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/v3/runEngineWorker/workload/http.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../../src/v3/runEngineWorker/workload/http.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6CAYsB;AAEtB,uCAAsD;AACtD,mDAAiD;AAIjD,MAAa,kBAAkB;IAKT;IAJZ,MAAM,CAAS;IACf,QAAQ,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AY,CAAC,KAAa,EAAE,IAAiC;QACjE,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,MAAM,IAAA,0BAAY,EAC5B,OAAC,CAAC,OAAO,EAAE,EACX,GAAG,IAAI,CAAC,MAAM,iCAAiC,KAAK,aAAa,EACjE;gBACE,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACP,GAAG,IAAI,CAAC,cAAc,EAAE;oBACxB,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;aAC3B,CACF,CAAC;YAEF,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;gBACjB,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,GAAG,CAAC,CAAC;YACjD,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAED,qCAAqC;IACrC,KAAK,CAAC,OAAO;QACX,OAAO,IAAA,0BAAY,EACjB,mDAAsC,EACtC,GAAG,IAAI,CAAC,MAAM,wCAAwC,IAAI,CAAC,YAAY,UAAU,EACjF;YACE,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,GAAG,IAAI,CAAC,cAAc,EAAE;aACzB;SACF,CACF,CAAC;IACJ,CAAC;CACF;AA7MD,gDA6MC"}
|
|
@@ -3025,6 +3025,7 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
|
|
|
3025
3025
|
executionStatus: import("../../index.js").TaskRunExecutionStatus;
|
|
3026
3026
|
}>;
|
|
3027
3027
|
dequeuedAt: z.ZodDate;
|
|
3028
|
+
workerQueueLength: z.ZodOptional<z.ZodNumber>;
|
|
3028
3029
|
image: z.ZodOptional<z.ZodString>;
|
|
3029
3030
|
checkpoint: z.ZodOptional<z.ZodObject<{
|
|
3030
3031
|
id: z.ZodString;
|
|
@@ -3326,6 +3327,7 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
|
|
|
3326
3327
|
imageRef?: string | null | undefined;
|
|
3327
3328
|
reason?: string | null | undefined;
|
|
3328
3329
|
} | undefined;
|
|
3330
|
+
workerQueueLength?: number | undefined;
|
|
3329
3331
|
image?: string | undefined;
|
|
3330
3332
|
placementTags?: {
|
|
3331
3333
|
key: string;
|
|
@@ -3406,6 +3408,7 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
|
|
|
3406
3408
|
imageRef?: string | null | undefined;
|
|
3407
3409
|
reason?: string | null | undefined;
|
|
3408
3410
|
} | undefined;
|
|
3411
|
+
workerQueueLength?: number | undefined;
|
|
3409
3412
|
image?: string | undefined;
|
|
3410
3413
|
placementTags?: {
|
|
3411
3414
|
key: string;
|
|
@@ -1858,6 +1858,90 @@ export declare const FinalizeDeploymentRequestBody: z.ZodObject<{
|
|
|
1858
1858
|
imageDigest?: string | undefined;
|
|
1859
1859
|
}>;
|
|
1860
1860
|
export type FinalizeDeploymentRequestBody = z.infer<typeof FinalizeDeploymentRequestBody>;
|
|
1861
|
+
export declare const StartDeploymentRequestBody: z.ZodObject<{
|
|
1862
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1863
|
+
gitMeta: z.ZodOptional<z.ZodObject<{
|
|
1864
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1865
|
+
source: z.ZodOptional<z.ZodEnum<["trigger_github_app", "github_actions", "local"]>>;
|
|
1866
|
+
ghUsername: z.ZodOptional<z.ZodString>;
|
|
1867
|
+
ghUserAvatarUrl: z.ZodOptional<z.ZodString>;
|
|
1868
|
+
commitAuthorName: z.ZodOptional<z.ZodString>;
|
|
1869
|
+
commitMessage: z.ZodOptional<z.ZodString>;
|
|
1870
|
+
commitRef: z.ZodOptional<z.ZodString>;
|
|
1871
|
+
commitSha: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
dirty: z.ZodOptional<z.ZodBoolean>;
|
|
1873
|
+
remoteUrl: z.ZodOptional<z.ZodString>;
|
|
1874
|
+
pullRequestNumber: z.ZodOptional<z.ZodNumber>;
|
|
1875
|
+
pullRequestTitle: z.ZodOptional<z.ZodString>;
|
|
1876
|
+
pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
|
|
1877
|
+
}, "strip", z.ZodTypeAny, {
|
|
1878
|
+
dirty?: boolean | undefined;
|
|
1879
|
+
source?: "trigger_github_app" | "github_actions" | "local" | undefined;
|
|
1880
|
+
provider?: string | undefined;
|
|
1881
|
+
ghUsername?: string | undefined;
|
|
1882
|
+
ghUserAvatarUrl?: string | undefined;
|
|
1883
|
+
commitAuthorName?: string | undefined;
|
|
1884
|
+
commitMessage?: string | undefined;
|
|
1885
|
+
commitRef?: string | undefined;
|
|
1886
|
+
commitSha?: string | undefined;
|
|
1887
|
+
remoteUrl?: string | undefined;
|
|
1888
|
+
pullRequestNumber?: number | undefined;
|
|
1889
|
+
pullRequestTitle?: string | undefined;
|
|
1890
|
+
pullRequestState?: "open" | "closed" | "merged" | undefined;
|
|
1891
|
+
}, {
|
|
1892
|
+
dirty?: boolean | undefined;
|
|
1893
|
+
source?: "trigger_github_app" | "github_actions" | "local" | undefined;
|
|
1894
|
+
provider?: string | undefined;
|
|
1895
|
+
ghUsername?: string | undefined;
|
|
1896
|
+
ghUserAvatarUrl?: string | undefined;
|
|
1897
|
+
commitAuthorName?: string | undefined;
|
|
1898
|
+
commitMessage?: string | undefined;
|
|
1899
|
+
commitRef?: string | undefined;
|
|
1900
|
+
commitSha?: string | undefined;
|
|
1901
|
+
remoteUrl?: string | undefined;
|
|
1902
|
+
pullRequestNumber?: number | undefined;
|
|
1903
|
+
pullRequestTitle?: string | undefined;
|
|
1904
|
+
pullRequestState?: "open" | "closed" | "merged" | undefined;
|
|
1905
|
+
}>>;
|
|
1906
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
1907
|
+
}, "strip", z.ZodTypeAny, {
|
|
1908
|
+
runtime?: string | undefined;
|
|
1909
|
+
contentHash?: string | undefined;
|
|
1910
|
+
gitMeta?: {
|
|
1911
|
+
dirty?: boolean | undefined;
|
|
1912
|
+
source?: "trigger_github_app" | "github_actions" | "local" | undefined;
|
|
1913
|
+
provider?: string | undefined;
|
|
1914
|
+
ghUsername?: string | undefined;
|
|
1915
|
+
ghUserAvatarUrl?: string | undefined;
|
|
1916
|
+
commitAuthorName?: string | undefined;
|
|
1917
|
+
commitMessage?: string | undefined;
|
|
1918
|
+
commitRef?: string | undefined;
|
|
1919
|
+
commitSha?: string | undefined;
|
|
1920
|
+
remoteUrl?: string | undefined;
|
|
1921
|
+
pullRequestNumber?: number | undefined;
|
|
1922
|
+
pullRequestTitle?: string | undefined;
|
|
1923
|
+
pullRequestState?: "open" | "closed" | "merged" | undefined;
|
|
1924
|
+
} | undefined;
|
|
1925
|
+
}, {
|
|
1926
|
+
runtime?: string | undefined;
|
|
1927
|
+
contentHash?: string | undefined;
|
|
1928
|
+
gitMeta?: {
|
|
1929
|
+
dirty?: boolean | undefined;
|
|
1930
|
+
source?: "trigger_github_app" | "github_actions" | "local" | undefined;
|
|
1931
|
+
provider?: string | undefined;
|
|
1932
|
+
ghUsername?: string | undefined;
|
|
1933
|
+
ghUserAvatarUrl?: string | undefined;
|
|
1934
|
+
commitAuthorName?: string | undefined;
|
|
1935
|
+
commitMessage?: string | undefined;
|
|
1936
|
+
commitRef?: string | undefined;
|
|
1937
|
+
commitSha?: string | undefined;
|
|
1938
|
+
remoteUrl?: string | undefined;
|
|
1939
|
+
pullRequestNumber?: number | undefined;
|
|
1940
|
+
pullRequestTitle?: string | undefined;
|
|
1941
|
+
pullRequestState?: "open" | "closed" | "merged" | undefined;
|
|
1942
|
+
} | undefined;
|
|
1943
|
+
}>;
|
|
1944
|
+
export type StartDeploymentRequestBody = z.infer<typeof StartDeploymentRequestBody>;
|
|
1861
1945
|
export declare const ExternalBuildData: z.ZodObject<{
|
|
1862
1946
|
buildId: z.ZodString;
|
|
1863
1947
|
buildToken: z.ZodString;
|
|
@@ -2060,6 +2144,7 @@ export declare const InitializeDeploymentRequestBody: z.ZodObject<{
|
|
|
2060
2144
|
}>>;
|
|
2061
2145
|
type: z.ZodOptional<z.ZodEnum<["MANAGED", "UNMANAGED", "V1"]>>;
|
|
2062
2146
|
runtime: z.ZodOptional<z.ZodString>;
|
|
2147
|
+
initialStatus: z.ZodOptional<z.ZodEnum<["PENDING", "BUILDING"]>>;
|
|
2063
2148
|
}, "strip", z.ZodTypeAny, {
|
|
2064
2149
|
contentHash: string;
|
|
2065
2150
|
type?: "V1" | "MANAGED" | "UNMANAGED" | undefined;
|
|
@@ -2081,6 +2166,7 @@ export declare const InitializeDeploymentRequestBody: z.ZodObject<{
|
|
|
2081
2166
|
pullRequestTitle?: string | undefined;
|
|
2082
2167
|
pullRequestState?: "open" | "closed" | "merged" | undefined;
|
|
2083
2168
|
} | undefined;
|
|
2169
|
+
initialStatus?: "PENDING" | "BUILDING" | undefined;
|
|
2084
2170
|
}, {
|
|
2085
2171
|
contentHash: string;
|
|
2086
2172
|
type?: "V1" | "MANAGED" | "UNMANAGED" | undefined;
|
|
@@ -2102,6 +2188,7 @@ export declare const InitializeDeploymentRequestBody: z.ZodObject<{
|
|
|
2102
2188
|
pullRequestTitle?: string | undefined;
|
|
2103
2189
|
pullRequestState?: "open" | "closed" | "merged" | undefined;
|
|
2104
2190
|
} | undefined;
|
|
2191
|
+
initialStatus?: "PENDING" | "BUILDING" | undefined;
|
|
2105
2192
|
}>;
|
|
2106
2193
|
export type InitializeDeploymentRequestBody = z.infer<typeof InitializeDeploymentRequestBody>;
|
|
2107
2194
|
export declare const DeploymentErrorData: z.ZodObject<{
|
|
@@ -2183,6 +2270,20 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
2183
2270
|
shortCode: z.ZodString;
|
|
2184
2271
|
version: z.ZodString;
|
|
2185
2272
|
imageReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2273
|
+
imagePlatform: z.ZodString;
|
|
2274
|
+
externalBuildData: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2275
|
+
buildId: z.ZodString;
|
|
2276
|
+
buildToken: z.ZodString;
|
|
2277
|
+
projectId: z.ZodString;
|
|
2278
|
+
}, "strip", z.ZodTypeAny, {
|
|
2279
|
+
projectId: string;
|
|
2280
|
+
buildId: string;
|
|
2281
|
+
buildToken: string;
|
|
2282
|
+
}, {
|
|
2283
|
+
projectId: string;
|
|
2284
|
+
buildId: string;
|
|
2285
|
+
buildToken: string;
|
|
2286
|
+
}>>>;
|
|
2186
2287
|
errorData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2187
2288
|
name: z.ZodString;
|
|
2188
2289
|
message: z.ZodString;
|
|
@@ -2243,6 +2344,7 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
2243
2344
|
version: string;
|
|
2244
2345
|
shortCode: string;
|
|
2245
2346
|
contentHash: string;
|
|
2347
|
+
imagePlatform: string;
|
|
2246
2348
|
worker?: {
|
|
2247
2349
|
id: string;
|
|
2248
2350
|
version: string;
|
|
@@ -2254,6 +2356,11 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
2254
2356
|
}[];
|
|
2255
2357
|
} | undefined;
|
|
2256
2358
|
imageReference?: string | null | undefined;
|
|
2359
|
+
externalBuildData?: {
|
|
2360
|
+
projectId: string;
|
|
2361
|
+
buildId: string;
|
|
2362
|
+
buildToken: string;
|
|
2363
|
+
} | null | undefined;
|
|
2257
2364
|
errorData?: {
|
|
2258
2365
|
message: string;
|
|
2259
2366
|
name: string;
|
|
@@ -2266,6 +2373,7 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
2266
2373
|
version: string;
|
|
2267
2374
|
shortCode: string;
|
|
2268
2375
|
contentHash: string;
|
|
2376
|
+
imagePlatform: string;
|
|
2269
2377
|
worker?: {
|
|
2270
2378
|
id: string;
|
|
2271
2379
|
version: string;
|
|
@@ -2277,6 +2385,11 @@ export declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
2277
2385
|
}[];
|
|
2278
2386
|
} | undefined;
|
|
2279
2387
|
imageReference?: string | null | undefined;
|
|
2388
|
+
externalBuildData?: {
|
|
2389
|
+
projectId: string;
|
|
2390
|
+
buildId: string;
|
|
2391
|
+
buildToken: string;
|
|
2392
|
+
} | null | undefined;
|
|
2280
2393
|
errorData?: {
|
|
2281
2394
|
message: string;
|
|
2282
2395
|
name: string;
|
|
@@ -2292,6 +2405,20 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
|
|
|
2292
2405
|
shortCode: z.ZodString;
|
|
2293
2406
|
version: z.ZodString;
|
|
2294
2407
|
imageReference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2408
|
+
imagePlatform: z.ZodString;
|
|
2409
|
+
externalBuildData: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2410
|
+
buildId: z.ZodString;
|
|
2411
|
+
buildToken: z.ZodString;
|
|
2412
|
+
projectId: z.ZodString;
|
|
2413
|
+
}, "strip", z.ZodTypeAny, {
|
|
2414
|
+
projectId: string;
|
|
2415
|
+
buildId: string;
|
|
2416
|
+
buildToken: string;
|
|
2417
|
+
}, {
|
|
2418
|
+
projectId: string;
|
|
2419
|
+
buildId: string;
|
|
2420
|
+
buildToken: string;
|
|
2421
|
+
}>>>;
|
|
2295
2422
|
errorData: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2296
2423
|
name: z.ZodString;
|
|
2297
2424
|
message: z.ZodString;
|
|
@@ -2352,7 +2479,13 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
|
|
|
2352
2479
|
version: string;
|
|
2353
2480
|
shortCode: string;
|
|
2354
2481
|
contentHash: string;
|
|
2482
|
+
imagePlatform: string;
|
|
2355
2483
|
imageReference?: string | null | undefined;
|
|
2484
|
+
externalBuildData?: {
|
|
2485
|
+
projectId: string;
|
|
2486
|
+
buildId: string;
|
|
2487
|
+
buildToken: string;
|
|
2488
|
+
} | null | undefined;
|
|
2356
2489
|
errorData?: {
|
|
2357
2490
|
message: string;
|
|
2358
2491
|
name: string;
|
|
@@ -2365,7 +2498,13 @@ export declare const GetLatestDeploymentResponseBody: z.ZodObject<Omit<{
|
|
|
2365
2498
|
version: string;
|
|
2366
2499
|
shortCode: string;
|
|
2367
2500
|
contentHash: string;
|
|
2501
|
+
imagePlatform: string;
|
|
2368
2502
|
imageReference?: string | null | undefined;
|
|
2503
|
+
externalBuildData?: {
|
|
2504
|
+
projectId: string;
|
|
2505
|
+
buildId: string;
|
|
2506
|
+
buildToken: string;
|
|
2507
|
+
} | null | undefined;
|
|
2369
2508
|
errorData?: {
|
|
2370
2509
|
message: string;
|
|
2371
2510
|
name: string;
|
|
@@ -2526,6 +2665,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2526
2665
|
executionStatus: import("./runEngine.js").TaskRunExecutionStatus;
|
|
2527
2666
|
}>;
|
|
2528
2667
|
dequeuedAt: z.ZodDate;
|
|
2668
|
+
workerQueueLength: z.ZodOptional<z.ZodNumber>;
|
|
2529
2669
|
image: z.ZodOptional<z.ZodString>;
|
|
2530
2670
|
checkpoint: z.ZodOptional<z.ZodObject<{
|
|
2531
2671
|
id: z.ZodString;
|
|
@@ -2827,6 +2967,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2827
2967
|
imageRef?: string | null | undefined;
|
|
2828
2968
|
reason?: string | null | undefined;
|
|
2829
2969
|
} | undefined;
|
|
2970
|
+
workerQueueLength?: number | undefined;
|
|
2830
2971
|
image?: string | undefined;
|
|
2831
2972
|
placementTags?: {
|
|
2832
2973
|
key: string;
|
|
@@ -2907,6 +3048,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2907
3048
|
imageRef?: string | null | undefined;
|
|
2908
3049
|
reason?: string | null | undefined;
|
|
2909
3050
|
} | undefined;
|
|
3051
|
+
workerQueueLength?: number | undefined;
|
|
2910
3052
|
image?: string | undefined;
|
|
2911
3053
|
placementTags?: {
|
|
2912
3054
|
key: string;
|
|
@@ -2989,6 +3131,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
2989
3131
|
imageRef?: string | null | undefined;
|
|
2990
3132
|
reason?: string | null | undefined;
|
|
2991
3133
|
} | undefined;
|
|
3134
|
+
workerQueueLength?: number | undefined;
|
|
2992
3135
|
image?: string | undefined;
|
|
2993
3136
|
placementTags?: {
|
|
2994
3137
|
key: string;
|
|
@@ -3071,6 +3214,7 @@ export declare const DevDequeueResponseBody: z.ZodObject<{
|
|
|
3071
3214
|
imageRef?: string | null | undefined;
|
|
3072
3215
|
reason?: string | null | undefined;
|
|
3073
3216
|
} | undefined;
|
|
3217
|
+
workerQueueLength?: number | undefined;
|
|
3074
3218
|
image?: string | undefined;
|
|
3075
3219
|
placementTags?: {
|
|
3076
3220
|
key: string;
|