From 99d6cf2c6b8f227d43b1b068c0fef52cb8e03997 Mon Sep 17 00:00:00 2001 From: Beyhan Veli Date: Wed, 24 Sep 2025 10:46:30 +0200 Subject: [PATCH] Reduce the request batch size in inactive user request According to [this discussion](https://github.com/orgs/community/discussions/24844#discussioncomment-3245605) there are 10s timeouts on GitHub side for all API calls and the requested amound of data could be a reasond for request to fails because of that timeout. That is why this change is redecuing the requested size of 50 users to 20. Testing locally worked and the calls didn't fails with 502. --- orgs/org_user_management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orgs/org_user_management.py b/orgs/org_user_management.py index b1f50217d..6efce4000 100644 --- a/orgs/org_user_management.py +++ b/orgs/org_user_management.py @@ -41,7 +41,7 @@ def _build_query(self, after_cursor_value=None): query = """ { organization(login: \"%s\") { - membersWithRole(first: 50, after:%s) { + membersWithRole(first: 20, after:%s) { pageInfo { hasNextPage endCursor