bugfix, move reconcile to job scheduler

This commit is contained in:
Alex Holliday committed 2026-06-25 11:47:22 -07:00
1 parent b21ef60cda
commit ef353dcb36
9 files changed
+88 -71

No files matched your search

+2 -1
View File
@@ -75,7 +75,8 @@ const startApp = async () => {
// Primary node does not process jobs, only need scheduler
// ***********************
else {
scheduler = new JobScheduler(shared.jobsRepository, shared.queueWorkersRepository, shared.workerId);
scheduler = new JobScheduler(shared.jobsRepository, shared.queueWorkersRepository, shared.monitorsRepository, queueMode, logger, shared.workerId);
await scheduler.init(); // register in the queue_workers registry + reconcile (seed the jobs collection)
}
const services = buildApi(shared, scheduler);