143 questions
0
votes
0
answers
91
views
Laravel Queue Process Slow
I hope you’re all doing well. I’m reaching out because I’m facing an issue with my setup. I have a .NET application and a Laravel system integrated via API. The .NET application sends payloads to the ...
0
votes
1
answer
119
views
Confusions with how Laravel's Job serialization and deserialization works
What happens to the model's eager-loaded relationship when the model is passed to another Job's dispatch method?
Context:
There is a job that retrieves all ongoing games and this job should create an ...
-2
votes
1
answer
85
views
Laravel Job issue with multiple databases
I am facing an issue in my Laravel project. I have created multiple databases. When a user logs in through the frontend, they have to select a company code. With this code we decide which database has ...
0
votes
0
answers
197
views
Pdf Merge Taking too long in laravel job
I am merging pdfs . These files could be more than 100 . Now problem is my server only has 1 GB RAM. Server hangs when these merging starts actually this process is working in Job. It works fine on ...
1
vote
1
answer
88
views
Email Sent success when i using laravel queue but in cosnole it return fail laravel Queue
I am woring with laravel queue for sending mail to multiple users but when i run command
laravel queue:work
But it getting fail after running but email i recive in mail box so, how can fix this if ...
1
vote
2
answers
8k
views
How to delay Laravel Job Queue
I am trying to learn about Jobs and queues in Laravel , when i try to learn something new i always take a basic example by myself and try to understand the workflow better.
Okay here is the problem
I ...
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 ...
1
vote
1
answer
841
views
how to implement/Handle auto bidding using laravel?
I am currently in the process of building a online auction website with similar features like in Mytokuri.in / Bidderboy.com . My website is complete around 90% complete. I face an obstacle of ...
1
vote
1
answer
237
views
Laravel 10 everySecond Method doesn't work as expected
According to laravel 10 documentation, we can use other sub-minute time constraints (everySecond, everyTwoSeconds, etc) for intervals lesser than one minute; but none of the sub-minute seems to be ...
0
votes
1
answer
240
views
Job timeout and excessive attempt issues
I'm working with a job with a timeout set to 21600 seconds. However, when the execution time exceeds this limit, I encounter an error message stating:
App\Jobs\JobName has been attempted too many ...
1
vote
0
answers
70
views
Is it possible to use Laravel Horizon installed within one module to monitor queues in another module, both of which are using the same Redis?
iam new to Redis and Horizon
i have two laravel projects hosted in same server, which are using same database and same redis service.
Let's say the projects are X and Y.
I have configured Laravel ...
0
votes
1
answer
2k
views
Issues running supervisor on a Laravel dockerized app
I've got a dockerized Laravel app which is working just fine. Recently, a job was added to the app, to manage this job we'll use supervisor.
When running the app docker-compose --build the app is ...
0
votes
1
answer
1k
views
laravel queue:work are not processing until I run the job synchronously
Laravel version 8.83.17.
I've been using laravel for years and this seems to be a weird problem only occured in one of my mac machine.
Queue driver is using local Redis. have set QUEUE_CONNECTION=...
7
votes
4
answers
36k
views
How could I dispatch one job from another in Laravel
Trait method dispatch has not been applied, because there are collisions with other trait methods on
I'm always getting the above error, now I want to use both Dispatchable and DispatchJobs in a job, ...
1
vote
1
answer
1k
views
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 ...
0
votes
0
answers
199
views
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
...
0
votes
2
answers
852
views
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 ...
5
votes
1
answer
10k
views
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(...
0
votes
1
answer
248
views
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;
...
1
vote
2
answers
3k
views
how to run the jobs queue immediately after a job added to queue in laravel?
I currently registered php artisan schedule:run in cronjob in cpanel and the schedule method is:
protected function schedule(Schedule $schedule)
{
$schedule->command('queue:work --stop-when-...
1
vote
2
answers
196
views
Laravel Job Withcount Parameter not Accessible in job Laravel 5.6
Hii I created a job to send mail. I execute a query in the controller using withCount() and am able to get the count parameter inside the controller but while I am parsing the same data to the job and ...
10
votes
3
answers
13k
views
laravel deserialize/decode job raw body
i'm experiencing one problem here. Sample will speak for it self.
Queue::after(function (JobProcessed $event) {
$job_details = json_decode($event->job->getRawBody(), true);
)});
This is how $...
1
vote
0
answers
223
views
Database changes not working when exception is thrown in queue/job
Im dispatching jobs that makes use of a table containing unprocessed data fetched from a file from an ftp server; which this job should process and insert or update on a separate table.
In my job file ...
0
votes
1
answer
4k
views
How to stop specific schedule task (cron job) in laravel 5 on live server cpanel
I have created multiple schedule tasks in laravel 5, and created cron job on cpanel it is working fine. But now i want to stop specific schedule task, i have comment the command and remove class from ...
1
vote
2
answers
2k
views
Expire for Laravel Jobs
I parse some HTML pages and API endpoints, for example, every 5 minutes to track changes. For this purpose, I have created ParseJob where I do parsing and save changes to a database. ParseJob ...