Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Merge branch 'next' into macau-v1

Andras Bacsai70ff73e95402
diff --cc app/Jobs/ServerManagerJob.php
index e2929362fc,53ee272bbf..20dc9987e5
--- a/app/Jobs/ServerManagerJob.php
+++ b/app/Jobs/ServerManagerJob.php
@@@ -146,24 -160,6 +160,14 @@@ class ServerManagerJob implements Shoul
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);
+ }
+ }
-
- // Dispatch Sentinel restart if due (daily for Sentinel-enabled servers)
- $isSentinelEnabled = $server->isSentinelEnabled();
- $shouldRestartSentinel = $isSentinelEnabled && $this->shouldRunNow('0 0 * * *', $serverTimezone);
-
- if ($shouldRestartSentinel) {
- dispatch(function () use ($server) {
- $server->restartContainer('coolify-sentinel');
- });
- }
}
private function shouldRunNow(string $frequency, ?string $timezone = null): bool