From 9b54b151b3b1092fab8a97937d48c86643c86dfd Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 12 Aug 2026 19:16:01 -0700 Subject: [PATCH] refactor(cron): avoid receipt service cycle --- src/cron/service/run-receipts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cron/service/run-receipts.ts b/src/cron/service/run-receipts.ts index 1be74562537c..da779c438f66 100644 --- a/src/cron/service/run-receipts.ts +++ b/src/cron/service/run-receipts.ts @@ -1,3 +1,4 @@ +import { resolveCronJobEffectiveAgentId } from "../agent-id.js"; import { assertCronRunReceiptCurrent, assertCronRunReceiptCurrentInDatabase, @@ -10,7 +11,6 @@ import { } from "../store/run-receipt-store.js"; import type { CronStoreTransactionHooks } from "../store/transaction-hooks.js"; import type { CronJob, CronRunStatus } from "../types.js"; -import { resolveEffectiveJobAgentId } from "./ops-shared.js"; import type { CronServiceState } from "./state.js"; function currentDefaultAgentId(state: CronServiceState): string | undefined { @@ -18,7 +18,7 @@ function currentDefaultAgentId(state: CronServiceState): string | undefined { } function resolveCronRunReceiptAgentId(state: CronServiceState, job: CronJob): string { - return resolveEffectiveJobAgentId(job, currentDefaultAgentId(state)); + return resolveCronJobEffectiveAgentId(job, currentDefaultAgentId(state)); } function resolveAgentId(state: CronServiceState) {