From 5d9a08ea0b6ea2a254d8f8e7a22582037319ca2a Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 27 Jan 2022 12:48:55 +0800 Subject: [PATCH] fix overlapping schedules for vt and yd --- app/Console/Kernel.php | 41 ++--------------------------------------- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index de764786..3ad8692e 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -27,55 +27,18 @@ 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') + ->cron('0 9-18/3 * * *') ->withoutOverlapping() ->appendOutputTo (storage_path().'/logs/curlyd.log'); $schedule->command('command:curlVTCommand') - ->dailyAt('11:00') + ->cron('30 9-18/3 * * *') ->withoutOverlapping() ->appendOutputTo (storage_path().'/logs/curlvt.log'); - $schedule->command('command:curlYdOrderListCommand') - ->dailyAt('11:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlyd.log'); - $schedule->command('command:curlVTCommand') - ->dailyAt('14:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlvt.log'); - - $schedule->command('command:curlYdOrderListCommand') - ->dailyAt('14:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlyd.log'); - - $schedule->command('command:curlVTCommand') - ->dailyAt('16:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlvt.log'); - - $schedule->command('command:curlYdOrderListCommand') - ->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'); } /**