logoalt Hacker News

gls2rotoday at 4:05 AM1 replyview on HN

I think it is possible.

I was reading the pricing page for workers and here is what it says there:

> To prevent accidental runaway bills or denial-of-wallet attacks, configure the maximum amount of CPU time that can be used per invocation by defining limits in your Worker's Wrangler file, or via the Cloudflare dashboard (Workers & Pages > Select your Worker > Settings > CPU Limits).

Link: end of example 4 section: https://developers.cloudflare.com/workers/platform/pricing/


Replies

weird-eye-issuetoday at 4:33 AM

Limiting CPU time for a single invocation of a worker is more for catching bugs in code that is using more CPU than expected and is not whatsoever effective as a hard limit on spending...