mercredi 26 février 2020

how to put schedule task jobs in chain in laravel?

I am using laravel task scheduling inside it queue jobs or working i want to put these jobs in chain kernel.php

    $schedule->job(new \App\Jobs\FetchEmailAttachment)->dailyAt('16:15')->timezone('Australia/Melbourne');
    $schedule->job(new \App\Jobs\UploadFileFTP)->dailyAt('16:15')->timezone('Australia/Melbourne');
    $schedule->job(new \App\Jobs\SplitAttachment)->dailyAt('16:15')->timezone('Australia/Melbourne');           
    $schedule->job(new \App\Jobs\ResendAttachment)->dailyAt('16:15')->timezone('Australia/Melbourne');

I tried to use laravel withChain method but its not working .

I want to run these job in chain



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire