fix: schedule StoryMoveStorageLocalToCloud command

The story cloud-migration command was merged (#6958) but its scheduler
entry was dropped when the emoji branch (based off staging before that
merge) later merged and overwrote the scheduler block. Restore the hourly
schedule so local story media is migrated to cloud automatically.
pull/6961/head
Your Name 4 weeks ago
parent dd007e2345
commit 842681b99b

@ -146,6 +146,8 @@ return Application::configure(basePath: dirname(__DIR__))
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.
$schedule->command('admin:MediaMoveStorageLocalToCloud --force --limit=500')->hourlyAt(15);
// Same for local story media and story_archives.
$schedule->command('admin:StoryMoveStorageLocalToCloud --force --limit=500')->hourlyAt(25);
// Same for local custom emoji (no limit: keep all emoji on cloud).
$schedule->command('admin:EmojiMoveStorageLocalToCloud --force')->dailyAt('04:35');
}

Loading…
Cancel
Save