mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 14:13:31 +00:00
Merge pull request #6574 from ahmadw13/v4.x
feat: Add SSH command process timeout configuration
This commit is contained in:
1 file changed
+1
-1
@@ -155,7 +155,7 @@ trait ExecuteRemoteCommand
|
|||||||
private function executeCommandWithProcess($command, $hidden, $customType, $append, $ignore_errors)
|
private function executeCommandWithProcess($command, $hidden, $customType, $append, $ignore_errors)
|
||||||
{
|
{
|
||||||
$remote_command = SshMultiplexingHelper::generateSshCommand($this->server, $command);
|
$remote_command = SshMultiplexingHelper::generateSshCommand($this->server, $command);
|
||||||
$process = Process::timeout(3600)->idleTimeout(3600)->start($remote_command, function (string $type, string $output) use ($command, $hidden, $customType, $append) {
|
$process = Process::timeout(config('constants.ssh.command_timeout'))->idleTimeout(3600)->start($remote_command, function (string $type, string $output) use ($command, $hidden, $customType, $append) {
|
||||||
$output = str($output)->trim();
|
$output = str($output)->trim();
|
||||||
if ($output->startsWith('╔')) {
|
if ($output->startsWith('╔')) {
|
||||||
$output = "\n".$output;
|
$output = "\n".$output;
|
||||||
|
|||||||
Reference in new issue
Block a user