Skip to content

Commit 1e25259

Browse files
committed
Match the timeout
1 parent 91de739 commit 1e25259

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/grandchallenge/github/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def github_request_kwargs(self):
126126
"Accept": "application/vnd.github+json",
127127
"Authorization": f"token {self.github_user_token.access_token}",
128128
},
129-
"timeout": 5,
129+
"timeout": 10,
130130
}
131131

132132
@cached_property
@@ -229,7 +229,7 @@ async def _get_installation_github_repos(
229229
@async_to_sync
230230
async def _get_all_github_repos(self):
231231
semaphore = asyncio.Semaphore(ASYNC_CONCURRENCY)
232-
timeout = httpx.Timeout(10.0)
232+
timeout = httpx.Timeout(self.github_request_kwargs["timeout"])
233233

234234
tasks = []
235235

0 commit comments

Comments
 (0)