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

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


The following commit(s) were added to refs/heads/DATALAB-2125 by this push:
     new b74ae5e  [DATALAB-2125]: added wait time
b74ae5e is described below

commit b74ae5e9f2fab83af0d1395633f29a44b74dec77
Author: leonidfrolov <[email protected]>
AuthorDate: Tue May 18 17:22:39 2021 +0300

    [DATALAB-2125]: added wait time
---
 infrastructure-provisioning/src/general/lib/gcp/actions_lib.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py 
b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
index 77a9adb..d1a53a6 100644
--- a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
@@ -103,6 +103,7 @@ class GCPActions:
             while not allow and count < 5:
                 result = request.execute()
                 datalab.meta_lib.GCPMeta().wait_for_operation(result['name'])
+                time.sleep(5)
                 if datalab.meta_lib.GCPMeta().get_vpc(vpc_name) == '':
                     allow = True
                 else:

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to