Defines schema and configuration for schedule worker tasks in the engine.
// Source: https://github.com/triggerdotdev/trigger.dev | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from "zod";
export const scheduleWorkerCatalog = {
"schedule.triggerScheduledTask": {
schema: z.object({
instanceId: z.string(),
// The nominal cron occurrence. Keep this field name for compatibility
// with jobs enqueued before effective schedule times were introduced.
exactScheduleTime: z.coerce.date(),
// Optional for compatibility with in-flight jobs. Missing means the
// effective time is the nominal exactScheduleTime.
effectiveScheduleTime: z.coerce.date().optional(),
// Optional for backward compat with i
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key