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

Index_name Confusion of OpenSearch #4422

Open
songjinu opened this issue Nov 6, 2024 · 2 comments
Open

Index_name Confusion of OpenSearch #4422

songjinu opened this issue Nov 6, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@songjinu
Copy link

songjinu commented Nov 6, 2024

The Parallel calls of '/run/{flow_id}' API with different index_name (by tweaks) in OpenSearch: A Test for Index_name Confusion.
when sequencially call API, No prob.
Any one help what the problem?
(I'm in 1.0.16)

Could We Parallel calls a same flow_id '/run/{flow_id}' API with many different tweaks ?

@dosubot dosubot bot added the question Further information is requested label Nov 6, 2024
@asilism
Copy link

asilism commented Nov 8, 2024

Hello, I'm a coworker with songjinu.
We have confirmed that this phenomenon only occurs in certain components.

  1. A component that has been inherited.
  2. outputs are defined in the parent component
    such as , RecursiveCharacterTextSplitterComponent / LCTextSplitterComponent , OpenSearchComponent / LCVectorStoreComponent

I suspect that the cause is exec_globals used when build_custom_class is called.
I'm testing deepcopy() outputs in a child class, but I'm not sure if this is the right approach, since the code is so complex.

if exec_globals[class_name].outputs is not None:
            exec_globals[class_name].outputs = copy.deepcopy(exec_globals[class_name].outputs)

@songjinu
Copy link
Author

@joaoguilhermeS, @ogabrielluiz
Are there good ways to avoid shared The result of outputs in concurrent processing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants