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

op-dispute-mon: Use game data from previous update cycle if update fails #12481

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

ajsutton
Copy link
Contributor

Description

Cache the game data from previous update cycles and use it for any games that fail to update in this cycle. Updating game data is an all or nothing thing to avoid getting a mix of old and new data in the same game.

A new metric is added to report the time the least recently updated game was updated. Metrics could already alert on the number of failed games being > 0 for some period so no new alerts strictly needed. The new metric would allow for extra tolerance in a situation where there were a lot of errors, allowing some failure every update cycle so long as it wasn't always on the same game. Mostly the new metric is just useful to show on dashboards and more meaningful that the current "Last Output Fetch" time.

Tests

Added unit tests and ran locally to confirm behaviour.

Metadata

fixes #12454

@ajsutton ajsutton requested a review from mbaxter October 16, 2024 05:28
Copy link
Contributor

@Inphi Inphi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@Inphi Inphi added this pull request to the merge queue Oct 23, 2024
Merged via the queue into develop with commit d67991a Oct 23, 2024
49 checks passed
@Inphi Inphi deleted the aj/dispute-mon-cache branch October 23, 2024 18:31
samlaf pushed a commit to samlaf/optimism that referenced this pull request Nov 10, 2024
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.

op-dispute-mon: Use previous value when update fails
2 participants