extend timeout to 10min

This commit is contained in:
Enzo Nunes
2025-02-27 11:02:19 +00:00
parent e43824165c
commit 6bfed664d6

View File

@@ -52,7 +52,7 @@ async def picable(interaction: Interaction, owner: str, repository: str):
try: try:
result_future = create_task(to_thread(PICable, owner, repository, github_token)) result_future = create_task(to_thread(PICable, owner, repository, github_token))
try: try:
result = await wait_for(shield(result_future), timeout=5) result = await wait_for(shield(result_future), timeout=600)
await interaction.followup.send(result) await interaction.followup.send(result)
except TimeoutError: except TimeoutError:
await interaction.followup.send( await interaction.followup.send(