#Send a request to my worker's endpoint from a cron trigger event?

6 messages · Page 1 of 1 (latest)

golden urchin
#

So I set up a cron trigger that should send a request every 15 minutes to one of my worker's routes using fetch with await keyword. However, it seems that the request is never sent (the operation expected is not performed) while it succeeds when I use the Javascript console of any browser.

unique sparrow
#

Workers have a built in Cron feature btw

golden urchin
unique sparrow
#

You mentioned that you're using fetch. The Workers Cron Trigger executes the scheduled handler, not the fetch one so make sure you've configured it

golden urchin