Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/jobs/handlers/schedule-manager-job

lib/jobs/handlers/schedule-manager-job

Background job handler for managing scheduled imports.

Runs periodically to check for scheduled imports that are due for execution. Creates new import-files records for scheduled URLs and triggers URL fetch jobs. Implements a cron-like scheduler using Payload’s job system with support for various frequency patterns and retry logic.

Variables

scheduleManagerJob

const scheduleManagerJob: object

Type declaration

slug

slug: string = "schedule-manager"

handler()

handler: (__namedParameters) => Promise<{ output: { success: boolean; totalScheduled: number; triggered: number; errors: number; }; }>

Parameters
__namedParameters
job?

{ id?: string | number; }

job.id?

string | number

req?

{ payload?: BasePayload; }

req.payload?

BasePayload

Returns

Promise<{ output: { success: boolean; totalScheduled: number; triggered: number; errors: number; }; }>

Last updated on