🔨 refactor(custom_component.py): remove unused import and update function name for better code organization and clarity
📝 docs(custom_component.py): update docstring for better readability and understanding 🔧 chore(custom_component.py): add new file names.txt for locust tests with a list of names for load testing
This commit is contained in:
parent
7f217bd518
commit
8bdde3bc05
2 changed files with 7 additions and 2 deletions
|
|
@ -169,7 +169,7 @@ class CustomComponent(Component, extra=Extra.allow):
|
|||
return validate.create_function(self.code, self.function_entrypoint_name)
|
||||
|
||||
def load_flow(self, flow_id: str, tweaks: Optional[dict] = None) -> Any:
|
||||
from langflow.processing.process import build_sorted_vertices_with_caching
|
||||
from langflow.processing.process import build_sorted_vertices
|
||||
from langflow.processing.process import process_tweaks
|
||||
|
||||
db_manager = get_db_manager()
|
||||
|
|
@ -179,7 +179,7 @@ class CustomComponent(Component, extra=Extra.allow):
|
|||
raise ValueError(f"Flow {flow_id} not found")
|
||||
if tweaks:
|
||||
graph_data = process_tweaks(graph_data=graph_data, tweaks=tweaks)
|
||||
return build_sorted_vertices_with_caching(graph_data)
|
||||
return build_sorted_vertices(graph_data)
|
||||
|
||||
def list_flows(self, *, get_session: Optional[Callable] = None) -> List[Flow]:
|
||||
get_session = get_session or session_getter
|
||||
|
|
|
|||
5
tests/locust/names.txt
Normal file
5
tests/locust/names.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Bob
|
||||
Alice
|
||||
John
|
||||
Gabriel
|
||||
Lily
|
||||
Loading…
Add table
Add a link
Reference in a new issue