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
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].
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.
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
The text was updated successfully, but these errors were encountered: