I send email on my script with laravel queue.
I need to run php artisan queue:work on my script for run laravel queue. I want to monitor if this php artisan queue:work failed, I run again. My solution is command like this on corn job
class Kernel extends ConsoleKernel
{
protected function schedule(Schedule $schedule)
{
if(check queue failed)
$schedule->command("php artisan queue:work")->cron("* * * * *");
}
}
I have two question
1- what condition I should use instead of check queue failed
2- Is there any better solution?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire