Skip to content

Why wait 1 second for internal consistency? #182

Answered by brettcannon
dcecile asked this question in Q&A
Discussion options

You must be logged in to vote

We have run into consistency issues in the past when performing a query against brand-new data. For instance, getting triggered on a new issue and then querying for that issue does not always lead to consistent/equivalent data in the query (e.g. the issue seemingly not existing). It was easiest to just sleep for one second and let GitHub catch up with itself. It's not a regular issue, but when things fail it was easier to just wait than toss the query out when something did go wrong.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dcecile
Comment options

Answer selected by dcecile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants