You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue you're experiencing with the worker timeout not being applied could be due to several factors. Here are a few things to check and try:
Ensure Correct Environment Variable Usage: Make sure that the LANGFLOW_WORKER_TIMEOUT environment variable is set correctly in your environment. You can verify this by printing the environment variable before running Langflow to ensure it's being recognized.
CLI Argument Precedence: When using the CLI argument --worker-timeout, ensure that it is correctly passed in the command. The CLI argument should override the environment variable if both are set.
Check for Overrides: Verify if there are any configurations or conditions in your setup that might override the timeout settings. Although I couldn't find specific conditions in the codebase that might override the worker timeout, it's worth checking your setup for any custom configurations.
Logging for Debugging: Utilize the logging capabilities in Langflow to diagnose the issue. Set the log level to DEBUG using the LANGFLOW_LOG_LEVEL environment variable to capture detailed logs that might provide insights into why the timeout is not being applied [1].
Review Code for Timeout Application: Ensure that the timeout is being correctly applied in the code. The timeout parameter should be set in the options dictionary when configuring the server process [2].
If these steps do not resolve the issue, it might be helpful to review any recent changes in the codebase or consult with the maintainers mentioned in your message for further assistance.
It seems that the worker_timeout variable is set in main; it is set into the 'options' dict which is passed to the LangflowServer process but it is never accessed. @joaoguilhermeS@ogabrielluiz
Bug Description
Can't modify worker timeout, neither by CLI (using
--worker-timeout 30
) nor by env variable (LANGFLOW_WORKER_TIMEOUT=30
).Reproduction
Expected behavior
Flow should timeout after default timeout of 300s, or earlier if setting worker timeout to a lower value.
Who can help?
@italojohnny @ogabrielluiz @nicoloboschi
Operating System
Ubuntu Linux
Langflow Version
1.0.19
Python Version
None
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: