File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
internal-packages/run-engine/src/engine/systems
packages/core/src/v3/schemas Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ export class RunAttemptSystem {
210
210
parentTaskRunId : true ,
211
211
rootTaskRunId : true ,
212
212
batchId : true ,
213
+ workerQueue : true ,
213
214
} ,
214
215
} ) ;
215
216
@@ -261,6 +262,7 @@ export class RunAttemptSystem {
261
262
priority : run . priorityMs === 0 ? undefined : run . priorityMs / 1_000 ,
262
263
parentTaskRunId : run . parentTaskRunId ? RunId . toFriendlyId ( run . parentTaskRunId ) : undefined ,
263
264
rootTaskRunId : run . rootTaskRunId ? RunId . toFriendlyId ( run . rootTaskRunId ) : undefined ,
265
+ region : run . runtimeEnvironment . type !== "DEVELOPMENT" ? run . workerQueue : undefined ,
264
266
} ,
265
267
attempt : {
266
268
number : run . attemptNumber ?? 1 ,
@@ -428,6 +430,7 @@ export class RunAttemptSystem {
428
430
} ,
429
431
parentTaskRunId : true ,
430
432
rootTaskRunId : true ,
433
+ workerQueue : true ,
431
434
} ,
432
435
} ) ;
433
436
@@ -574,6 +577,10 @@ export class RunAttemptSystem {
574
577
rootTaskRunId : updatedRun . rootTaskRunId
575
578
? RunId . toFriendlyId ( updatedRun . rootTaskRunId )
576
579
: undefined ,
580
+ region :
581
+ updatedRun . runtimeEnvironment . type !== "DEVELOPMENT"
582
+ ? updatedRun . workerQueue
583
+ : undefined ,
577
584
} ,
578
585
task,
579
586
queue,
Original file line number Diff line number Diff line change @@ -229,6 +229,8 @@ export const TaskRun = z.object({
229
229
// These are only used during execution, not in run.ctx
230
230
durationMs : z . number ( ) . optional ( ) ,
231
231
costInCents : z . number ( ) . optional ( ) ,
232
+
233
+ region : z . string ( ) . optional ( ) ,
232
234
} ) ;
233
235
234
236
export type TaskRun = z . infer < typeof TaskRun > ;
You can’t perform that action at this time.
0 commit comments