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

This commit is contained in:
xboard committed 2026-04-18 02:57:55 +08:00
1 parent 7652882fe5
commit f5ff15e415
3 files changed
+49

No files matched your search

+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();