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 \App\Jobs\FetchEmailAttachment)->everyMinute();
// $schedule->job(new \App\Jobs\SplitAttachment)->everyMinute();
// $schedule->job(new \App\Jobs\ResendAttachment)->everyMinute();
$schedule->job((new \App\Jobs\FetchEmailAttachment)->chain([
new \App\Jobs\SplitAttachment,
new \App\Jobs\ResendAttachment
]), 'mailbox')->everyMinute();
}
I want to run all the jobs in chain one by one.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2SKr7R9
via IFTTT
Aucun commentaire:
Enregistrer un commentaire