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

Index cow amms in background task #3076

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

MartinquaXD
Copy link
Contributor

Description

Currently restarts on arbitrum are slow enough to cause emergency alerts. The reason is that we still don't persist indexed cow amms so we re-index everything from scratch. As a workaround until we store cow amms in the DB which makes syncing to the tip very fast after a restart I moved the cow amm indexing into a background task that will not block starting new auctions.

The effect is that as we continue to index cow amms after a restart more and more cow amms will show up in the auction.

How to test

CI and test on staging to see that restarts are fast again and cow amms eventually show up

@MartinquaXD MartinquaXD requested a review from a team as a code owner October 22, 2024 07:47
@MartinquaXD MartinquaXD force-pushed the index-cow-amms-in-background-task branch from 20f0d2d to 174c47a Compare October 22, 2024 11:02
@MartinquaXD MartinquaXD merged commit 079db75 into main Oct 22, 2024
24 checks passed
@MartinquaXD MartinquaXD deleted the index-cow-amms-in-background-task branch October 22, 2024 13:13
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants