47 lines
1.3 KiB
PHP
Executable File
47 lines
1.3 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Console;
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
class Kernel extends ConsoleKernel
|
|
{
|
|
/**
|
|
* The Artisan commands provided by your application.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $commands = [
|
|
//
|
|
];
|
|
|
|
/**
|
|
* Define the application's command schedule.
|
|
*
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
* @return void
|
|
*/
|
|
protected function schedule(Schedule $schedule)
|
|
{
|
|
// $schedule->command('inspire')->hourly();
|
|
$schedule->command('neblogistics:sync')->everyMinute();
|
|
$schedule->command('neblogistic:sync-workflow-status')->everyMinute()->withoutOverlapping(2);
|
|
$schedule->command('neblogistic:send-email')->everyMinute()->appendOutputTo(storage_path('logs/cron.log'));
|
|
$schedule->command('neblogistic:send-status-email')->everyMinute()->withoutOverlapping(2)->appendOutputTo(storage_path('logs/cron.log'));
|
|
$schedule->command('neblogistic:cleanup-audit-logs')->monthlyOn(1, '02:00');
|
|
}
|
|
|
|
/**
|
|
* Register the commands for the application.
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function commands()
|
|
{
|
|
$this->load(__DIR__.'/Commands');
|
|
|
|
require base_path('routes/console.php');
|
|
}
|
|
}
|