Skip to content

Commit 420a140

Browse files
committed
fix(core): read each worker stamp key independently
1 parent 89d7e4c commit 420a140

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/core/src/v3/schemas/runEngine.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export type RunAnnotations = z.infer<typeof RunAnnotations>;
4040

4141
/** Lenient read of the worker stamp: works on blobs that predate or fail RunAnnotations. */
4242
export const WorkerStampAnnotations = z.object({
43-
workerCell: z.string().optional(),
44-
workerLane: z.string().optional(),
43+
workerCell: z.string().optional().catch(undefined),
44+
workerLane: z.string().optional().catch(undefined),
4545
});
4646

4747
export type WorkerStampAnnotations = z.infer<typeof WorkerStampAnnotations>;

0 commit comments

Comments
 (0)