From 8a8fb3e03e2fa0c5306c316f89b5b3f928a62410 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 3 Jan 2022 10:37:34 +0800 Subject: [PATCH] update schedule for fetching data from api --- app/Console/Kernel.php | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 8e61b5ce..de764786 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -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'); }