Skip to content

Commit

Permalink
chore: Updating long execution name generation (#408)
Browse files Browse the repository at this point in the history
* Updating execution name

* Fixes db test
  • Loading branch information
manasaV3 authored Jan 13, 2025
1 parent 32bde07 commit 9517e81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ingestion_tools/scripts/enqueue_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,13 @@ def queue(

dataset_id = dataset.name
deposition_id = deposition.name
execution_name = f"{int(time.time())}-dep{deposition_id}-ds{dataset_id}-run{run.name}"
prefix = f"{int(time.time())}-dep{deposition_id}-ds{dataset_id}"
execution_name = f"{prefix}-run{run.name}"

# execution name greater than 80 chars causes boto ValidationException
if len(execution_name) > 80:
execution_name = execution_name[-80:]
run_size = 80 - len(prefix)
execution_name = f"{prefix}-run{run.name[-run_size:]}"

wdl_args = {
"config_file": config_file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def expected_tomograms_by_run(http_prefix: str) -> dict[str, dict[float, list[di
"voxel_spacing": 12.3,
"fiducial_alignment_status": "FIDUCIAL",
"reconstruction_method": "WBP",
"reconstruction_software": "IMOD",
"reconstruction_software": "AreTomo 1.0",
"processing": "raw",
"processing_software": "tomo3D",
"tomogram_version": "1",
Expand Down

0 comments on commit 9517e81

Please sign in to comment.