459 questions
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, ...
2
votes
1
answer
3k
views
How to dispatch a chained job in a loop?
I am trying to dispatch a Laravel job inside a foreach loop. But the problem is, when I dispatch job inside loop sometimes it is completed before jobs queued before it are completed. What I want that ...
1
vote
1
answer
2k
views
Specifying queue name for Laravel notifications
I'm building a SAAS and I want each tenant to have their own queue for notifications. I have a notification class that implements Illuminate\Contracts\Queue\ShouldQueue and I send the notification ...
0
votes
0
answers
520
views
How to cancel multiple laravel queued job for the same task
I have a therapist system and each therapist add a session with its time when a client book a session
i run a queued job to remind the client and doctor
when the session starts
before the session ...
1
vote
1
answer
3k
views
Running commands from Controller async
There is a migration task. User uploads file to the server, then it should be saved and migration command should be run async. The first path works well, there is an issue with the second part.
I've ...
1
vote
1
answer
3k
views
queue-worker:queue-worker_00: ERROR (spawn error) Laravel Supervisor CentOS 7
I am trying to dispatch a job by laravel queue:work using supervisor in the live server (CentOS 7). Supervisor is running but the job is not processing. I am getting following error:
My worker file ...
1
vote
1
answer
1k
views
laravel queue: array_merge(): Expected parameter 2 to be an array, int given
i will use from laravel queue but return this error:
laravel queue: array_merge(): Expected parameter 2 to be an array, int given
ScanController:
<?php
namespace App\Http\Controllers;
use App\...
2
votes
2
answers
4k
views
Laravel Queue not inserting into the table, but the work still executes
So i am trying to create a queued job but it doesn't get added to the database or php artisan queue:listen database does not show anything. However, the work inside the handle() function gets executed....
0
votes
1
answer
948
views
Laravel Queue queue:work running in background in Shared hosting(CPanel)
In my project, I've made a simple newsletter system where I want to send an email to all subscribers. But the problem I faced in production (Cpanel hosting) I have to run laravel queue:work command in ...
0
votes
1
answer
585
views
Laravel Mails Swift_IoException Unable to open file for reading
There is a similar question here: "Unable to open file for reading" (Swift_IoException) in Laravel Mailable
However the accepted answer doesn't solve my problem.
I also saw the documentation ...
0
votes
2
answers
7k
views
Laravel queue is not doing job in the background
I am trying to use laravel queue to send bulk emails. So far I have written down the logic and it works fine, but the problem is that when I wrote the logic in controller it takes a lot of time so I ...
0
votes
0
answers
130
views
How to run queue in laravel 5.5 without shell or ssh?
i have hosted my laravel application on shared hosting where server does not allow me for ssh or shell access. And created the some events in my application and i have queued that events now i am ...
0
votes
1
answer
464
views
How to execute laravel job at low priority?
We have multiple jobs in our laravel application. Currently all jobs are queued at once and they execute one by one. I want this particular job to execute at low priority it means if anyother job ...
0
votes
1
answer
1k
views
Laravel 7 run queue:listen from route on shared hosting
I am wondering how to run php artisan queue:listen database manually to execute a job on a shared hosting. I am trying it from route file web.php :
Route::get('/job', function () {
Artisan::call('...
0
votes
1
answer
284
views
Laravel - cannot send message without a sender address
I have trouble with sending multiple jobs in Laravel.
Sometimes it working all right.
Sometimes I got this message cannot send message without a sender address in failed_job table and just 1 one ...
8
votes
4
answers
24k
views
Laravel Queue and Jobs - How to re run failed job later on
Thank you in advance
My question is simple
For example, I have created one job which is sending an email to the user. however it is failed due to some syntax error or any other exception, so laravel ...
0
votes
0
answers
544
views
Laravel job work command not working as before
My application's job - queue was working smoothly. Supervisor was also works fine before. But in last couple of day this jobs are not processing as before..
No error and nothing on logs file [Edited]
...
0
votes
0
answers
198
views
Laravel Queue: exit queue upon job/task error
I'm using Laravel Queues (against Redis) to process a number of actions that are dependent on one another (ie: they have to be processed sequentially).
Is there any way to halt/exit/quit queue ...
1
vote
0
answers
458
views
Laravel 7 Queue delete() specific job
I'm working on Laravel/Cache and Laravel/Queue. i have function that dispatch() Queue job
UpdateTimeImpJob::dispatch($data)->delay(Carbon::now()->addSeconds(10));
but in some condition, before ...
0
votes
1
answer
1k
views
Laravel-5.8: Not getting output on Queue Jobs
I am implementing Queue JOBS, in my Laravel Project for the first time. But I am facing some difficulties on it, as after php artisan queue:work, noting is showing on the terminal.
Let Me describe, ...
4
votes
1
answer
16k
views
How to solve Exception Serialization of 'Illuminate\Http\UploadedFile' is not allowed?
I need help to solve this error Exception Serialization of 'Illuminate\Http\UploadedFile' is not allowed
I am using events and listeners.
I wanna save a title, description and a photo. I think , the ...
3
votes
1
answer
5k
views
Cancel Jobs In Laravel
If I call the following:
return AdventureJob::dispatch($event->character->refresh(), $event->adventure, $event->levelsAtATime)->delay($timeTillFinished);
This will then create a job ...
0
votes
0
answers
195
views
Laravel Queue curl_multi_wait error while listening to SQS
I configured Laravel to use queue on SQS (AWS Simple Queue Service).
As I see now inside AWS monitoring console: SQS queue is working fine and receiving messages from Laravel.
The last thing I need to ...
1
vote
2
answers
5k
views
Laravel Horizon - Redis - HAProxy - Error while reading line from the server
Sorry for the title which might sound like an "allready answered" topic but I believe my case is unique.
Also, this is my first post so I apologize if I am not on the proper channel as I am ...
0
votes
0
answers
724
views
How to execute a laravel queue job sequentially with supervisor?
I have a job that is queued when user hits a url.
public function demoPR(Request $request) {
// ...
SavePRJob::dispatch($request->all(), $data);
}
And SavePRJob class
class SavePRJob ...