extend timeout to 10min
This commit is contained in:
2
main.py
2
main.py
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user