release the job rather than throwing

This commit is contained in:
2025-03-30 13:18:16 +00:00
parent 40097e81c0
commit 2daab6a458
2 changed files with 3 additions and 2 deletions

View File

@@ -34,7 +34,8 @@ class WaitForServerToConnect implements ShouldQueue, ShouldBeEncrypted
if (! $process->isSuccessful()) {
logger('server not reachable');
logger($process->getErrorOutput());
throw new \Exception('Server is not reachable');
$this->release(15);
return;
}
$this->server->update([

View File

@@ -77,7 +77,7 @@ if (form.provider && !props.locations) {
</div>
<div v-if="form.location" class="grid md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-2">
<RadioButton
v-for="serverType in serverTypes.sort((a, b) => a.cores - b.cores)"
v-for="serverType in serverTypes?.sort((a, b) => a.cores - b.cores) ?? []"
v-model="form.server_type"
:value="serverType.id"
:disabled="serverType.disabled"