Loading...
Loading...
Registers cron triggers with 7-field expressions to run functions on recurring schedules. Use when scheduling periodic jobs, timed automation, crontab replacements, cleanup routines, report generation, health checks, batch processing, or any task that should run every N seconds, minutes, hours, or on a weekly/monthly calendar.
npx skill4agent add iii-hq/skills iii-cron-schedulingsecond minute hour day month weekday yearCronModule timer tick
→ registerTrigger type:'cron' expression match
→ registerFunction handler
→ (optional) TriggerAction.Enqueue for heavy work| Primitive | Purpose |
|---|---|
| Define the handler for the scheduled job |
| Bind a cron expression to a function |
| Cron schedule in 7-field format |
registerWorker(url, { workerName })registerFunction(id, handler)registerTrigger({ type: 'cron', config: { expression } })trigger({ function_id, payload, action: TriggerAction.Enqueue({ queue }) })const logger = new Logger()0 0 */6 * * * *iii-state-managementiii-queue-processingiii-state-reactionsiii-cron-schedulingiii-cron-scheduling