459 questions
1
vote
1
answer
12k
views
Laravel Queue Batches: How to chain multiple batches
I have a series of batches, that need to be run in a chain (in correct order) and I am trying to find a way to link them all back together and ultimately give the user notification that everything is ...
1
vote
2
answers
3k
views
Laravel-Jobs are only dispatched once on
I got a problem with dispatching jobs on Laravel 9.4.1 with PHP 8.1.3. I have written some jobs which have their own queue (import-meta) but run via the database-connection. When I build my app-...
6
votes
1
answer
2k
views
Laravel: How to detect if code is being executed from within a queued job, as opposed to manually run from the CLI
I found this similar question How to check If the current app process is running within a queue environment in Laravel
But actually this is the opposite of what I want. I want to be able to ...
0
votes
0
answers
40
views
multiple amazon sqs queues with laravel
I have setup two queues (calculator-webhook-queue & offers-queue) on Amazon SQS with the following code:-
In .env file
QUEUE_CONNECTION=sqs
AWS_DEFAULT_REGION=us-east-1
AWS_ACCESS_KEY_ID=*******
...
0
votes
1
answer
48
views
Already moved, failed job get still processed in background
I'am working currently on a Laravel project which uses a big pipeline inside a single job. Inside that pipeline different third-party API calls are made and the results get written in a simple MariaDB....
0
votes
3
answers
139
views
Laravel 11.x Queue chain functions
I'am using Laravel 11.x as Framework and currently trying to figure out "the best" way to handle a big process from the amazon sp-api. I want to handle the API Requests within Jobs and want ...
1
vote
0
answers
68
views
Laravel queue/jobs is looking at the wrong database when job fails to record it
the queue can read the jobs table and find the right database.
However, when the job fails, it defaults to the connection database.sqlite, which is wrong.
I am getting this error -- database file at ...
6
votes
3
answers
7k
views
Laravel Horizon - Multiple queues running from one supervisor
Can anyone help with the correct configuration within horizon.php to get a single supervisor to run multiple queues? I have tried:
'supervisor-1' => [
'connection' => 'redis',
'queue' =&...
0
votes
1
answer
954
views
How to prevent concurrent processing of a particular job in laravel?
I'm currently implementing a wallet top-up system for an application. I'm using a job called AdjustWalletBalance to handle this. What the job simply does is to read the client's current wallet balance ...
1
vote
1
answer
174
views
Trigger Laravel queue from Python application
I want to send a Laravel queue job from a Python app. How this can be achievable?
1
vote
1
answer
157
views
Laravel Jobs: File created in job won't delete till queue has stopped
I am creating a temporary file in a Laravel Job which I want to delete later in the same job. However, the file does not seem to delete until the entire queue worker has been stopped. The file is ...
0
votes
1
answer
5k
views
Laravel queue process gets timeout
I'm running a command that should run a Laravel Excel import but it gets exhausted after a while. I'm using chunks and it worked before but now I'm struggling to make it work. It's a group of files ...
1
vote
1
answer
3k
views
Job Queues and Workers using Java, spring, redis
I want to create Jobs and Workers and process each Jobs created by REST request and also I want multi-level workers for single job.
Scenario: My Clients will post a request via REST API and the each ...
6
votes
2
answers
5k
views
Running Laravel job chain synchronously
I have a Laravel job chain like this
Job1::withChain([
new Job2(),
new Job3(),
new Job4()
])->dispatch();
Sometimes I want it to run the job synchronously.
But when I change ->dispatch() ...
2
votes
2
answers
10k
views
How to Chain Bus::chain() in laravel
I have three Laravel Parent jobs name
AutoPOChargeCalculation::dispatch($invoice_id, $user_id, $notify)->onQueue('invoice');
AutoSOChargeCalculation::dispatch($invoice_id, $user_id, ...
0
votes
1
answer
281
views
How to send laravel 10 fortify reset password email via database queue system?
I have Laravel 10 as my API backend with Fortify. When resetting the password, I want to send HTML content (retrieved from the database) to an email. The email should be queued, possibly via the jobs ...
3
votes
2
answers
5k
views
Why jobs table are empty when dispatching a job in Laravel 6?
I'm using laravel 6
I've been struggling all the day to figure out why jobs table never get populated when I dispatch a job
When I hit this artisan command php artisan queue:work
I get the ...
1
vote
0
answers
283
views
Laravel Job Batches - deadlock
I have a chain of two batches. One to prepare stuff and one to execute it. I had a lot of issues with it in the database, but I moved it to redis and it's perfect now.
However, the jobs are quite fast ...
42
votes
3
answers
96k
views
Install and configure supervisord on centos 7 to run Laravel queues permanently
I want to use Laravel queue system in my project and I want to run php artisan queue:work permanently on server's background, I did some searches about this and I found a command line which can run it ...
0
votes
2
answers
3k
views
Laravel Notification. Send Email if only Email address is avaiable
Currently, I am working with Laravel 5.7 Project
Now I am sending Laravel Notification (Email, SMS, and OneSignal Push)
User Email is optional(login with mobile).
Now, I want to send Email if only ...
3
votes
0
answers
166
views
Redis queued jobs are failing randomly due to Illuminate\Database\Eloquent\ModelNotFoundException · No query results for model
Recently after moving our queue driver to 'redis' we are facing more issue with some jobs/event listeners in the 'default' queue getting failed. At this time of failing, its also not getting inserted ...
0
votes
1
answer
501
views
Laravel failed job is not retrying
I have a job that has public $tries = 2; but when it fails, it does not retry. In Horizon, I have to retry the job manually.
Here is the job:
class SendEmailMessage implements ShouldQueue
{
use ...
1
vote
1
answer
1k
views
How to make supervisor work outside docker container for Laravel queue:worker
There's a lot of questions like this, feel like I've read them all and I'm no wiser.
Like everyone else I'm trying to have supervisor manage my Laravel queue for queued notifications.
If I'm outside ...
1
vote
1
answer
1k
views
Why some of my laravel queue jobs are executing twice and update balances in database twice?
I am using laravel 8 for my application and every is working fine except sometimes my queue jobs are running twice which is causing database ledger balance to update twice .
I found out this issue ...
1
vote
1
answer
276
views
In laravel how can i start all my queue using single artisan command
I have a large number of users hence I have to do that particular user has their queue not just one queue for all users. php artisan queue:work this command runs only default named queue. but in my ...