Skip to content

Commit

Permalink
copy lib dataset to history then use it to avoid input dataset in res…
Browse files Browse the repository at this point in the history
…ult history
  • Loading branch information
anilthanki authored Jul 24, 2023
1 parent 5c2086e commit 3a12caa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions wfexecutor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,13 @@ def load_input_files(gi, inputs, workflow, history):
# We are in the presence of a simple parameter input
inputs_for_invoke[step] = inputs[step_data['label']]
elif step_data['label'] in inputs and 'library_id' in inputs[step_data['label']]:
inputs_for_invoke[step] = {
'id': inputs[step_data['label']]['library_id'],
'src': 'ldda'
}
upload_res = gi.histories.copy_dataset(history_id=history['id'],
dataset_id=inputs[step_data['label']]['library_id'],
source="library")
inputs_for_invoke[step] = {
'id': upload_res['id'],
'src': 'hda'
}
else:
raise ValueError("Label '{}' is not present in inputs yaml".format(step_data['label']))

Expand Down

0 comments on commit 3a12caa

Please sign in to comment.