Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webhook timeout when calling long-running funcs #128

Open
aus70 opened this issue Jun 23, 2023 · 0 comments
Open

Webhook timeout when calling long-running funcs #128

aus70 opened this issue Jun 23, 2023 · 0 comments

Comments

@aus70
Copy link
Contributor

aus70 commented Jun 23, 2023

I'm using a locally-hosted Large Language Model to generate bot replies, and sometimes a few seconds are needed to return a 200 OK to the webhook, which leads to the following error:

** (EXIT) time out
    (elixir 1.15.0) lib/gen_server.ex:1074: GenServer.call/3
    (ex_gram 0.40.0) lib/ex_gram/updates/webhook.ex:34: ExGram.Updates.Webhook.handle_cast/2

It would be nice to be able to increase the timeout from 5000ms to some longer interval or to return a 200 OK before calling long-running functions: what's the best way to do it?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant