459 questions
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 ...
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
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 ...
0
votes
0
answers
107
views
Laravel 5.5 Job Queue Not Working In Parallel Despite Having Many Workers
I'm using Laravel 5.5 with the database queue driver to manage jobs, and I have 5 workers running. However, I've noticed that the rate at which jobs are processed remains constant at 100 jobs per ...
1
vote
1
answer
863
views
Unable to add jobs to Bus Batch in Laravel
I am unable to add jobs to Bus Batch in Laravel in a foreach loop, and get the error Call to undefined method App\Jobs\ProcessSitemapChunk::withBatchId().
$sitemapUrl = 'someurl';
$...
0
votes
1
answer
2k
views
Laravel - Job has been attempted too many times
To anyone using Laravel Jobs and Horizon. Sometimes, after the job succeed, the queue tries it again with no reason:
App\Jobs\Job has been attempted too many times. {"exception":"[...
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 ...
1
vote
1
answer
1k
views
Laravel | Laravel Queue Job Is Not Being Processed
I have dispatched a job and the the job is added to the database on the specified table, e.g. "Jobs. The jobs are not being processed, even though the jobs are added to the database. No log ...
0
votes
1
answer
163
views
Laravel Job - Requeue or "Unfail" Specific Exceptions
We are using Laravel Jobs + Horizon, and have built a framework to retry jobs with exponential backoff using the hook for failed() as well as Job middleware to deal with log consolidation, but we've ...
0
votes
1
answer
676
views
How to avoid timeout when running time consuming jobs in Laravel
In my laravel application i do a form submit to execute a time consuming task by calling shell_exec(my_time_conusming_Script.sh) . The process executes successfully on the background. But the ...
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 ...
0
votes
1
answer
857
views
Laravel Queue::fake() should be at the top of our tests?
It's a very simple question, I had this test:
public function test_expired_cases_empty_dont_dispatch_update_expired_class()
{
$this->expired1->created_at = Carbon::now();
$this->...
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 ...
0
votes
0
answers
52
views
how to get selected options belongs to product
Thank you all in advance ,
i have peoject for ecommerce app
please check simplified DB schema for better unsrstand
products
- id
- name
- some other columns ...
product_items
- id
- product_id
- some ...
0
votes
2
answers
950
views
supervisor and queue is not working in horizon
horizon is setup in local is working properly, local horizon dashboard show me the supervisor info and current workload But in production horizon dashboard the status is active and not show supervisor ...
-1
votes
1
answer
158
views
Laravel Workers - AWS Beanstalkd Instance Termination
I am currently running my Laravel application on AWS Beanstalk with a load balancer configured. The setup allows for a minimum of 1 and a maximum of 2 instances to be running. So far, everything ...
2
votes
2
answers
1k
views
(PhpOffice\\PhpSpreadsheet\\Reader\\Exception(code: 0): Could not find zip member laravel queues job - Laravel
I have application created using Laravel 9.
i have installed 'maatwebsite/excel' library to export and import excel file. it is working good on local and server.
but now i have implemented laravel ...
0
votes
0
answers
130
views
I can't run more than 5 queues in my Laravel project
I have implemented Queues in a Laravel project. Since I can't install Supervisor on my server, I launch the queue:work command for each queue in Plesk panel. It works fine until I exceed 5 queues. The ...
1
vote
1
answer
1k
views
Laravel queues stop or terminates on its own
I have a laravel queue job that process around 10 to 12 seconds before succeeding.
It does not fail though and not throw any error logs.
Only problem is, it just stops processing the next jobs. I have ...
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 ...
2
votes
0
answers
204
views
Laravel Rate Limiter Release time
I am using a custom rate limiter as per https://laravel.com/docs/10.x/queues#rate-limiting.
// App Service Provider
RateLimiter::for('google-sheets', function (object $job) {
return Limit::...
1
vote
1
answer
1k
views
How can I make the laravel queue retry only failed notification channels instead of retrying the whole notification?
My laravel notification has to send messages to 2 channels. But when one channel failed, both channel was been resending message by queue. Is there anyway to solve this without creating a deferent ...
1
vote
1
answer
732
views
SFTP disconnect() method not working with Laravel
I'm running the following script inside a Laravel job (OperatorSubmissionJob) to upload multiple files to the SFTP server. Everything working well. But I have to disconnect the SFTP connection to end ...