Zn4rK
CDCloudflare Developers
•Created by Zn4rK on 4/14/2025 in #workers-help
Waiting in worker
Hey! Is there a way to wait/sleep in a worker without incurring costs for the waiting time? Basically a setTimeout, or something similar. I call an external service, and sometimes it's too quick. In 99.9% of the cases, the data is there 100-200ms after the first check. I have an extremely restricted frontend (very sandboxed), and I'm not allowed any client side code at all, so that's not an option. Using queues is also not an option.
4 replies