Closed miguelrk closed 10 months ago
Add a crons module to schedule HTTP requests:
crons
// netzo.config.ts export default defineNetzoConfig({ modules: { crons: { // ... crons: [ { request: "/api/every-minute", // [internal] (defaults to GET /api/every-minute) schedule: "* * * * *" }, { url: "https://api.example.com/every-hour", // [external] via absolute URL schedule: "0 * * * *" }, { request: (options) => ({ method, url: "/api/every-day", headers, body }) // [getter] create request dynamically schedule: "0 0 * * *", } ] } })
Closing as no longer relevant since Deno.cron has landed
Deno.cron
Add a
crons
module to schedule HTTP requests: