Skip to content

ScheduleOptions

Defined in: packages/core/src/jobs/types.ts:162

Options for scheduling a recurring job.

await monque. schedule('0 * * * *', 'hourly-cleanup', { dir: '/tmp' }, {
  uniqueKey: 'hourly-cleanup-job',
});
optional uniqueKey: string;

Defined in: packages/core/src/jobs/types.ts:167

Deduplication key. If a job with this key is already pending or processing, the schedule operation will not create a duplicate.