Support the ongoing development of Laravel.io →
posted 8 years ago
Queues Jobs

Hi all,

i have a process executed by worker daemon (php artisan queue:work).

I set supervisor to run 4 simultaneous process. Every job can be mapped to a resource id. Is there a method to run a job only if there aren't other job related to the same resource id?

I mean, if Job 1 is running, the second Job must be related to a different resource_id to be executed. So if Job 2 is related to the same resource id of Job 1, it will be postponed to when Job 1 is complete, otherwise execute it.

Thank you

Last updated 3 years ago.
0

I have been using Gearman. It worked perfecly.

http://grandcondom.com

0

are you aware you're posting spam links ?

thenesta said:

I have been using Gearman. It worked perfecly.

http://grandcondom.com

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

m33ch m33ch Joined 19 Feb 2015

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.

© 2025 Laravel.io - All rights reserved.