Skip to content

Commit

Permalink
Improve to check directory structure
Browse files Browse the repository at this point in the history
Currently sapporo run directory structureis

2chars_of_run_id/run_id/...

So we need check run_request.json in this kind of path.
  • Loading branch information
manabuishii committed Mar 3, 2024
1 parent 9aa38e5 commit ab82b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sapporo/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def count_system_state() -> Dict[State, int]:

def glob_all_run_ids() -> List[str]:
run_base_dir: Path = current_app.config["RUN_DIR"]
run_requests: List[Path] = list(run_base_dir.glob(f"**/{RUN_DIR_STRUCTURE['run_request']}"))
run_requests: List[Path] = list(run_base_dir.glob(f"*/*/{RUN_DIR_STRUCTURE['run_request']}"))
run_ids: List[str] = [run_request.parent.name for run_request in run_requests]

return run_ids
Expand Down

0 comments on commit ab82b05

Please sign in to comment.