Skip to content

Conversation

@Jeday
Copy link
Contributor

@Jeday Jeday commented Jan 30, 2026

This pull request refactors the error handling and event watching logic in the wrapperOperationsWrite use case to improve reliability and reporting. The main change is the introduction of a retry loop for watching VaultsReportDataUpdated events, ensuring that failures are logged and reported, and that the process can recover from transient errors without exiting unexpectedly.

Error handling and event watching improvements:

  • Added a retry loop that continuously performs a dry-run and watches for VaultsReportDataUpdated events, allowing the process to recover from errors instead of exiting.
  • Refactored error reporting to send error callbacks and log failures more reliably, including handling callback errors separately.
  • Introduced a mechanism to prevent a tight retry loop by tracking the last retry timestamp and breaking if errors persist within a short interval.
  • Improved logging for event continuation and restarts to aid in debugging and monitoring.### Description

Demo

Code review notes

Testing notes

Checklist:

  • Checked the changes locally.
  • Created/updated unit tests.
  • Created/updated README.md.

@Jeday Jeday requested a review from a team as a code owner January 30, 2026 18:05
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.

1 participant