schedule
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Console;
|
||||
|
||||
use Illuminate\Console\Scheduling\Schedule;
|
||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class Kernel extends ConsoleKernel
|
||||
{
|
||||
@@ -25,13 +26,31 @@ class Kernel extends ConsoleKernel
|
||||
protected function schedule(Schedule $schedule)
|
||||
{
|
||||
// $schedule->command('inspire')->hourly();
|
||||
$schedule->command('backup:clean')->daily()->at('02:00');
|
||||
$schedule->command('backup:run')->daily()->at('07:00');
|
||||
$schedule->command('order:gmupdate')->everyTenMinutes();
|
||||
$schedule->command('product:gmupdate')->daily()->at('02:00');
|
||||
$schedule->command('product:used:gmupdate')->daily()->at('04:30');
|
||||
//$schedule->command('product:updateqta')->hourly()->between('8:00', '00:00')->withoutOverlapping();
|
||||
$schedule->command('product:updateqta')->everyFiveMinutes()->between('8:00', '00:00')->withoutOverlapping();
|
||||
$schedule->command('backup:clean')->daily()->at('02:00')->before(function () {
|
||||
Log::info('Running backup:clean command');
|
||||
});
|
||||
$schedule->command('backup:run')->daily()->at('07:00')->before(function () {
|
||||
Log::info('Running backup:run command');
|
||||
});
|
||||
$schedule->command('order:gmupdate')->everyTenMinutes()->before(function () {
|
||||
Log::info('Running order:gmupdate command');
|
||||
});
|
||||
$schedule->command('product:gmupdate')->daily()->at('02:00')->before(function () {
|
||||
Log::info('Running product:gmupdate command');
|
||||
});
|
||||
$schedule->command('product:used:gmupdate')->daily()->at('04:30')->before(function () {
|
||||
Log::info('Running product:used:gmupdate command');
|
||||
});
|
||||
$schedule->command('product:updateqta')->everyFiveMinutes()->between('8:00', '00:00')->withoutOverlapping()->before(function () {
|
||||
Log::info('Running product:updateqta command');
|
||||
});
|
||||
$schedule->command('product:testpao')
|
||||
->everyMinute()
|
||||
->withoutOverlapping()
|
||||
->sendOutputTo(storage_path('logs/scheduled-command.log'))
|
||||
->before(function () {
|
||||
Log::info('Running product:testpao command');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user