16 Replies
And you're on the Unbound model?
yes
Hm, so if 3 users take about 30s, I'd try to do one user at a time first
That sounds like the easiest thing to try
the thing is that Im running it on a cron
and need to be run every month
BTW if you're on an ENT plan, it'd probably also be worth reaching out officially
how can i do that
If you mean how can you reach out officially, here: https://dash.cloudflare.com/?to=/:account/support
what i need to is, i have a list of ids, the using those ids i need to run some calculations (heavy) and then send an email\
even using batching, the worker runs out of cpu time
thanks!
can you help to white board really quick how could I do this? @Sid | R2
You'd really be better off doing this with a CSM if you're on an Enterprise plan. I just don't have all the pieces here.
i see, thanks!
Just to clarify, is it memory limits or CPU limits you’re hitting?
cpu limits
i manage to pin point this problem to this
An Unbound Worker can make 1,000 subrequests per invocation
Yeah is probably making a lot more than that
Is there a way to check exactly how many is it making?
And how would be a way to work around this?
I don’t think batching would help with subrequests right?
Because its the same invocation
Use Service Bindings to invoke the Worker which will have a refreshed subrequest limit
i.e have a Worker to get the IDs, and then it batches them & sends the batch of IDs to a Service Binding Worker that can process them
Ohh that’s perfect!
And i guess i can have multiple workers that process this requests?
Or is the same as batching them to a new worker?