mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Adjust monitor.py for the fact Pulsar and Galaxy call from different dirs.
This commit is contained in:
@@ -29,7 +29,11 @@ def parse_ports(container_name, connection_configuration):
|
||||
|
||||
|
||||
def main():
|
||||
with open("../configs/container_config.json", "r") as f:
|
||||
if not os.path.exists("configs"):
|
||||
# on Pulsar and in tool working directory instead of job directory
|
||||
os.chdir("..")
|
||||
|
||||
with open("configs/container_config.json", "r") as f:
|
||||
container_config = json.load(f)
|
||||
|
||||
container_type = container_config["container_type"]
|
||||
|
||||
Reference in New Issue
Block a user