Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Apr 11, 2024
1 parent df6f1d9 commit 1eafd6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/mcli/manage_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1eafd6b

Please sign in to comment.