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.
This commit is contained in:
2021-03-15 19:38:06 +09:00
parent 4c281934ff
commit 0ee3699b44
6 changed files with 238 additions and 139 deletions

View File

@@ -36,6 +36,7 @@ class Kernel extends ConsoleKernel
Commands\MiningTaxes\MiningTaxesLedgers::class,
Commands\MiningTaxes\MiningTaxesObservers::class,
Commands\MiningTaxes\MiningTaxesPayments::class,
Commands\MiningTaxes\MiningTaxesDataCleanup::class,
];
/**
@@ -52,7 +53,8 @@ class Kernel extends ConsoleKernel
* Purge Data Schedule
*/
$schedule->command('data:CleanData')
->weekly(7, '11:00');
->weekly(7, '11:00')
->withoutOverlapping();
$schedule->command('data:PurgeCorpLedgers')
->monthly();
$schedule->command('data:PurgeUsers')
@@ -86,7 +88,10 @@ class Kernel extends ConsoleKernel
->withoutOverlapping();
$schedule->command('MiningTaxes:Payments')
->hourlyAt('15')
->withoutOverlapping();
->withoutOverlapping();
$schedule->command('MiningTaxes:CleanupData')
->weekly(7, '11:15')
->withoutOverlapping();
}
/**