This commit is contained in:
2020-05-27 04:46:13 -05:00
parent 84e600fa52
commit bc29df33b5

View File

@@ -31,6 +31,7 @@ class Kernel extends ConsoleKernel
Commands\Data\CleanStaleDataCommand::class, Commands\Data\CleanStaleDataCommand::class,
Commands\Moons\MoonsUpdateCommand::class, Commands\Moons\MoonsUpdateCommand::class,
Commands\Moons\RentalMoonCommand::class, Commands\Moons\RentalMoonCommand::class,
Commands\Moons\PurgeCorpMoonLedgers::class,
//Commands\Market\GetMarketDataCommand::class, //Commands\Market\GetMarketDataCommand::class,
//Commands\Market\PurgeMarketDataCommand::class, //Commands\Market\PurgeMarketDataCommand::class,
//Commands\PublicContracts\PublicContractsCommand::class, //Commands\PublicContracts\PublicContractsCommand::class,
@@ -46,47 +47,54 @@ class Kernel extends ConsoleKernel
{ {
//Horizon Graph Schedule //Horizon Graph Schedule
$schedule->command('horizon:snapshot')->everyFiveMinutes(); $schedule->command('horizon:snapshot')->everyFiveMinutes();
//Command to get the holding journal finances //Command to get the holding journal finances
$schedule->command('services:HoldingJournal') $schedule->command('services:HoldingJournal')
->hourly() ->hourlyAt('45')
->withoutOverlapping(); ->withoutOverlapping();
//Command to update moon rental pricing //Command to update moon rental pricing
$schedule->command('services:UpdateMoonPrice') $schedule->command('services:UpdateMoonPrice')
->hourlyAt('30') ->hourlyAt('30');
->withoutOverlapping();
//Get the corps within the alliance //Get the corps within the alliance
$schedule->command('services:GetCorps') $schedule->command('services:GetCorps')
->monthlyOn(1, '09:00') ->monthlyOn(1, '09:00');
->withoutOverlapping();
//Update the moons, and send out mails for current moon rentals //Update the moons, and send out mails for current moon rentals
$schedule->command('services:MoonMailer') $schedule->command('services:MoonMailer')
->monthlyOn(1, '00:01'); ->monthlyOn(1, '00:01');
//Get the structures within the alliance and their information //Get the structures within the alliance and their information
$schedule->command('services:GetStructures') $schedule->command('services:GetStructures')
->dailyAt('09:00') ->dailyAt('09:00');
->withoutOverlapping();
//Get the assets for the alliance. Only saves the Liquid Ozone for jump bridges //Get the assets for the alliance. Only saves the Liquid Ozone for jump bridges
$schedule->command('services:GetAssets') $schedule->command('services:GetAssets')
->hourlyAt('22') ->hourlyAt('22');
->withoutOverlapping();
//Clean old data from the database //Clean old data from the database
$schedule->command('services:CleanData') $schedule->command('services:CleanData')
->monthlyOn(15, '18:00'); ->monthlyOn(15, '18:00');
//Purge users from the database which don't belong and reset the user roles as necessary //Purge users from the database which don't belong and reset the user roles as necessary
$schedule->command('services:PurgeUsers') $schedule->command('services:PurgeUsers')
->dailyAt('23:00') ->dailyAt('23:00');
->withoutOverlapping();
//Mail about payments for flex structures //Mail about payments for flex structures
$schedule->command('services:FlexStructures') $schedule->command('services:FlexStructures')
->monthlyOn(2, '00:01') ->monthlyOn(2, '00:01');
->withoutOverlapping();
//Wormhole data purge //Wormhole data purge
$schedule->command('services:PurgeWormholeData') $schedule->command('services:PurgeWormholeData')
->hourlyAt(20); ->hourlyAt(20);
//Purge old data from the database //Purge old data from the database
$schedule->command('services:CleanData') $schedule->command('services:CleanData')
->weekly(7, '11:00') ->weekly(7, '11:00');
->withoutOverlapping();
//Purge old corp ledger data from the database
$schedule->command('data:PurgeCorpLedgers')
->monthly();
} }
/** /**