update schedule for fetching data from api

This commit is contained in:
omair saleh
2022-01-03 10:37:34 +08:00
parent 396f9370ae
commit 8a8fb3e03e
+22 -2
View File
@@ -27,6 +27,16 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('command:curlVTCommand')
->dailyAt('09:00')
->withoutOverlapping()
->appendOutputTo (storage_path().'/logs/curlvt.log');
$schedule->command('command:curlYdOrderListCommand')
->dailyAt('09:00')
->withoutOverlapping()
->appendOutputTo (storage_path().'/logs/curlyd.log');
$schedule->command('command:curlVTCommand')
->dailyAt('11:00')
->withoutOverlapping()
@@ -48,12 +58,22 @@ class Kernel extends ConsoleKernel
->appendOutputTo (storage_path().'/logs/curlyd.log');
$schedule->command('command:curlVTCommand')
->dailyAt('17:00')
->dailyAt('16:00')
->withoutOverlapping()
->appendOutputTo (storage_path().'/logs/curlvt.log');
$schedule->command('command:curlYdOrderListCommand')
->dailyAt('17:00')
->dailyAt('16:00')
->withoutOverlapping()
->appendOutputTo (storage_path().'/logs/curlyd.log');
$schedule->command('command:curlVTCommand')
->dailyAt('18:00')
->withoutOverlapping()
->appendOutputTo (storage_path().'/logs/curlvt.log');
$schedule->command('command:curlYdOrderListCommand')
->dailyAt('18:00')
->withoutOverlapping()
->appendOutputTo (storage_path().'/logs/curlyd.log');
}