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

The Flow under the Starter Projects folder is duplicated. #5859

Open
zjazj opened this issue Jan 22, 2025 · 1 comment
Open

The Flow under the Starter Projects folder is duplicated. #5859

zjazj opened this issue Jan 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@zjazj
Copy link

zjazj commented Jan 22, 2025

Bug Description

When multiple instances of Langflow are started by docker, the Flow under the Starter Projects folder will be duplicated.

Reproduction

Two instances connect to the same database, and when started, the Flow under the Starter Projects folder will be duplicated.
Image

Image

Image

Expected behavior

The Flow under the Starter Projects folder should not be duplicated; otherwise, it will affect the response time of the /basic_examples interface.

Who can help?

@italojohnny

Operating System

GNU/Linux 4.18.0-553.30.1.el8_10.x86_64

Langflow Version

1.1.1

Python Version

3.12

Screenshot

No response

Flow File

No response

@zjazj zjazj added the bug Something isn't working label Jan 22, 2025
Copy link

dosubot bot commented Jan 22, 2025

To prevent the duplication of the Flow under the Starter Projects folder when multiple instances of Langflow are started by Docker and connect to the same database, you should ensure that the starter projects are deleted before being recreated. This is managed by the create_or_update_starter_projects function, which calls delete_start_projects before creating new projects. This function removes any existing flows in the Starter Projects folder before creating new ones, thus preventing duplication [1].

To continue talking to Dosu, mention @dosu.


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant