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

Refactor endpoints.py to improve code handling and remove caching #2180

Merged
merged 3 commits into from
Jun 15, 2024

Conversation

ogabrielluiz
Copy link
Contributor

This pull request includes the following changes:

  • Refactored the CustomComponent to improve the handling of repr_value.

  • Refactored the simplified_run_flow and webhook_run_flow functions in endpoints.py to remove caching.

  • Removed caching from endpoints.py and updated tests accordingly.

Copy link

vercel bot commented Jun 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langflow ❌ Failed (Inspect) Jun 15, 2024 1:39am

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 15, 2024
@ogabrielluiz ogabrielluiz merged commit c53901f into dev Jun 15, 2024
11 of 12 checks passed
@dosubot dosubot bot added the python Pull requests that update Python code label Jun 15, 2024
ogabrielluiz added a commit that referenced this pull request Jun 15, 2024
This commit adds a new optional `cache` parameter to the `RunnableVerticesManager` class in the `runnable_vertices_manager.py` file. The `cache` parameter allows controlling whether the graph data should be cached or not when retrieving the next runnable vertices for a given vertex. If `cache` is set to `True`, the graph data will be cached using the `set_cache_coro` function. If `cache` is set to `False`, the graph data will not be cached.

This change was made to provide more flexibility in managing the caching behavior of the graph data.

Ref: #2180
ogabrielluiz added a commit that referenced this pull request Jun 15, 2024
This commit adds a new optional `cache` parameter to the `RunnableVerticesManager` class in the `runnable_vertices_manager.py` file. The `cache` parameter allows controlling whether the graph data should be cached or not when retrieving the next runnable vertices for a given vertex. If `cache` is set to `True`, the graph data will be cached using the `set_cache_coro` function. If `cache` is set to `False`, the graph data will not be cached.

This change was made to provide more flexibility in managing the caching behavior of the graph data.

Ref: #2180
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python Pull requests that update Python code size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant