perf: Remove dead server filtering code from Kernel scheduler (#7585)

This commit is contained in:
Andras Bacsai authored and GitHub committed 2025-12-11 10:55:21 +01:00
commit 4afc58cb53
2 files changed
+4 -21

No files matched your search

+4 -7
View File
@@ -160,13 +160,10 @@ class ServerManagerJob implements ShouldQueue
ServerPatchCheckJob::dispatch($server);
}
// Check for sentinel updates hourly (independent of user-configurable update_check_frequency)
if ($server->isSentinelEnabled()) {
$shouldCheckSentinel = $this->shouldRunNow('0 * * * *', $serverTimezone);
if ($shouldCheckSentinel) {
CheckAndStartSentinelJob::dispatch($server);
}
// Sentinel update checks (hourly) - check for updates to Sentinel version
// No timezone needed for hourly - runs at top of every hour
if ($isSentinelEnabled && $this->shouldRunNow('0 * * * *')) {
CheckAndStartSentinelJob::dispatch($server);
}
}