Skip to content

Commit

Permalink
version + nits
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldesai1 committed Aug 5, 2024
1 parent 74d035b commit 203ea4e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ Types of changes

# Latch SDK Changelog

## 2.50.1 - 2024-08-05

### Added

* Nextflow
- Report workdir size on workflow completion

## 2.50.0 - 2024-08-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion latch/executions.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def add_execution_results(results: List[str]):


def report_nextflow_used_storage(used_bytes: int):
token = os.environ.get("FLYTE_INTERNAL_EXECUTION_ID", None)
token = os.environ.get("FLYTE_INTERNAL_EXECUTION_ID")
if token is None:
return

Expand Down
2 changes: 1 addition & 1 deletion latch_cli/nextflow/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def nextflow_runtime(pvc_name: str, {param_signature}) -> None:
size = int(result.stdout.split()[0])
report_nextflow_used_storage(size)
print(f"Done. Workdir size: {{round(size / 1024 / 1024 / 1024, 2)}} GiB")
print(f"Done. Workdir size: {{size / 1024 / 1024 / 1024: .2f}} GiB")
except subprocess.TimeoutExpired:
print("Failed to compute storage size: Operation timed out after 5 minutes.")
except subprocess.CalledProcessError as e:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name="latch",
version="v2.50.0",
version="v2.50.1",
author_email="kenny@latch.bio",
description="The Latch SDK",
packages=find_packages(),
Expand Down

0 comments on commit 203ea4e

Please sign in to comment.