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

fix: Refactor file reading and async task creation, fix return type in vertex_builds model #4273

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

ogabrielluiz
Copy link
Contributor

@ogabrielluiz ogabrielluiz commented Oct 24, 2024

This pull request includes several changes aimed at improving asynchronous task handling, fixing encoding issues, and modifying serialization methods. The most important changes are grouped by their themes below:

Asynchronous Task Handling Improvements:

Encoding Fixes:

Serialization Method Changes:

  • src/backend/base/langflow/services/database/models/vertex_builds/model.py: Changed the return type of the serialize_params method from dict to str to ensure proper serialization.Refactored the file reading logic to avoid unclosed resources and improved the async task creation by removing unnecessary thread usage. Additionally, fixed the return type of 'serialize_params' to string in the vertex_builds model. These changes enhance the efficiency and reliability of the code.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 24, 2024
@github-actions github-actions bot added the bug Something isn't working label Oct 24, 2024
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Oct 27, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 28, 2024
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) October 30, 2024 23:47
@ogabrielluiz ogabrielluiz merged commit fab2d9a into main Oct 31, 2024
27 checks passed
@ogabrielluiz ogabrielluiz deleted the async-changes branch October 31, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants