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 2020/10/12 10:43:58 UTC

[incubator-datalab] branch disabled_dataproc_temination_v.2.1 updated: disabled dataproc cluster listing during gcp resources termination

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

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


The following commit(s) were added to refs/heads/disabled_dataproc_temination_v.2.1 by this push:
     new 3c5efe4  disabled dataproc cluster listing during gcp resources termination
3c5efe4 is described below

commit 3c5efe4c1933aed7d0008c314d8f71dee7a1e1c0
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Oct 12 13:43:42 2020 +0300

    disabled dataproc cluster listing during gcp resources termination
---
 .../src/general/scripts/gcp/ssn_terminate_gcp_resources.py   | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate_gcp_resources.py b/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate_gcp_resources.py
index 672f7d9..b7032ba 100644
--- a/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate_gcp_resources.py
+++ b/infrastructure-provisioning/src/general/scripts/gcp/ssn_terminate_gcp_resources.py
@@ -46,12 +46,12 @@ if __name__ == "__main__":
             {'sbn': args.service_base_name}
         ]
         #clusters_list = meta_lib.GCPMeta().get_dataproc_list(labels)
-        if clusters_list:
-            for cluster_name in clusters_list:
-                actions_lib.GCPActions().delete_dataproc_cluster(cluster_name, args.region)
-                print('The Dataproc cluster {} has been terminated successfully'.format(cluster_name))
-        else:
-            print("There are no Dataproc clusters to terminate.")
+        #if clusters_list:
+        #    for cluster_name in clusters_list:
+        #        actions_lib.GCPActions().delete_dataproc_cluster(cluster_name, args.region)
+        #        print('The Dataproc cluster {} has been terminated successfully'.format(cluster_name))
+        #else:
+        #    print("There are no Dataproc clusters to terminate.")
     except Exception as err:
         print('Error: {0}'.format(err))
         sys.exit(1)


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