Hi there,
I am working on my first Workers application that requires cron triggers.
The trigger works fine when I start it using the QuickEdit page. No errors or exceptions are thrown.
When the cron is triggered automatically every minute every execution results in a “Error” state inside the log and the code seems not to run at all (no expected KV update).
Is there a difference in automatic runs and manual triggers through the UI?
Code snippet:
addEventListener('scheduled', event => {
event.waitUntil(cron_handler(event));
})
function cron_handler(event) returns Promise.resolve(true); in the end.