-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Getting frequent Server is busy messages #3812
Comments
The "Server is busy" message you're encountering is likely due to the default timeout setting for server requests in Langflow, which is set to 60 seconds. Given that your flow includes a To address this issue, you can increase the server timeout duration by using the langflow run --timeout 120 This will extend the worker timeout to 120 seconds, which should help in handling longer-running tasks without triggering the "server is busy" message [1]. Additionally, consider optimizing your flow to handle long-running tasks more efficiently. Langflow supports asynchronous processing, which can help in managing server load and preventing timeouts. You can use the curl -X POST \
http://localhost:3000/api/v1/process/<your_flow_id> \
-H 'Content-Type: application/json' \
-H 'x-api-key: <your_api_key>' \
-d '{"inputs": {"text": ""}, "tweaks": {}, "sync": false}' This will allow the server to handle the task asynchronously, freeing up resources for other requests [2]. By increasing the timeout and utilizing asynchronous processing, you should be able to mitigate the "server is busy" messages and improve the overall performance of your flow. |
I'm already putting worker --timeout to 300. this is not avoiding the server is busy to pop up! |
Have you tried using the version 1.0.18? We had this problem in version .17, which was fixed in .18. |
yes I upgraded to 1.0.18 and this bug was fixed. thank you! |
Bug Description
I have a simple flow, it takes a chat input do some processing (to reproduce the issue, time.sleep 15sec), then output the message. While the flow is building I get the popup message
server is busy
. not sure how to increase triggering the timeout message.Reproduction
use the attached flow to reproduce the issue.
Expected behavior
the flow builds without poping up the server busy message.
Who can help?
@Cristhianzl @lucaseduoli
Operating System
Ubuntu
Langflow Version
1.0.17
Python Version
3.10
Screenshot
No response
Flow File
timeout_server_busy.json
The text was updated successfully, but these errors were encountered: