2019-12-04 17:30:46 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console;
|
|
|
|
|
|
2022-03-09 17:28:23 +01:00
|
|
|
use App\Jobs\Arcadia\XmlFluxEggJob;
|
|
|
|
|
use App\Jobs\Arcadia\XmlFluxPoultryJob;
|
|
|
|
|
use App\Jobs\CafelBeaVolJob;
|
|
|
|
|
use App\Jobs\CafelEggBreederJob;
|
|
|
|
|
use App\Jobs\CafelFoodJob;
|
|
|
|
|
use App\Jobs\CafelMepEggJob;
|
|
|
|
|
use App\Jobs\CafelPoultryBreederJob;
|
2019-12-04 17:30:46 +01:00
|
|
|
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
|
|
|
|
|
*/
|
2022-03-08 11:49:18 +01:00
|
|
|
protected $commands = [];
|
2019-12-04 17:30:46 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Define the application's command schedule.
|
|
|
|
|
*
|
2022-03-08 09:42:26 +01:00
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
2019-12-04 17:30:46 +01:00
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
|
|
{
|
2022-03-09 17:28:23 +01:00
|
|
|
// * Jobs cafel sur queue cafel
|
2022-12-22 17:00:08 +01:00
|
|
|
$schedule->job(CafelFoodJob::class, 'cafel')->onOneServer()->dailyAt('22h30');
|
|
|
|
|
$schedule->job(CafelBeaVolJob::class, 'cafel')->onOneServer()->dailyAt('22h45');
|
|
|
|
|
$schedule->job(CafelMepEggJob::class, 'cafel')->onOneServer()->dailyAt('23h00');
|
|
|
|
|
$schedule->job(CafelEggBreederJob::class, 'cafel')->onOneServer()->dailyAt('23h15');
|
|
|
|
|
$schedule->job(CafelPoultryBreederJob::class, 'cafel')->onOneServer()->dailyAt('23h30');
|
2022-03-09 17:28:23 +01:00
|
|
|
|
2022-06-08 17:09:44 +02:00
|
|
|
$schedule->job(XmlFluxEggJob::class, 'tracea')->onOneServer()->dailyAt('02:00');
|
|
|
|
|
$schedule->job(XmlFluxPoultryJob::class, 'tracea')->onOneServer()->dailyAt('22:00');
|
2022-10-20 16:07:12 +02:00
|
|
|
$schedule->command('xml:clean_olds')->onOneServer()->dailyAt('06:00');
|
2019-12-04 17:30:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Register the commands for the application.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
protected function commands()
|
|
|
|
|
{
|
2022-03-08 09:42:26 +01:00
|
|
|
$this->load(__DIR__ . '/Commands');
|
2019-12-04 17:30:46 +01:00
|
|
|
|
|
|
|
|
require base_path('routes/console.php');
|
|
|
|
|
}
|
|
|
|
|
}
|