fix(sentinel): restore hourly version checks for enabled servers

Dispatch Sentinel checks hourly for eligible servers, including healthy
installations, while continuing to exclude build servers.
This commit is contained in:
Andras Bacsai
2026-09-14 15:43:52 +02:00
parent 9b07be2d68
commit 22fbbd74ff
3 changed files with 16 additions and 9 deletions
@@ -18,7 +18,7 @@ afterEach(function () {
Carbon::setTestNow();
});
it('does not dispatch CheckAndStartSentinelJob hourly anymore', function () {
it('dispatches an hourly Sentinel version check for a healthy Sentinel', function () {
$settings = Mockery::mock(InstanceSettings::class);
$settings->instance_timezone = 'UTC';
$this->app->instance(InstanceSettings::class, $settings);
@@ -39,8 +39,9 @@ it('does not dispatch CheckAndStartSentinelJob hourly anymore', function () {
$job = new ServerManagerJob;
$job->handle();
// Hourly CheckAndStartSentinelJob dispatch was removed — ServerCheckJob handles it when Sentinel is out of sync
Queue::assertNotPushed(CheckAndStartSentinelJob::class);
Queue::assertPushed(CheckAndStartSentinelJob::class, function ($job) use ($server) {
return $job->server->id === $server->id;
});
});
it('does not schedule periodic Sentinel restart checks', function () {