Skip to content

Commit

Permalink
Increase MOJO_CONNECT_TIMEOUT in openqa-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpunk committed Nov 16, 2023
1 parent 71cffe4 commit c96701c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/OpenQA/Command.pm
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ sub url_for ($self, $path) {
}

sub retry_tx ($self, $client, $tx, $retries = undef, $delay = undef) {
$client->connect_timeout($ENV{MOJO_CONNECT_TIMEOUT} // 30);
$delay //= $ENV{OPENQA_CLI_RETRY_SLEEP_TIME_S} // 3;
$retries //= $ENV{OPENQA_CLI_RETRIES} // 0;
for (;; --$retries) {
Expand Down

0 comments on commit c96701c

Please sign in to comment.