Skip to content

Commit

Permalink
resolve some more paths
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Oct 10, 2024
1 parent e677489 commit 756e235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bfabric/experimental/app_interface/cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def dispatch(
:param workunit_ref: Reference to the workunit (ID or YAML file path).
"""
setup_script_logging()
work_dir = work_dir.resolve()
# TODO set workunit to processing? (i.e. add read-only option here)
client = Bfabric.from_config()
runner = Runner(spec=AppSpec.model_validate(yaml.safe_load(app_spec.read_text())), client=client, ssh_user=None)
Expand Down
3 changes: 3 additions & 0 deletions src/bfabric/experimental/app_interface/cli/chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def inputs(
"""
setup_script_logging()
client = Bfabric.from_config()
chunk_dir = chunk_dir.resolve()
app_spec_parsed = AppSpec.model_validate(yaml.safe_load(app_spec.read_text()))

runner = Runner(spec=app_spec_parsed, client=client, ssh_user=ssh_user)
Expand All @@ -76,6 +77,7 @@ def process(app_spec: Path, chunk_dir: Path) -> None:
"""
setup_script_logging()
client = Bfabric.from_config()
chunk_dir = chunk_dir.resolve()
app_spec_parsed = AppSpec.model_validate(yaml.safe_load(app_spec.read_text()))

runner = Runner(spec=app_spec_parsed, client=client, ssh_user=None)
Expand Down Expand Up @@ -103,6 +105,7 @@ def outputs(
"""
setup_script_logging()
client = Bfabric.from_config()
chunk_dir = chunk_dir.resolve()
app_spec_parsed = AppSpec.model_validate(yaml.safe_load(app_spec.read_text()))

runner = Runner(spec=app_spec_parsed, client=client, ssh_user=ssh_user)
Expand Down

0 comments on commit 756e235

Please sign in to comment.