mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
feat(servers): add cross-instance server migration (#11075)
This commit is contained in:
@@ -33,6 +33,19 @@ class ValidateAndInstallServerJob implements ShouldBeEncrypted, ShouldQueue
|
||||
public function handle(): void
|
||||
{
|
||||
try {
|
||||
if (! $this->server->canBeValidated()) {
|
||||
$message = 'This server was transferred to another Coolify instance and cannot be revalidated here.';
|
||||
$this->server->update([
|
||||
'validation_logs' => $message,
|
||||
'is_validating' => false,
|
||||
]);
|
||||
Log::warning('ValidateAndInstallServer: blocked for transferred server', [
|
||||
'server_id' => $this->server->id,
|
||||
]);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Mark validation as in progress
|
||||
$this->server->update(['is_validating' => true]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user