expanse / laravel-distinct-jobs
Allows queue jobs to be distinct
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/expanse/laravel-distinct-jobs
Requires
- php: ^7.1.3
- laravel/framework: >5.8.28
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench-core: 3.8.*
- phpunit/phpunit: ^7.5|^8.0
This package is auto-updated.
Last update: 2025-10-07 04:17:57 UTC
README
Allows a user to specify that this job (with these specific parameters) should not run if there's another job (with the same set of parameters) already queued to run.
Requirements
- Laravel 5.8.29 or above
Install
composer require expanse/laravel-distinct-jobs
Use
Modify your jobs to use Expanse\Traits\DistinctJobTrait
as a trait.
If multiple jobs are then queued before the queue:work
command gets
to running them, any duplicated jobs will be immediately ended until
there is only a single job to run.