Support the ongoing development of Laravel.io →
posted 8 years ago
Queues
Last updated 2 years ago.
0

If you see laravel has a priority system for queues so for the first issue that you had that you don't want simultaneous execution just set up one priority with only one worker.

And laravel will process one job one by one

If you want a1 and the b1 and then b2 you just need to say ok when a is done dispatch the job b1 and so one

It's possible to dispatch jobs inside jobs just use the dispatches jobs trait

For the case that b1 fails I suggest to capture the possible exceptions In the code so b2 can be executed

0

arasmit2453 said:

If you want a1 and the b1 and then b2 you just need to say ok when a is done dispatch the job b1 and so one

It's possible to dispatch jobs inside jobs just use the dispatches jobs trait

For the case that b1 fails I suggest to capture the possible exceptions In the code so b2 can be executed

This couples them. Can't i use after handler like I intended?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.