Skip to content

Conversation

cawthorne
Copy link
Contributor

@cawthorne cawthorne commented Sep 21, 2025

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.

Copy link

changeset-bot bot commented Sep 21, 2025

🦋 Changeset detected

Latest commit: f643674

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@chainlink/nomia-adapter Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cawthorne cawthorne marked this pull request as draft September 21, 2025 23:25
@cawthorne cawthorne marked this pull request as ready for review September 22, 2025 07:33
@smartcontractkit smartcontractkit deleted a comment from dskloetc Sep 22, 2025
mxiao-cll
mxiao-cll previously approved these changes Sep 22, 2025
@cawthorne cawthorne marked this pull request as draft September 22, 2025 12:42
@cawthorne cawthorne marked this pull request as ready for review September 22, 2025 13:32
@cawthorne cawthorne changed the title Feature/set bq execution add logging nomia Set BACKGROUND_EXECUTE_TIMEOUT to 5 mins + improve err handling/logging Sep 22, 2025
@cawthorne cawthorne enabled auto-merge (squash) September 22, 2025 14:25
@cawthorne cawthorne merged commit e4ff873 into main Sep 22, 2025
17 checks passed
@cawthorne cawthorne deleted the feature/set-bq-execution-add-logging-nomia branch September 22, 2025 14:30
@github-actions github-actions bot mentioned this pull request Sep 22, 2025
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