mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(server): rate limit failed server validations on cloud
This commit is contained in:
@@ -216,7 +216,7 @@ function instant_remote_process_with_timeout(Collection|array $command, Server $
|
||||
);
|
||||
}
|
||||
|
||||
function instant_remote_process(Collection|array $command, Server $server, bool $throwError = true, bool $no_sudo = false, ?int $timeout = null, bool $disableMultiplexing = false): ?string
|
||||
function instant_remote_process(Collection|array $command, Server $server, bool $throwError = true, bool $no_sudo = false, ?int $timeout = null, bool $disableMultiplexing = false, ?int $maxAttempts = null): ?string
|
||||
{
|
||||
$command = $command instanceof Collection ? $command->toArray() : $command;
|
||||
|
||||
@@ -248,7 +248,8 @@ function instant_remote_process(Collection|array $command, Server $server, bool
|
||||
'command_preview' => substr($command_string, 0, 100),
|
||||
'function' => 'instant_remote_process',
|
||||
],
|
||||
$throwError
|
||||
$throwError,
|
||||
$maxAttempts
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user