Skip to content

Commit

Permalink
feat(command.utils.command_gatekeeper): loosen default timeout to 120s
Browse files Browse the repository at this point in the history
The default timeout is just too short under high server loads. In
particular, considering that all feed parsing tasks are queued due to
aio_helper, `/sub` is very likely to exceed the timeout.

Signed-off-by: Rongrong <[email protected]>
  • Loading branch information
Rongronggg9 committed Aug 14, 2024
1 parent bb84439 commit 7ea7a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def command_gatekeeper(
allow_in_others_private_chat: bool = False,
allow_in_old_fashioned_groups: bool = False,
ignore_tg_lang: bool = False,
timeout: Optional[int] = 60,
timeout: Optional[int] = 120,
quiet: bool = False,
):
if func is None:
Expand Down

0 comments on commit 7ea7a62

Please sign in to comment.