diff --git a/src/cron/session-target.test.ts b/src/cron/session-target.test.ts index 127e86007f8d..623df35cc43f 100644 --- a/src/cron/session-target.test.ts +++ b/src/cron/session-target.test.ts @@ -3,7 +3,6 @@ import { describe, expect, it } from "vitest"; import { resolveCronCurrentSessionTarget, resolveCronDeliverySessionKey, - resolveCronFailureNotificationSessionKey, resolveCronNotificationSessionKey, resolveCronSessionTargetSessionKey, } from "./session-target.js"; @@ -65,8 +64,5 @@ describe("cron session target helpers", () => { expect(resolveCronNotificationSessionKey({ jobId: "job-1", sessionKey: " " })).toBe( "cron:job-1:failure", ); - expect( - resolveCronFailureNotificationSessionKey({ id: "job-2", sessionTarget: "isolated" }), - ).toBe("cron:job-2:failure"); }); }); diff --git a/src/cron/session-target.ts b/src/cron/session-target.ts index 9209edd8fc0d..70606ba5736c 100644 --- a/src/cron/session-target.ts +++ b/src/cron/session-target.ts @@ -63,15 +63,3 @@ export function resolveCronNotificationSessionKey(params: { ? params.sessionKey.trim() : `cron:${params.jobId}:failure`; } - -/** Resolves the session key used to deliver failure notifications for a cron job. */ -export function resolveCronFailureNotificationSessionKey(job: { - id: string; - sessionTarget?: string | null; - sessionKey?: string | null; -}): string { - return resolveCronNotificationSessionKey({ - jobId: job.id, - sessionKey: resolveCronDeliverySessionKey(job), - }); -}