-
Notifications
You must be signed in to change notification settings - Fork 1.1k
graph: IPFS_MAX_ATTEMPTS ani-smap mechanism env var #5998
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
Conversation
|
Is this really just for deterministic errors? I don't see anything that is classifying the errors as deterministic and only hitting max for those. |
sirenko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
docs/environment-variables.md
Outdated
| - `GRAPH_IPFS_REQUEST_LIMIT`: Limits the number of requests per second to IPFS for file data sources. | ||
| - `GRAPH_IPFS_MAX_ATTEMPTS`: Safety mechanism to prevent infinite spamming | ||
| of IPFS servers in the event of logical or unhandled deterministic | ||
| error (default: 100 000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description should explain what this variable does, not why you would want to use it. Also the next line seems to belong to GRAPH_IPFS_REQUEST_LIMIT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, will fix that and add a better description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
This PR changes the hardcoded DEFAULT_MAX_ATTEMPTS to a configurable env var GRAPH_NODE_IPFS_MAX_ATTEMPTS to avoid spamming the IPFS on deterministic errors