Add notification gc

pull/7106/head
Daniel Supernault 3 weeks ago
parent d6cf61d1aa
commit f37c5fc95c
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -9,7 +9,7 @@ class PruneOldNotifications extends Command
{
protected $signature = 'notifications:prune-old
{--months=18 : Keep notifications newer than this many months}
{--batch=10000 : Number of rows to delete per batch}';
{--batch=100000 : Number of rows to delete per batch}';
protected $description = 'Prune notifications older than the retention period';

@ -146,6 +146,7 @@ return Application::configure(basePath: dirname(__DIR__))
$schedule->command('app:weekly-instance-scan')->weeklyOn(2, '4:20')->onOneServer();
$schedule->command('app:cleanup-expired-app-registrations')->dailyAt(1)->onOneServer();
$schedule->command('passport:purge')->everyFourHours(20)->onOneServer();
$schedule->command('notifications:prune-old')->everySixHours(33)->oneOneServer()->withoutOverlapping(360);
if ((bool) config_cache('pixelfed.cloud_storage') && (bool) config_cache('media.delete_local_after_cloud')) {
// Upload any local stragglers to cloud and GC verified local copies.

Loading…
Cancel
Save