Create schedule helper methods bound to an application context type.
Call it once in lib/schedules.ts:
lib/schedules.ts
export const { defineSchedule } = createSchedules<AppContext>(); Copy
export const { defineSchedule } = createSchedules<AppContext>();
Cron and timezone are metadata for schedule providers. The inline runner only runs schedules when its run(...) method is called.
run(...)
Create schedule helper methods bound to an application context type.
Call it once in
lib/schedules.ts:Cron and timezone are metadata for schedule providers. The inline runner only runs schedules when its
run(...)method is called.