Files
w4rpservices/app/Console/Kernel.php
drkthunder02 0ee3699b44 added jobs back in for the fetching and processing the mining ledgers
those jobs were taking extremely long times to complete, and jobs are better suited for them.
2021-03-15 19:38:06 +09:00

109 lines
3.0 KiB
PHP

<?php
namespace App\Console;
//Internal Library
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 = [
/**
* Data Commands
*/
Commands\Data\PurgeUsers::class,
Commands\Data\EmptyJumpBridges::class,
Commands\Data\CleanStaleDataCommand::class,
Commands\Data\Test::class,
/**
* Eve Commands
*/
Commands\Eve\ItemPricesUpdateCommand::class,
/**
* Finance Commands
*/
Commands\Finances\UpdateAllianceWalletJournal::class,
/**
* Mining Tax Commands
*/
Commands\MiningTaxes\MiningTaxesInvoices::class,
Commands\MiningTaxes\MiningTaxesLedgers::class,
Commands\MiningTaxes\MiningTaxesObservers::class,
Commands\MiningTaxes\MiningTaxesPayments::class,
Commands\MiningTaxes\MiningTaxesDataCleanup::class,
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
//Horizon Graph Schedule
$schedule->command('horizon:snapshot')->everyFiveMinutes();
/**
* Purge Data Schedule
*/
$schedule->command('data:CleanData')
->weekly(7, '11:00')
->withoutOverlapping();
$schedule->command('data:PurgeCorpLedgers')
->monthly();
$schedule->command('data:PurgeUsers')
->dailyAt('23:00');
/**
* Finances Update Schedule
*/
$schedule->command('finances:UpdateJournals')
->hourlyAt('45')
->withoutOverlapping();
/**
* Item Update Schedule
*/
$schedule->command('services:ItemPriceUpdate')
->hourlyAt('30')
->withoutOverlapping();
/**
* Mining Tax Schedule
*/
$schedule->command('MiningTaxes:Observers')
->dailyAt('22:00')
->withoutOverlapping();
$schedule->command('MiningTaxes:Ledgers')
->dailyAt('20:00')
->withoutOverlapping();
$schedule->command('MiningTaxes:Invoices')
->weeklyOn(1, '8:00')
->withoutOverlapping();
$schedule->command('MiningTaxes:Payments')
->hourlyAt('15')
->withoutOverlapping();
$schedule->command('MiningTaxes:CleanupData')
->weekly(7, '11:15')
->withoutOverlapping();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}