feat(oracles): Add timeout when fetching prices#1576
Open
yordanmadzhunkov wants to merge 2 commits intomainfrom
Open
feat(oracles): Add timeout when fetching prices#1576yordanmadzhunkov wants to merge 2 commits intomainfrom
yordanmadzhunkov wants to merge 2 commits intomainfrom
Conversation
2744ab9 to
840bc81
Compare
Owliie
suggested changes
Aug 12, 2025
| ]); | ||
|
|
||
| let fetched_provider_prices = fetch_all_prices(futures_set).await; | ||
| let fetched_provider_prices = fetch_all_prices(futures_set, &Duration::from_secs(5)).await; |
Contributor
There was a problem hiding this comment.
How much is the deadline for the whole oracle script to be considered failed due to timeout? Maybe we should aim for an interval that is closer to it. Currently, Binance takes around 30s to fetch prices, sometimes even 40s.
Author
There was a problem hiding this comment.
then I should increase this to 59 secs :)
Collaborator
There was a problem hiding this comment.
Currently, Binance takes around 30s to fetch prices, sometimes even 40s
Where have you examined these numbers?
840bc81 to
1303f3c
Compare
| ]); | ||
|
|
||
| let fetched_provider_prices = fetch_all_prices(futures_set).await; | ||
| let fetched_provider_prices = fetch_all_prices(futures_set, &Duration::from_secs(15)).await; |
Contributor
There was a problem hiding this comment.
Should we increase this timeout as well, the current voting period of all price feeds is 90 seconds, we could go for the same value as in cex-price-feeds might be?
EmilIvanichkovv
requested changes
Aug 13, 2025
Add metrics WASM_EXECUTION_TIMEOUT_GAUGE
1303f3c to
6136b52
Compare
🚀 Deployment Links of Blocksense Network websites:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Currently a stop in Gate.io caused the whole crypto price oracle to stop working, dispute having available data from other exchanges. This PR adds the ability to handle this kind of situation