You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/02/09 09:19:01 UTC

[incubator-datalab] 02/02: [DATALAB-2091]: reduced amount of connection attempts

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit b8285d0e41864efc34430b00c30f0b7d85bf44d8
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Feb 9 11:18:43 2021 +0200

    [DATALAB-2091]: reduced amount of connection attempts
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index 10abc45..8815acc 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -1011,7 +1011,7 @@ def init_datalab_connection(ip, user, pkey):
     try:
         global conn
         attempt = 0
-        while attempt < 100:
+        while attempt < 4:
             logging.info('connection attempt {}'.format(attempt))
             conn = Connection(ip, user, connect_kwargs={'key_filename': pkey})
             try:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org