Cron tasks has it's own scheduler: http://ift.tt/2rntj2q and I just wondering is it possible somehow to achieve similar effect to run some task every 5 minutes ( wihout overlaping ) when calling command from command. For example:
Task1 is called every 1 minute:
$schedule->command('Task1')->everyMinute()
In this Task1 command I would like to call command Task2 every 5 minutes.
$schedule->command('Task2')->every5Minute()
Would it work having in mind that only Task1 is registered in Console/Kernel.php and Task2 is called from Task1?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2rxOwtz
via IFTTT
Aucun commentaire:
Enregistrer un commentaire