Does the new pricing model consider setTimeout as part of IO time?
With the new pricing model for workers: https://blog.cloudflare.com/workers-pricing-scale-to-zero/ Would the worker scale to zero with something like setTimeout just like it does io?
The Cloudflare Blog
New Workers pricing — never pay to wait on I/O again
Announcing new pricing for Cloudflare Workers, where you are billed based on CPU time, and never for the idle time that your Worker spends waiting on network requests and other I/O.
1 Reply
thanks! 🙏🏾
@Skye async and await would work normally with workers? so would awaiting a timeout work to make sure the worker doesn't die?
Last question! Does fetch count as IO when waiting for response? Does that mean awaiting fetch to respond does not count towards billing? thanks for all the help @Skye !