mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 04:46:18 +00:00
refactor(proxy): update StartProxy calls to use named parameter for async option
This commit is contained in:
1 parent
c6f4354fdb
commit
f9a0ca2ca6
3 files changed
+3
-3
No files matched your search
@@ -104,7 +104,7 @@ class ServerCheck
|
|||||||
try {
|
try {
|
||||||
$shouldStart = CheckProxy::run($this->server);
|
$shouldStart = CheckProxy::run($this->server);
|
||||||
if ($shouldStart) {
|
if ($shouldStart) {
|
||||||
StartProxy::run($this->server, false);
|
StartProxy::run($this->server, async: false);
|
||||||
$this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server));
|
$this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server));
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
if ($this->foundProxy === false) {
|
if ($this->foundProxy === false) {
|
||||||
try {
|
try {
|
||||||
if (CheckProxy::run($this->server)) {
|
if (CheckProxy::run($this->server)) {
|
||||||
StartProxy::run($this->server, false);
|
StartProxy::run($this->server, async: false);
|
||||||
$this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server));
|
$this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server));
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
try {
|
try {
|
||||||
$shouldStart = CheckProxy::run($this->server);
|
$shouldStart = CheckProxy::run($this->server);
|
||||||
if ($shouldStart) {
|
if ($shouldStart) {
|
||||||
StartProxy::run($this->server, false);
|
StartProxy::run($this->server, async: false);
|
||||||
$this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server));
|
$this->server->team?->notify(new ContainerRestarted('coolify-proxy', $this->server));
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
|||||||
Reference in new issue
Block a user