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

chore(sequencer): implement retry logic for connecting to the oracle sidecar #1788

Open
wants to merge 1 commit into
base: noot/slinky
Choose a base branch
from

Conversation

Fraser999
Copy link
Contributor

Summary

This changes sequencer initialization to be blocked while attempting to connect to the oracle sidecar (if configured to use the sidecar), and to fail if repeated connection attempts fail.

Background

This was a todo in the code.

Changes

  • Added blocking retry logic around creating a connected oracle client.

Testing

Added a unit test to confirm the process waits for the expected duration. We could probably do with adding gRPC mock tests for the sidecar, but I think that's outside the scope of this PR.

Changelogs

No updates required as this is (effectively) a feature branch which will have all relevant changelogs updated as one of the final steps of completing the feature.

Related Issues

Closes #1787

@Fraser999 Fraser999 requested a review from a team as a code owner November 5, 2024 15:28
@github-actions github-actions bot added the sequencer pertaining to the astria-sequencer crate label Nov 5, 2024
@Fraser999 Fraser999 requested review from noot and removed request for SuperFluffy November 5, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sequencer pertaining to the astria-sequencer crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant