chore:little fixes and formating and linting and patches
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import type { CronQueueType } from '@openpanel/queue';
|
||||
import { cronQueue } from '@openpanel/queue';
|
||||
|
||||
import { logger } from './utils/logger';
|
||||
|
||||
async function removeConflictingJobs(schedulerKey: string) {
|
||||
@@ -137,7 +136,7 @@ export async function bootCron() {
|
||||
type: job.type,
|
||||
payload: undefined,
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
} catch (error) {
|
||||
// If upsert fails due to conflicting job, try to clean up and retry
|
||||
@@ -175,7 +174,7 @@ export async function bootCron() {
|
||||
type: job.type,
|
||||
payload: undefined,
|
||||
},
|
||||
},
|
||||
}
|
||||
);
|
||||
logger.info('Job scheduler created after cleanup', {
|
||||
job: job.type,
|
||||
|
||||
Reference in New Issue
Block a user