Skip to content
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

[isl] reduce number of pr fetched in graphql query to avoid timeouts #782

Closed
wants to merge 2 commits into from

Conversation

vuduchild
Copy link
Contributor

@vuduchild vuduchild commented Nov 22, 2023

When using 100 PRs, I often encounter errors resulting of Github timeouts. Reducing the number of PRs we're fetching solves the issue.
A possibly more elegant future solution would be to specify which PRs' data we're interested in fetching.


Stack created with Sapling.

@facebook-github-bot
Copy link
Contributor

Hi @vuduchild!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@evangrayk
Copy link
Contributor

Thanks for the PR!

20 is a little low, I would certainly start running into that limit in my work. But if we're currently unable to fetch because the limit is too high we probably should reduce it. Not sure what the right number is honestly. We probably need to be doing some batching somehow to support fetching however PRs many we need, but not all in one go to avoid errors.

Does your problem get fixed even with a higher number? say, 50?

@vuduchild
Copy link
Contributor Author

@evangrayk - yes, 50 still works, just makes the request take slightly longer. I'll change it.

My suggestion for a future implementation would be to still batch the call, but to perhaps experiment with specifying which PRs we're interested in (if the API supports it). This should limit the size of the results and perhaps reduce the server processing time.

@facebook-github-bot
Copy link
Contributor

@vuduchild has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@vuduchild vuduchild marked this pull request as ready for review November 28, 2023 16:59
@facebook-github-bot
Copy link
Contributor

@evangrayk merged this pull request in ec38704.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants