Skip to content

Commit

Permalink
Changed __main__.py to only initialize zookeeper if running in train …
Browse files Browse the repository at this point in the history
…environment
  • Loading branch information
Pablo Rodríguez Flores committed Jun 13, 2024
1 parent fc9c7e8 commit 234cdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def __init__(self) -> None:
self.server = None
self.app = None
self.query_builder = None
self.zoo_sync = RbOutliersZooSync(config)
self.run()

def run(self):
Expand All @@ -50,6 +49,7 @@ def run(self):
if "development" in self.environment:
self.run_test_server(False)
if "train" in self.environment:
self.zoo_sync = RbOutliersZooSync(config)
self.zoo_sync.sync_nodes()
if "test" in self.environment:
self.run_test_server(True)
Expand Down

0 comments on commit 234cdf9

Please sign in to comment.