Skip to content

[Bug][github_graphql] 502 when collecting pull requests #3708

@likyh

Description

@likyh

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

image

sometimes PrCollector in graphql will raise 502.

What do you expect to happen

collect success.

How to reproduce

  1. use graphql_github to collect https://github.com/apache/jackrabbit-oak
  2. it will raise 502.

Anything else

The reason is too much data on each page. Now 30 pr, 30 * most 100 commits will bind to one graphql query. But I think it will be too slow if set to less than 30 pr per page. In past, the number is 100 pr per page.

Maybe we need a dynamic page size. It could request 100 per page and reduce less if 502 got.

Version

main

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions