Slightly cleanup
This commit is contained in:
parent
07798b7366
commit
fa9431c54d
8 changed files with 16 additions and 191 deletions
|
@ -23,12 +23,9 @@ class Kernel extends ConsoleKernel
|
|||
// Execute scheduled commands for servers every minute, as if there was a normal cron running.
|
||||
$schedule->command('p:schedule:process')->everyMinute()->withoutOverlapping();
|
||||
|
||||
// Every 30 minutes, run the backup pruning command so that any abandoned backups can be deleted.
|
||||
$pruneAge = config('backups.prune_age', 360); // Defaults to 6 hours (time is in minuteS)
|
||||
if ($pruneAge > 0) {
|
||||
$schedule->command('p:maintenance:prune-backups', [
|
||||
'--since-minutes' => $pruneAge,
|
||||
])->everyThirtyMinutes();
|
||||
if (config('backups.prune_age')) {
|
||||
// Every 30 minutes, run the backup pruning command so that any abandoned backups can be deleted.
|
||||
$schedule->command('p:maintenance:prune-backups')->everyThirtyMinutes();
|
||||
}
|
||||
|
||||
// Every day cleanup any internal backups of service files.
|
||||
|
|
Reference in a new issue