P
P
Pavel2021-10-26 17:48:54
Laravel
Pavel, 2021-10-26 17:48:54

Laravel queues. Run the next job in the queue after the response of the previous job, how to configure?

There is a cycle in which jobs are created for the queue, in each job an http request. The supervisor then starts this queue. I need each next task to wait for the response of the previous one, otherwise the process stops

foreach ($numbers as $key => $number){
     $job = new SendInvoice($data));
     dispatch($job);
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2021-10-26
@JhaoDa

If you don't hesitate to read the documentation, you can find this and that . We think we try...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question