Run a worker at a specific time

I was trying to find out how to run a Cloudflare worker at a certain time in future. I have a use case where after a payment is done, I need to check the status of a API 30 minutes after. not sure how to achieve this.

1 Like

You can’t schedule a worker for a time in the future. You can make a worker run every 30 minutes and check for completed tasks every run.


Probably with Cloudflare queues I can enqueue a certain task and run it with a delay. I have been going through the documentation but its not very clear as to how to add a delay to a item in queue.

1 Like