langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
35.41k stars 4.22k forks source link

fix: Add await to PyPI version check request #4716

Closed Cristhianzl closed 5 days ago

Cristhianzl commented 5 days ago

This pull request includes a small but important change to the get_lf_version_from_pypi function in the src/backend/base/langflow/services/store/utils.py file. The change ensures that the HTTP request to retrieve the version information from PyPI is awaited correctly.

ogabrielluiz commented 5 days ago

I did it first hahah #4708

codspeed-hq[bot] commented 5 days ago

CodSpeed Performance Report

Merging #4716 will degrade performances by 95.8%

Comparing cz/fix-async-call-lf-version (3546a82) with main (25a0d76)

Summary

⚡ 2 improvements ❌ 2 regressions ✅ 11 untouched benchmarks

:warning: Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main cz/fix-async-call-lf-version Change
test_successful_run_with_input_type_any 297.8 ms 220.6 ms +35.01%
test_successful_run_with_input_type_text 297 ms 218.9 ms +35.67%
test_successful_run_with_output_type_any 219.5 ms 5,220.5 ms -95.8%
test_successful_run_with_output_type_debug 138.8 ms 217.3 ms -36.14%