fix: dedup device IPs, reset stale online_count on disconnect and scheduled cleanup (#886)

This commit is contained in:
xboard
2026-04-18 02:57:55 +08:00
parent 1708b6564b
commit 521d4e3ac5
3 changed files with 49 additions and 0 deletions
+2
View File
@@ -42,6 +42,8 @@ class Kernel extends ConsoleKernel
$schedule->command('send:remindMail', ['--force'])->dailyAt('11:30')->onOneServer();
// horizon metrics
$schedule->command('horizon:snapshot')->everyFiveMinutes()->onOneServer();
// cleanup stale online_count (GC for Redis TTL expiration)
$schedule->command('cleanup:online-status')->everyFiveMinutes()->onOneServer();
// backup Timing
// if (env('ENABLE_AUTO_BACKUP_AND_UPDATE', false)) {
// $schedule->command('backup:database', ['true'])->daily()->onOneServer();