cleaning stale data weekly

This commit is contained in:
2020-04-04 04:07:24 -05:00
parent dd0fb8eff0
commit 2d6989ed1c
2 changed files with 117 additions and 0 deletions
+5
View File
@@ -28,6 +28,7 @@ class Kernel extends ConsoleKernel
Commands\EmptyJumpBridges::class,
Commands\PurgeWormholes::class,
Commands\SovBillsCommand::class,
Commands\CleanStaleDataCommand::class,
];
/**
@@ -76,6 +77,10 @@ class Kernel extends ConsoleKernel
//Wormhole data purge
$schedule->command('services:PurgeWormholeData')
->hourlyAt(20);
//Purge old data from the database
$schedule->command('services:CleanData')
->weekly(7, '11:00')
->withoutOverlapping();
//Horizon Graph Schedule
$schedule->command('horizon:snapshot')->everyFiveMinutes();