Is running the queue connection in sync an option? This way all processes will be run synchronously though.
Nov 21, 2023
6
Level 1
Add job to queue but wait for it to complete on request
I'm currently working on a project which requires certain requests to always be executed in order, based on which request come first, always waiting for the previous one to complete.
With that requirement in mind, I've considered using queues, as it seems to match the use case very well, but noticed that the controller would queue the job and return, even though it has not completed yet.
My question is, is there a way to "await" for a background job to be completed?
Thanks in advance!
Please or to participate in this conversation.