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

Handle operation errors gracefully #154

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

ivomurrell
Copy link
Contributor

This PR changes the state module to now catch errors in operation handlers. This means we don't lose the results of the repositories that succeeded and can continue to work on them if we like. It feels pretty bad to just drop the errors that are being thrown though. Perhaps we should reconsider whether we want to design the handlers to be propagating errors instead of just logging them and moving on? We already have the logic to only do additional steps on the repositories that ran successfully, so throwing errors up to the state module seems unnecessary.

Closes #148

This means we don't lose the results of the repositories that succeeded
and can continue to work on them if we like.

Closes #148
@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jan 9, 2022
@ivomurrell ivomurrell removed the stale label Feb 10, 2022
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.

State is not saved on error
1 participant