Skip to content

Commit 3ad3379

Browse files
authored
Merge pull request #6 from open-datastudio/remove_unused
Remove unnecessary code
2 parents 8502d97 + 5ff5488 commit 3ad3379

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

ods/ods.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
class Ods:
99
def __init__(self, staroid=None, ske=None, cache_dir=None):
10-
self.__tunnel_processes = {}
1110
self.__ske = None
1211

1312
if staroid == None:
@@ -55,18 +54,7 @@ def _start_instance_on_staroid(self, instance_name, commit_url):
5554
# wait for phase to become RUNNING
5655
return self.__wait_for_ns_phase(ns_api, ns, "RUNNING", 600)
5756

58-
def _is_tunnel_running(self, instance_name):
59-
if instance_name in self.__tunnel_processes:
60-
p = self.__tunnel_processes[instance_name]
61-
p.poll()
62-
return p.returncode == None
63-
else:
64-
return False
65-
6657
def _start_tunnel(self, instance_name, tunnels):
67-
if self._is_tunnel_running(instance_name):
68-
return
69-
7058
cluster = self._staroid.cluster().get(self.__ske)
7159
if cluster == None:
7260
raise Exception("Can't get ske cluster")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="ods",
8-
version="0.0.5",
8+
version="0.0.6",
99
license='MIT',
1010
author="Open Data Studio",
1111
author_email="moon@staroid.com",

0 commit comments

Comments
 (0)