Questions tagged [laravel-jobs]

135 questions
1
vote
1 answer

Laravel job query Asynchronous / Synchronous?

Is Laravel job queue is Asynchronous? I want to execute a list of processes in Synchronous manner Say i have three processes in the job queue Process-1 Process-2 Process-3 I want to execute process-2 only after successful execution of process-1 or…
Kalhan.Toress
  • 21,683
  • 8
  • 68
  • 92
0
votes
0 answers

Laravel 9 Job is saved on Default Queue and runs twice

My Job is run twice but it should run only once and take about 4 Seconds and not 200ms 2x I dispatch a Job in my Controller. (Checked if it runs twice) it creates a entry in my Jobs table: jobs table I used artisan queue listen and queue work both…
Mervus
  • 1
0
votes
0 answers

How can i send notification to all users devices using Laravel Job?

I want to send a notification to all users when I click on send notification button it shows a success message on the spot without taking time and it sends a notification to all users in the background in the queue using the larval job. But when I…
0
votes
0 answers

Laravel Cancel Job Batch Speed Issue

Laravel 8 is introduce the Job Batching for the queue management. Where all the jobs is within one batch and we will play with batch if we want to. I have a issue with cancelling the batch. When we are cancelling the batch at that time it will auto…
0
votes
0 answers

phoneLogin() in MadelineProto within laravel queues and jobs cause SIGINT

I'm trying to manually login into telegram with below code within Madeline proto package written for php github link: $appInfo = new AppInfo; $appInfo->setApiId(MY ID); $appInfo->setApiHash('MY HASH'); $setting = new Settings; …
Ata barzegar
  • 116
  • 1
  • 12
0
votes
1 answer

Laravel Job Queue not saving database changes if one job fails

I have a background job that updates data via models. The issue is that when one of the job fails due to errors/exceptions (even when try/catch is used as long as an exception occurred), the rest of the other queued jobs which are successful do not…
Rick
  • 2,003
  • 4
  • 16
  • 28
0
votes
0 answers

Laravel 9 Call Stored Procedure using Jobs

I have stored procedure which is doing a task. When i try to execute in the controller it takes more time. So i planned to put as Job. When i try to execute nothing happens in the execution Controller try { $emailAddress = auth()->user()->email…
VPR
  • 77
  • 2
  • 3
  • 13
0
votes
0 answers

Laravel queue:work prints unreadable charachters in cli

I just upgraded from laravel 8 to laravel 9 and when running queue:work i get gibberish characters as shown in the image below: Then for test i installed a fresh laravel 9 an get the same result. What can i do to get cli printing like…
meph
  • 209
  • 1
  • 5
  • 16
0
votes
2 answers

How to run queue worker for all dynamic queues?

I am very new to the laravel-queue concept ,our project has multiple databases based on each customer.i am implementing workflows by using queue-jobs ,all databases list we are maintaining in another database called secret_databases which will…
Test Test
  • 79
  • 5
0
votes
1 answer

How to run laravel queue jobs in multiple databases?

I have multiple databases in my project based on company we are giving new database for that company.i am developing automation workflows in my current project for that i was planned to implemented queue-jobs concept to achieve this one. we are…
Test Test
  • 79
  • 5
0
votes
0 answers

Laravel job (Redis + Horizon) Error: Job has been attempted too many times or run too long. The job may have previously timed out

There is such a job. Sometimes the job is not executed and the message "App\Jobs\VotesJob has been attempted too many times or run too long. The job may have previously timed out. at…
Sanya H
  • 213
  • 3
  • 7
0
votes
1 answer

Better way to test if a job is dispatched in Laravel

I found 2 ways of testing whether a job is dispatched or not while doing phpUnit based unit testing in Laravel - 1. $this->expectsJobs(JobClassName::class); 2. Bus::fake(); Bus::assertDispatched(JobClassName::class); After scrutinizing Laravel…
gauravparmar
  • 884
  • 1
  • 9
  • 23
0
votes
1 answer

How to add PDF attachment in queue mails In Laravel?

I was able to send an email but when I put the attachData() in the UserMail there was an error. I think because of the parameter $this->pdf that should be declared in UserEmailJob, and I don't know how to fix it. UserEmailJob public $details; /** *…
0
votes
1 answer

Laravel Job for Bulk Mail

this is the first time I am using laravel queue jobs, and somehow i could not get it working. This is my mail class: class TopluKabulMektubu extends Mailable { use Queueable, SerializesModels; public $letter; public function…
0
votes
0 answers

Initiating Private Property via loop and checking exists before accessing it

I'm using Laravel Job to process some data, passing a device object which has json array in it. defined private properties, Note there are way more than just 3 private int $width; private int $depth; private int $height; Then initiating it via…
Zee
  • 351
  • 1
  • 15
1 2 3
8 9