Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for Arvados when an optional output for a step is missing #58

Merged

Conversation

seifudd
Copy link

@seifudd seifudd commented Feb 14, 2025

Please see Issue #57

In get_output_task in arvados_platform.py if an output is missing for e.g. it could be an optional output from an optional step of the pipeline we get an error:

File "/scratch/mount1/06-RNA-Seq-pipeline-solve-issues/RNA-Seq-Launcher/launcher/src/launcher.py", line 507, in do_work
outputs = construct_output_list(platform, args.reference_model, merge_task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/mount1/06-RNA-Seq-pipeline-solve-issues/RNA-Seq-Launcher/launcher/src/launcher.py", line 34, in construct_output_list
source_file = platform.get_task_output(merge_task, output_field)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ec2-user/.pyenv/versions/RNASeq_pipeline_solve_issues_py3.11.0/lib/python3.11/site-packages/cwl_platform/arvados_platform.py", line 434, in get_task_output
if 'location' in output_field:
^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

Therefore, we need to add a check in get_output_task if the output_field is None we return None.

In SevenBridges, if the file is missing it is already returned as None.

@golharam golharam merged commit f178502 into NGS360:main Feb 14, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants