Toil throws KeyError after workflow execution ends
See original GitHub issueI tried running toil on an RNA-Seq workflow, accessible at https://github.com/FarahZKhan/cwl_workflows/blob/master/topmed-workflows/TOPMed_RNAseq_pipeline/rnaseq_pipeline_fastq.cwl
The workflow runs smoothly and produces all relevant files(I cross checked by running same pipeline with cwltool
). But it crashes as soon as workflow execution ends.
Here’s the log
File "/home/prakash/.conda/envs/toil/bin/toil-cwl-runner", line 8, in <module>
sys.exit(main())
File "/home/prakash/.conda/envs/toil/lib/python3.6/site-packages/toil/cwl/cwltoil.py", line 1702, in main
destBucket=options.destBucket)
File "/home/prakash/.conda/envs/toil/lib/python3.6/site-packages/toil/cwl/cwltoil.py", line 738, in toilStageFiles
visit_class(cwljob, ("File", "Directory"), _check_adjust)
File "/home/prakash/.conda/envs/toil/lib/python3.6/site-packages/cwltool/utils.py", line 231, in visit_class
visit_class(rec[d], cls, op)
File "/home/prakash/.conda/envs/toil/lib/python3.6/site-packages/cwltool/utils.py", line 231, in visit_class
visit_class(rec[d], cls, op)
File "/home/prakash/.conda/envs/toil/lib/python3.6/site-packages/cwltool/utils.py", line 234, in visit_class
visit_class(d, cls, op)
File "/home/prakash/.conda/envs/toil/lib/python3.6/site-packages/cwltool/utils.py", line 229, in visit_class
op(rec)
File "/home/prakash/.conda/envs/toil/lib/python3.6/site-packages/toil/cwl/cwltoil.py", line 733, in _check_adjust
pm.mapper(f["location"])[1])
File "/home/prakash/.conda/envs/toil/lib/python3.6/site-packages/cwltool/pathmapper.py", line 385, in mapper
return self._pathmap[src]
KeyError: 'toilfs:89664:files/for-job/kind-file_mnt_disk8tb_prakash_cwl_workflows_topmed-workflows_TOPMed_RNAseq_pipeline_markduplicates.cwl_run-MarkDuplicates/instance-p59fm9hc/file-21j7zgac/LC_C13_cRNA.Aligned.sortedByCoord.out.md.bam.bai'
Any clue on what could’ve gone wrong?
┆Issue is synchronized with this Jira Task ┆Issue Number: TOIL-585
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Toil Documentation
Toil.start() on the job setup. When the workflow ends we capture its output (the sorted file's fileID) and use that in toil.common.Toil.
Read more >ReadTheDocs example failing · Issue #2803 - GitHub
I think we need to make Toil throw an error when the user script file name has dots in it, and complain that...
Read more >Ubuntu Manpage: toil - Toil Documentation - manpages.ubuntu!
Running a basic workflow A Toil workflow can be run with just two steps: 1. Copy and paste the following code block into...
Read more >Continue the execution of a loop after an exception is raised
You can try and catch the KeyError exception that gets raised and then discard it: for item in r.get_iterator(): if 'retweeted_status' in ...
Read more >Untitled
Il falco e il gabbiano, Workflow components in sap, Florida thespians district 12, ... Werefox naruto fanfic, Mr hooper death on sesame street....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DailyDreaming Thanks for the fix 😃
@Prakash2403 I’ve successfully reproduced the error with the latest toil from source. I’ll investigate, thanks for providing a reproducible use-case.