#Sudden appearance of "Worker exceeded CPU time limit" errors

16 messages · Page 1 of 1 (latest)

junior dagger
#

Previously-working workers being tested with wrangler dev --env development --remote started failing on Friday, and I can't figure out why. Our production workers appear to still be working fine, but testing workers with wrangler dev is not. The workers will respond to a few requests and then fail with X [ERROR] Error: Worker exceeded CPU time limit. errors. Once they fail with this error, they continue to fail for all requests until restarted. Bizarrely, if I pull from our main branch (which is deployed to production) and run wrangler dev, I still get these errors even though the worker is functioning just fine in production.

dense trail
#

How much CPU time is the production Worker using?

junior dagger
#

How would I test that? Using the unbound workers plan

#

I see in the workers dashboard our production environment doesn’t have a limit, but the development environment does. There shouldn’t be a limit because we’re on the unbound plan, so I think when accounts were “automatically transitioned” on March 1, something was done incorrectly with that environment

#

It also seems to be counting invocation runtime incorrectly when using wrangler dev.

#

Once the worker is started, all requests count against the cpu limits rather than each request having its own cpu limit

summer plover
junior dagger
#

Check the settings for the worker in your cloudflare dashboard. I found that the migration to the standard usage model set a 50 ms cpu limit on one of our environments that I’m unable to change

#

The dashboard shows an error saying that I can’t change it because the account isn’t on the unbound workers plan. Which, duh, that plan was phased out on March 1

#

I recommend opening a support ticket with CF, that’s what I’m doing

carmine lynx
carmine lynx
junior dagger
#

Thanks. My ticket number is #3169997

carmine lynx
#

Thanks I forwarded up to make sure it was linked to that incident

waxen compass
junior dagger