Skip to content

Commit abfb078

Browse files
perf(orchestration): keep idle outbox polling untraced
1 parent 9639ec1 commit abfb078

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/server/src/orchestration-v2/EffectOutbox.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,8 @@ export const layer: Layer.Layer<EffectOutboxV2, never, SqlClient.SqlClient> = La
524524
(cause) => new EffectOutboxError({ operation: "reconcile-process-loss", cause }),
525525
),
526526
),
527-
claimNext: Effect.fn("EffectOutbox.claimNext")(
527+
// The worker polls for the next effect even when there is no work to claim.
528+
claimNext: Effect.fnUntraced(
528529
function* ({ workerId, leaseDurationMs, excludeRestartContinuations = false }) {
529530
const now = yield* DateTime.now;
530531
const nowIso = DateTime.formatIso(now);

0 commit comments

Comments
 (0)