Set BACKGROUND_EXECUTE_TIMEOUT to 5 mins + improve err handling/logging #4039
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.
Sets a higher background execution value to enable subscribing to 6 feeds at 30 seconds per request and improves logging.
Context:
https://smartcontract-it.atlassian.net/browse/CHANGE-397
Our API keys got blacklisted for the BEA endpoint. They were requesting at 1 request per 3 seconds.
BACKGROUND_EXECUTE_TIMEOUT was originally capped to 3 minutes.
This means when we have 6 feeds querying at 30 seconds per request, it would timeout before it finished.
https://github.com/smartcontractkit/external-adapters-js/pull/4039/files
Initial rollout is to just set RATE_LIMIT_CAPACITY_MINUTE to 2, to force the EAs to query at 1 request per 30 seconds. But they will occasionally hit the BACKGROUND_EXECUTE_TIMEOUT limit.
Then we will release this EA change which bumps BACKGROUND_EXECUTE_TIMEOUT to 5 minutes and prevents the time out from being hit.
We also add better error handling and logging to expose the errors from BEA in the logs.