Questions tagged [laravel-jobs]

135 questions
0
votes
2 answers

How to process php artisan queue:listen

I am facing a serious problem in Laravel Queue system please help me to fix this issue. Once I queue my mail by using $mailer = Mail::to($email_to)->queue(new ContactGeneral($data)); it stores into the database and runs this command from…
Md Hasibur Rahaman
  • 1,041
  • 3
  • 11
  • 34
0
votes
1 answer

All the jobs in chain are not executing in laravel task scheduling?

I am trying to run three jobs in chain in laravel task scheduling in kernel.php but it is only executing first job and ignoring other two jobs. kernel.php protected function schedule(Schedule $schedule) { // $schedule->job(new…
Bilal Arshad
  • 531
  • 3
  • 11
  • 33
0
votes
2 answers

Laravel 6.10 Application works locally but fails on production server with "Target class [] does not exist."

This problem deals specifically with Laravel 6.10 and queue processing. On my local machine, the program runs fine, and all queued jobs load well and process to completion. On my GoDaddy server, I get a mysterious error when the job tries to load…
Jared Clemence
  • 1,062
  • 11
  • 26
0
votes
1 answer

Changing Locale In Queue Job

I have a mutator that converts the model's body in desired translated format. public function getTextAttribute() { return $this->constructText($this->body); // which does __($key, $value) } protected $appends = ['text']; However, once they are…
senty
  • 12,385
  • 28
  • 130
  • 260
0
votes
2 answers

Is it possible to ensure that Laravel jobs actually run at round times?

I want to perform certain job exactly at round times, precisely every 30 minutes, for example: - 00:00 - 00:30 - 01:00 - ... - 12:00 - 12:30 - 13:00 - ... In the Kernel.php, I have this job... $schedule->command('mycommand:sender') …
Magno Alberto
  • 628
  • 14
  • 27
0
votes
2 answers

How can I run a seeder from a cronjob in Laravel?

I need to run a seeder what it takes a time to execute (like five minutes). But i set it in my crontab as: 0 0 * * * php /var/www/.../api/artisan db:seed --class=ApiPlayerStatisticsSeeder And it does not run by itself. Looks like it need an user to…
Simón Farias
  • 732
  • 2
  • 8
  • 21
0
votes
1 answer

Processing Laravel job with many HTTP requests inside, it fails trying by timeout

I have an API REST built using Laravel 5.8 framework. I have to get the data for my app from a public REST API. For this, i have to do a lot of requests. I made a seeder what do this, and it takes 2 minutes for the entire migration data process…
Simón Farias
  • 732
  • 2
  • 8
  • 21
0
votes
1 answer

Laravel storage put() or putFileAs() to an S3 directory fails for 1gb or larger files

Good day! I am having issues with storing files to our S3 when the file is large (1gb+). Only a supervisord entry like this is show: [2019-10-02 03:29:09][18] Processing: App\Jobs\JobMoveToS3 [2019-10-02 03:30:39][18] Processing:…
RayzorMamon
  • 174
  • 1
  • 13
0
votes
2 answers

How to push the Laravel job to the queue

I have a class XYJob which was created by artisan command and implements the ShouldQueue class. The QUEUE_DRIVER=redis in the .env file. The problem is that when i dispatch the job, it runs as a simple php function. The queue listener is not…
0
votes
1 answer

How to manually run items from the Jobs table in Laravel (for testing)

I am trying to test that some data gets populated on a page that is done by a job. In my testing environment, the queue isn't running. Is there any way to manually run the jobs from a function in a controller? I have retrieved all Jobs from my…
party-ring
  • 1,761
  • 1
  • 16
  • 38
0
votes
0 answers

laravel 5.4 send call with supervisor on 10 process

in my application I send some call on 10 process and I wait the response and if one of the call down or can not access the user whatever I want recall the user 3 times and I use it :
Hanik
  • 317
  • 2
  • 6
  • 25
0
votes
1 answer

Laravel Job fail issue

I need queue job to re-run if it failed. I set $tries = 3 but I need to know if in job I catch exception is this will be considered as filed job and will be re-run?
0
votes
1 answer

The system cannot find the path specified1

win i run this cod i have this error C:\Users\Administrator\Mettco1> * * * * * php /c/Users/Administrator/Mettco1/artisan schedule:run >> /dev/null 2>&1 The system cannot find the path specified.
0
votes
2 answers

Start a job with a transaction [PHP Laravel]

I need to trigger a laravel job within the transaction. Since the jobs are asynchronous, sometimes they complete before the transaction commits. In such situations, the job cannot get the relevant raw using the id. (Because the transaction is not…
0
votes
0 answers

maxAttemptsExceededException : Laravel Jobs fails because of max attempts or timeout

I have checked the questions asked before but did not find the solution I need. Here is the question list, Laravel & Laravel Forge returns “MaxAttemptsExceededException:” even when tries are set at 1, Asynchronous Laravel Jobs, Laravel job…
Keyur
  • 1,113
  • 1
  • 23
  • 42
1 2 3
8
9