scheduled events are automatically dispatched according to the specified cron
triggers:
HTTP Triggers
Because waiting for cron triggers is annoying, you can also make HTTP requests
to /cdn-cgi/mf/scheduled to trigger scheduled events:
To simulate different values of scheduledTime and cron in the dispatched
event, use the time and cron query parameters:
Dispatching Events
When using the API, the getWorker function can be used to dispatch
scheduled events to your Worker. This can be used for testing responses. It
takes optional scheduledTime and cron parameters, which default to the
current time and the empty string respectively. It will return a promise which
resolves to an array containing data returned by all waited promises:
Was this helpful?
What did you like?
What went wrong?
Thank you for helping improve Cloudflare's documentation!