fix(seeder): conditionally dispatch CheckAndStartSentinelJob based on server's sentinel status

This commit is contained in:
Andras Bacsai
2025-06-17 08:10:19 +02:00
parent ad8b5bdcd3
commit 423cf8f67d

View File

@@ -125,8 +125,10 @@ class ProductionSeeder extends Seeder
$server->settings->is_usable = true;
$server->settings->save();
StartProxy::dispatch($server);
if ($server->isSentinelEnabled()) {
CheckAndStartSentinelJob::dispatch($server);
}
}
if (StandaloneDocker::find(0) == null) {
StandaloneDocker::create([