From 1f47db59554daee17a779fc1030bae54a0467d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Mon, 27 Jul 2026 23:29:20 +0200 Subject: [PATCH] docs(jobs): name the binding contract the registrars actually use --- src/lib/jobs/pr-detection.ts | 2 +- src/lib/jobs/reminder-worker.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/jobs/pr-detection.ts b/src/lib/jobs/pr-detection.ts index e373e29c4..8062dc74e 100644 --- a/src/lib/jobs/pr-detection.ts +++ b/src/lib/jobs/pr-detection.ts @@ -2,7 +2,7 @@ * v1.4.25 W16c — Enqueue helper + handler glue for the pg-boss * `pr-detection` queue. Lives in `src/lib/jobs/` next to the other * job-side helpers; the worker process binds the handler in - * `reminder-worker.ts` via `boss.work(PR_DETECTION_QUEUE, ...)`. + * the maintenance registrar via `createAndWork(boss, PR_DETECTION_QUEUE, …)`. * * The Next.js side (ingest routes) imports `enqueuePrDetection` and * never touches pg-boss directly — `getGlobalBoss()` returns the diff --git a/src/lib/jobs/reminder-worker.ts b/src/lib/jobs/reminder-worker.ts index 59c7036db..f8a20a384 100644 --- a/src/lib/jobs/reminder-worker.ts +++ b/src/lib/jobs/reminder-worker.ts @@ -8,8 +8,8 @@ * the domain registrars under `src/lib/jobs/reminder/`. Each registrar owns the * four facts the v1.4.37 dead-queue guards pin — the queue-name constant, its * `allQueues` membership, its `[QUEUE, CRON]` schedule tuple, and its - * `boss.work(QUEUE, …, handler)` binding — so a queue can never be declared - * without being provisioned, scheduled, and drained. + * `createAndWork(boss, QUEUE, …, handler)` binding — so a queue can never be + * declared without being provisioned, scheduled, and drained. * * Usage: Run as a standalone process or call startReminderWorker() from a * custom server setup. In dev, use: npx tsx src/lib/jobs/reminder-worker.ts