DataBiosphere / toil

A scalable, efficient, cross-platform (Linux/macOS) and easy-to-use workflow engine in pure Python.
http://toil.ucsc-cgl.org/.
Apache License 2.0
879 stars 237 forks source link

Return workflow exit code for toil-wdl-runner #4978

Open stxue1 opened 1 week ago

stxue1 commented 1 week ago

If toil-wdl-runner runs a task and that task fails with an exit code, that exit code does not get carried over to the output. One of the WDL unit tests tests this, so we should add some way to extract the exit code.

Since retries are a thing, maybe the grabbing the last exit code is sufficient.

┆Issue is synchronized with this Jira Story ┆Issue Number: TOIL-1594