Skip to content

Conversation

@ali-behjati
Copy link
Collaborator

Although we have added the staleness check, there is a case that spy never connects to price service and it causes the liveness to return OK whereas it has no price feeds. This PR adds a check for a min price feed number in the liveness.

This is not ideal that we are adding constants in the liveness and ideally they should be configurable, but as this service is going to sunset in favor of hermes it's fine. We should have a better liveness and readiness metric on hermes.

@vercel
Copy link

vercel bot commented Jun 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Jun 13, 2023 11:40am
xc-admin-frontend ⬜️ Ignored (Inspect) Jun 13, 2023 11:40am

@ali-behjati ali-behjati requested a review from thmzlt June 13, 2023 11:40
@ali-behjati ali-behjati merged commit 75abeb1 into main Jun 13, 2023
@ali-behjati ali-behjati deleted the price-service/improve-liveness branch June 13, 2023 12:40
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.

3 participants