deploy_feedback icon indicating copy to clipboard operation
deploy_feedback copied to clipboard

enqueue/dequeue takes many seconds sometimes

Open uriva opened this issue 3 months ago • 2 comments

If my server is down and gets a new request, which it offloads to a queue, I see very large delays between enqueue time and dequeue.

How can I avoid this? My requirements is to return 200 immediately and do offline processing which is time sensitive.

I'm afraid that calling an async function without await could be aborted due to my server going down.

uriva avatar Sep 17 '25 17:09 uriva

One solution I could think of is just making another request to the server, but I would very much not want to do that just for latency as it's much less pretty.

uriva avatar Sep 17 '25 17:09 uriva

That doesn't work either

508: Loop Detected (LOOP_DETECTED)

Recursive requests to the same deployment cannot be processed.

uriva avatar Sep 19 '25 15:09 uriva