mlntn / laravel-unique-queue Goto Github PK
View Code? Open in Web Editor NEWLaravel queue driver that prevents identical jobs from being queued
Laravel queue driver that prevents identical jobs from being queued
In the Horizon config I've:
'queue' => ['default', 'low'],
'balance' => false,
So first everything in the default
queue will be handled. When it's empty the low
queue will be processed. Now I only like to "uniquely" queued listeners on the low
queue. That's currently not possible because "uniquely" works with a custom connection. It would be awesome to have a job/listener implement an interface (I think that's better in this case in comparison with a trait currently used) and depending on that it will be "uniquelied".
Any chance Laravel 8 support could be added?
Hi,
I installed this package I added the queue connection, the Horizon configuration and added the trait and getUniqueIdentifier().
But I am getting this error. Any suggestions on where to look for what I am doing wrong?
Thanks.
/vendor/mlntn/laravel-unique-queue/src/Queue/HorizonUniqueQueue.php:65Illuminate\Foundation\Bootstrap\HandleExceptions::handleError
/vendor/mlntn/laravel-unique-queue/src/Queue/HorizonUniqueQueue.php:65Illuminate\Foundation\Bootstrap\HandleExceptions::handleError /vendor/mlntn/laravel-unique-queue/src/Queue/HorizonUniqueQueue.php:65Mlntn\Queue\HorizonUniqueQueue::deleteReserved /vendor/laravel/framework/src/Illuminate/Queue/Jobs/RedisJob.php:84Illuminate\Queue\Jobs\RedisJob::delete /vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php:57Illuminate\Queue\CallQueuedHandler::call /vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php:88Illuminate\Queue\Jobs\Job::fire /vendor/laravel/framework/src/Illuminate/Queue/Worker.php:337Illuminate\Queue\Worker::process /vendor/laravel/framework/src/Illuminate/Queue/Worker.php:283Illuminate\Queue\Worker::runJob /vendor/laravel/framework/src/Illuminate/Queue/Worker.php:118Illuminate\Queue\Worker::daemon /vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:102Illuminate\Queue\Console\WorkCommand::runWorker /vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:86Illuminate\Queue\Console\WorkCommand::handle /vendor/laravel/horizon/src/Console/WorkCommand.php:46Laravel\Horizon\Console\WorkCommand::handle
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.