langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Milvus unavailability may lead to thread unavailability in the system.

Open saber-wang opened this issue 1 year ago • 4 comments

Bug Description

Milvus unavailability may lead to thread unavailability in the system.

Reproduction

Image

  1. Add the Milvus component with an incorrect URL (e.g., the default value).
  2. Run the tenant.
  3. You can observe that requests never complete.

Expected behavior

Properly complete the request and return an error response.

Who can help?

@italojohnny

It has been confirmed that the issue is caused by this section of code, and it can be mitigated by setting LAGFLOW_PRETTY_LOGS=false.

https://github.com/langflow-ai/langflow/blob/eed7dee8bf5df976cfd75ede2fbf91ef8f1baa56/src/backend/base/langflow/logging/logger.py#L236-L246

Operating System

mac os 15

Langflow Version

1.3.3

Python Version

3.12

Screenshot

No response

Flow File

No response

saber-wang avatar Apr 25 '25 08:04 saber-wang

The issue of thread unavailability when Milvus is unreachable can be mitigated by setting the LAGFLOW_PRETTY_LOGS environment variable to false. This setting affects the logging configuration, where enabling pretty logs (true) can lead to performance issues, especially in high-load scenarios or when external dependencies like Milvus are not available. By setting LAGFLOW_PRETTY_LOGS=false, the system uses a more performance-oriented logging format, which helps prevent requests from hanging indefinitely when Milvus is unreachable. This adjustment is particularly useful in production environments to ensure smoother operation and better resource management.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar Apr 25 '25 08:04 dosubot[bot]

Is there any way to solve it fundamentally? @saber-wang

duhanmin avatar Jul 16 '25 07:07 duhanmin

Thank you for pointing out, already created a ticket and team will follow up on this

Yukiyukiyeah avatar Jul 17 '25 00:07 Yukiyukiyeah

Hi @saber-wang, thanks for reporting this, and sorry it's been sitting here for a while.

Since this was reported (Langflow 1.3.3), Langflow has changed how integrations work: third-party integrations such as Milvus are no longer part of the Langflow codebase. They're now treated as LFX extensions, and fixes to them are in the hands of the community. Because of that, we're closing this issue.

You can learn more about extensions here: https://docs.langflow.org/extensions-overview. Thanks for your patience and for using Langflow!

lice-reis avatar Oct 06 '26 14:10 lice-reis