Open shiny opened 1 year ago
This feature will be added soon!
Cron trigger is not directly supported by the cloudflare's workerd readme file, but there's some way to implement this in vorker.
This feature is on the roadmap.
seems that the cloudflare already implement this.
need some time to figure out how to use it
In workers, usually the scheduled
function gets called. It would be up to the code to decide if it calls the same function as fetch
. This is an outdated example but it shows the code portion: https://github.com/kashalls/cloudflare-workers/blob/main/packages/cloudflare-status/src/index.ts#L24
At present, the official documentation of workerd does not clearly explain how cron is used or triggered. Although they have a corresponding implementation on cloudflare worker, its open source version (workerd) does not give corresponding parameter (or configuration) instructions. It will take more time to figure out whether cloudflare will implement cron in the future (or if it has already been implemented).
If there is any progress about cron trigger, I will update the progress under this Issue.
Are there any plans to add support for Cron Triggers?