fix: make docker startup complete successfully
This commit is contained in:
@@ -2,6 +2,9 @@ import type { PgBoss } from 'pg-boss';
|
||||
import { RUN_DEEP_RESEARCH_BATCH_JOB, RUN_SEARCH_JOB } from './names.js';
|
||||
|
||||
export async function registerJobs(boss: PgBoss) {
|
||||
await boss.createQueue(RUN_SEARCH_JOB);
|
||||
await boss.createQueue(RUN_DEEP_RESEARCH_BATCH_JOB);
|
||||
|
||||
await boss.work(RUN_SEARCH_JOB, async ([job]) => {
|
||||
console.warn(`Job ${RUN_SEARCH_JOB} is queued but not implemented yet`, job?.id);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user