Marc
Marc
Explore posts from servers
CDCloudflare Developers
Created by Marc on 9/4/2024 in #workers-help
Does sleeping/delaying count as CPU time?
For the sake of billing and timeout limits does "sleeping" or doing something like await new Promise(r => setTimeout(r, 60000)); count as CPU time. Like would a worker that uses this code be billed for 60000 ms of execution? If not is there a limit to how long we can sleep to keep a worker going? I have an API that needs to be polled and I want to know if workers can be used for it.
3 replies