Skip to content

Commit

Permalink
Fix Fallback Value
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamet93 committed Jul 22, 2024
1 parent f8c849a commit 0558f0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion block_cascade/executors/vertex/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,16 @@ def create_job(self) -> VertexJob:
#
# TODO: This should be generalized to accept any storage block.
#
bucket = storage.data.get("bucket_path", "bucket")
bucket = storage.data.get(
"bucket_path",
storage.data.get(
"bucket"
)
)
if not bucket:
raise RuntimeError(
f"Unable to parse bucket from storage block: {storage}"
)
deployment_path = deployment.path.rstrip("/")

package_path = f"{bucket}/{deployment_path}/{module_name}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "block-cascade"
packages = [
{include = "block_cascade"}
]
version = "2.5.6"
version = "2.5.7"
description = "Library for model training in multi-cloud environment."
readme = "README.md"
authors = ["Block"]
Expand Down

0 comments on commit 0558f0a

Please sign in to comment.