From 3292b369de087bfe4b6d7b04b0e9fff4da4b064f Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Wed, 4 Mar 2020 00:24:11 -0600 Subject: [PATCH] new command --- .../Commands/Wormholes/PurgeWormholes.php | 50 +++++++++++++++++++ app/Console/Kernel.php | 4 ++ 2 files changed, 54 insertions(+) create mode 100644 app/Console/Commands/Wormholes/PurgeWormholes.php diff --git a/app/Console/Commands/Wormholes/PurgeWormholes.php b/app/Console/Commands/Wormholes/PurgeWormholes.php new file mode 100644 index 000000000..0e8fd00a0 --- /dev/null +++ b/app/Console/Commands/Wormholes/PurgeWormholes.php @@ -0,0 +1,50 @@ +subHours(48))->delete(); + } +} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 472fd7997..252f9c462 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -26,6 +26,7 @@ class Kernel extends ConsoleKernel Commands\PurgeUsers::class, Commands\FlexStructureCommand::class, Commands\EmptyJumpBridges::class, + Commands\PurgeWormholes::class, ]; /** @@ -71,6 +72,9 @@ class Kernel extends ConsoleKernel $schedule->command('services:FlexStructures') ->monthlyOn(2, '00:01') ->withoutOverlapping(); + //Wormhole data purge + $schedule->command('services:PurgeWormholeData') + ->hourlyAt(20); //Horizon Graph Schedule $schedule->command('horizon:snapshot')->everyFiveMinutes();