Adding support for using config values for process
This commit is contained in:
parent
8e155f25b3
commit
b3d8b99959
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ public function execute_remote_command(...$commands)
|
|||
private function executeCommandWithProcess($command, $hidden, $customType, $append, $ignore_errors)
|
||||
{
|
||||
$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();
|
||||
if ($output->startsWith('╔')) {
|
||||
$output = "\n".$output;
|
||||
|
|
@ -210,4 +210,4 @@ private function addRetryLogEntry(int $attempt, int $maxRetries, int $delay, str
|
|||
|
||||
$this->application_deployment_queue->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue