Skip to content

Commit 496185e

Browse files
committed
Calculate staging manifest path from action description
Using `basename(action.path)` creates a flat structure for each file type (e.g. job_directory/unstructured/human.fa), but Pulsar expects tree structures to work (e.g. job_directory/unstructured/f0d0164494db6cbf92c12aeb6119ac38/bwa/human.fa).
1 parent 3282e2f commit 496185e

File tree

1 file changed

+1
-1
lines changed
  • pulsar/client/staging

1 file changed

+1
-1
lines changed

pulsar/client/staging/up.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def submit_job(client, client_job_description, job_config=None):
8282
if is_json_transfer_action and is_not_output_action:
8383
file_type = action_description.get("type")
8484
action = JsonTransferAction.from_dict(action_dict)
85-
name = basename(action.path)
85+
name = action_description["name"]
8686
path = file_stager.job_directory.calculate_path(name, file_type)
8787
action.write_to_path(path)
8888
staging_manifest.append(action.to_staging_manifest_entry())

0 commit comments

Comments
 (0)