From 1eafd6bf77f7f2c64221e7f9d218ab0b597248a3 Mon Sep 17 00:00:00 2001 From: epwalsh Date: Thu, 11 Apr 2024 15:33:10 -0700 Subject: [PATCH] tweaks --- scripts/mcli/manage_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mcli/manage_run.py b/scripts/mcli/manage_run.py index e1fbd3899..c710fe529 100644 --- a/scripts/mcli/manage_run.py +++ b/scripts/mcli/manage_run.py @@ -157,11 +157,11 @@ def main(config_path: str, timeout: int = _DEFAULT_TIMEOUT) -> int: # Check if config is already running or queued on the cluster. for run in cluster.utilization.active_runs_by_user: - if run.name.startswith(run_prefix): + if run.name.startswith(f"{run_prefix}-"): print(f"[green]✔️[/] Run '{run.name}' is already active") return 0 for run in cluster.utilization.queued_runs_by_user: - if run.name.startswith(run_prefix): + if run.name.startswith(f"{run_prefix}-"): print(f"[green]✔️[/] Run '{run.name}' is already queued") return 0