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

Continue executing after error #64

Closed
anthonysena opened this issue Apr 6, 2023 · 2 comments
Closed

Continue executing after error #64

anthonysena opened this issue Apr 6, 2023 · 2 comments
Milestone

Comments

@anthonysena
Copy link
Collaborator

Scenario: when executing an analysis specification, it may be desirable to continue to execute each target module if one fails. An example: we have an analysis specification that runs CohortGenerator (CG), CohortMethod (CM) and PatientLevelPrediction (PLP). If the single threaded execution, the workflow may be CG -> CM -> PLP. If CM were to fail, PLP is not executed which then means we lose some execution time until a user intervenes.

Based on https://docs.ropensci.org/targets/reference/tar_target.html, it should be possible to set targets::tar_option_get("error") with the value of "continue" to achieve this behavior.

@anthonysena anthonysena added sos-challenge Issues raised during the Save Our Sisyphus challenge and removed sos-challenge Issues raised during the Save Our Sisyphus challenge labels Oct 2, 2023
@anthonysena anthonysena added this to the v0.2.0 milestone Dec 4, 2023
@anthonysena anthonysena changed the title Continue executing targets after error Continue executing after error Jul 16, 2024
@anthonysena
Copy link
Collaborator Author

Noting that in v1.x we will no longer use targets internally but the notion of continuing the execution of a study if an error is encountered is still desirable.

@anthonysena
Copy link
Collaborator Author

Closing since 1) we're not planning to use targets moving forward (at least inside of Strategus) and 2) we're tracking this via #141.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant