โฐ CPGH Cron Jobs
Learn how to schedule automated tasks with CPGH cron jobs using the built-in scheduler.
{`// CPGH Cron Configuration in .CPGH/STU/Cron.Page CPGH::PAGE "Cron" { PROTOCOL: DO://Page/Cron TITLE: "Scheduled Tasks" AUTH: true SECTION "jobs" { DATA: { backup: , cleanup: , health: , report: } } SECTION "tasks" { RENDER: Cron::TaskManager DATA: } }`} ๐ค CPGH Cron Routes {`// CPGH Router with Cron Endpoints // _Router.Page STRICT: true ERROR_PAGE: Error.Page ROUTE "/api/cron/jobs" ROUTE "/api/cron/run" ROUTE "/api/cron/enable" ROUTE "/api/cron/disable" ROUTE "/api/cron/history" `} ๐ CPGH Cron Response {`// CPGH Cron API Response GET DO://Page/Cron { "page": "Cron", "title": "Scheduled Tasks", "auth": true, "jobs": { "backup": , "cleanup": }, "tasks": }`} ๐ CPGH Cron Syntax Reference * Every minute/hour/day
Every 5 minutes
2am daily
9am Monday