jeudi 6 juin 2019

Laravel Queue Keeps Dublicating One Job with high cpu usage

I am running Laravel (5.8) on Shared hosting with CrobJob. when I am going to test just One Simple Job (for sending and Email) Queue Keeps Duplicating it. job table id from 0 to 60K now!!! for one job that keeps cloning! I tried everything like --daemon -tries and others...

One Job turned to 60K Jobs!!!

here is my cron task:

/usr/bin/php -ea_php 72 /path/to/rtisan queue:work > /dev/null 2>&1 > /dev/null 2>&1

here is my Kernel.php

$schedule->command('queue:restart')->hourly();
$schedule->command('queue:work --sleep=3 --timeout=900 --queue=high,default,low')->runInBackground()->withoutOVerlapping()->everyMinute();

cPanel info:

Number of Processes
60 / 100 (60%)



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2Kt94w6
via IFTTT

Aucun commentaire:

Enregistrer un commentaire