Skip to content

Handle operation errors gracefully#154

Draft
ivomurrell wants to merge 1 commit intomainfrom
error-handling
Draft

Handle operation errors gracefully#154
ivomurrell wants to merge 1 commit intomainfrom
error-handling

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