Worker limit request

Ah I see the request, you sure you need that much CPU time and not just wall time? Wall time is unlimited Are you hitting CPU time limits today?
12 Replies
jordanfinners
jordanfinners4mo ago
Yeah I hit worker execution limit for my report functions. I can send you it's name if that helps As wait time is unlimited according to the docs, I assume this is the thing timing my workers out
Walshy
WalshyOP4mo ago
are you doing this in a cron trigger?
jordanfinners
jordanfinners4mo ago
For context it's a worker consuming from a queue and then generating a report. The instances that timed out were generating a large report about 55k rows and looking up a lot of data from Shopify but I still need that size report to be generated for my customers Queue trigger 😊 Worker name pimsical-stock-take-app-consumers-reports
Walshy
WalshyOP4mo ago
queue consumer... yeah you're gonna be hitting the 15 min wall time limit I bet https://developers.cloudflare.com/workers/platform/limits/#worker-limits I recently learned this is a thing myself by hitting it :LuL: If you don't see 15 mins of CPU time in your metrics, it'll be this
jordanfinners
jordanfinners4mo ago
Ah I see, is that an limit able to increased? I'm on the paid plan too Thanks for looking into this so quickly too btw I've got some query improvements I can do but it still could happen so I'd like to be confident I've got headroom 😅
Walshy
WalshyOP4mo ago
it is not able to increase no I think you'll need to just do less per queue invocation
jordanfinners
jordanfinners4mo ago
🙈 Ah okay, I'll see what I can squeeze out the database Do you know if there's any plans to increase this in future? 🙏
Walshy
WalshyOP4mo ago
Not that I'm aware of currently
jordanfinners
jordanfinners4mo ago
Ah okay, thank you 😁 @Walshy | Deploying is there a nice way to profile this? I've had it happen again, where it wasn't huge amounts of data so wondering if there's a bug. As I'm seeing much difference with local performance, wondering if there's a nice way to do it
jordanfinners
jordanfinners4mo ago
Cloudflare Docs
Profiling CPU usage | Cloudflare Workers docs
Learn how to profile CPU usage and ensure CPU-time per request stays under Workers limits
jordanfinners
jordanfinners3mo ago
@Walshy | Deploying i did the profiling on one of the requests where I exceeded CPU limit but looking at the numbers here it doesn't look like it should have. The gap in the middle is pagianting through an API endpoint then couple loops to aggregate the data 🤔
No description
jordanfinners
jordanfinners3mo ago
Am I missing something? 🤔 Sorry to bother you But pretty lost in the weeds at this point 🙈
Want results from more Discord servers?
Add your server