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

Account for bpiterate returning a list of remote_error objects #28

Merged

Conversation

DarwinAwardWinner
Copy link
Contributor

Apparently bpiterate can sometimes return a list, but one or more elements of the list is a remote error object. The code now checks for this case.

I believe this error case was probably introduced by my previous pull request (#27), which removed the use of the REDUCE argument to bpiterate as part of an optimization. This pull request now properly handles the case my code introduced.

@DarwinAwardWinner
Copy link
Contributor Author

Side note: I suspect the behavior of returning a list of errors without actually signaling an error might ultimately be a bug in one of the parallel backends (specifically BatchtoolsParam). But regardless, it is a possible case that should be handled.

@DarwinAwardWinner
Copy link
Contributor Author

I refactored this based on the BiocParallel error-handling documentation: https://bioconductor.org/packages/devel/bioc/vignettes/BiocParallel/inst/doc/Errors_Logs_And_Debugging.pdf

Let me know if you want me to rebase it onto the latest master.

Apparently bpiterate can sometimes return a list, but one or more
elements of the list is a remote error object. The code now checks for
this case using BiocParallel::bpok.
@GabrielHoffman GabrielHoffman merged commit cd2638e into GabrielHoffman:master Jul 28, 2021
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