Skip to content

Commit 17ca365

Browse files
committed
Change 'backups.prune_age' default to 6 hours
1 parent e34d31a commit 17ca365

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Console/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function schedule(Schedule $schedule)
2626
$schedule->command('p:schedule:process')->everyMinute()->withoutOverlapping();
2727

2828
// Every 30 minutes, run the backup pruning command so that any abandoned backups can be deleted.
29-
$pruneAge = config('backups.prune_age', 60);
29+
$pruneAge = config('backups.prune_age', 360); // Defaults to 6 hours (time is in minuteS)
3030
if ($pruneAge > 0) {
3131
$schedule->command('p:maintenance:prune-backups', [
3232
'--since-minutes' => $pruneAge,

config/backups.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// uses to upload backups to S3 storage. Value is in minutes, so this would default to an hour.
1313
'presigned_url_lifespan' => env('BACKUP_PRESIGNED_URL_LIFESPAN', 60),
1414

15-
// The time in which to wait before automatically marking a backup as failed.
16-
// To disable this feature, set the value to `0`.
17-
'prune_age' => env('BACKUP_PRUNE_AGE', 60),
15+
// The time to wait before automatically failing a backup, time is in minutes and defaults
16+
// to 6 hours. To disable this feature, set the value to `0`.
17+
'prune_age' => env('BACKUP_PRUNE_AGE', 360),
1818

1919
'disks' => [
2020
// There is no configuration for the local disk for Wings. That configuration

0 commit comments

Comments
 (0)