Is there a wall time limit for the free workers?
doucmentation seems to state that we dont but in practice all my calls die at 29,999 ms which is oddly specific
async fetch(request, env, ctx) {
....
ctx.waitUntil(processingPromise);
...?
3 Replies
ctx.waitUntil is capped at 30 seconds
IIRC that’s for all plans
even paid? oh my 🙁
I guess is this part?
How long can a subrequest take?
There is no set limit on the amount of real time a Worker may use. As long as the client which sent a request remains connected, the Worker may continue processing, making subrequests, and setting timeouts on behalf of that request.
When the client disconnects, all tasks associated with that client’s request are proactively canceled. If the Worker passed a promise to event.waitUntil(), cancellation will be delayed until the promise has completed or until an additional 30 seconds have elapsed, whichever happens first.
its a slack bot so im trying to respond within 3 seconds and then i have only 30 seconds to do the rest
i guess I'll have to offload the long running processes to another API
yeah queus is the answer ^