xrpl-mm / leptos-cloudflare

19 stars 3 forks source link

How to handle cron triggers? #7

Open Boscop opened 3 months ago

Boscop commented 3 months ago

Thanks for this example repo :)

Cloudflare workers have the ability to not just be called based on incoming HTTP requests but also based on cron triggers: https://developers.cloudflare.com/workers/configuration/cron-triggers/ https://developers.cloudflare.com/workers/examples/multiple-cron-triggers/

In JS this can easily be done by having an exported function named scheduled that gets called for cron triggers.

How can I handle cron triggers in a Rust/leptos based app, based on this template? :)