fix: adds logging to langflow run command (#8466)
* Clean up initialiation of uv run langflow run * sigint fixes * Log level fixes and gunicorn logs removal * sqlalch contraints * Add back banner for windows * [autofix.ci] apply automated fixes * handle sigint sigterms * [autofix.ci] apply automated fixes * handle multiple sigints * more gracefully handle shutdown during init * [autofix.ci] apply automated fixes * swallow cancellation during log flush * fix path import and cleanup * [autofix.ci] apply automated fixes * start with step logs * 📝 (main.py): Comment out logger.info statement to prevent unnecessary logging of static files directory setup information. * 💡 (langflow/__main__.py): Comment out logger.info message for initializing Langflow to reduce noise in logs and improve readability. * uncomment logs, change to debug * 📝 (langflow): remove redundant logger info messages in signal handlers and shutdown process ♻️ (langflow): refactor shutdown process to use a progress indicator for better visibility and control ♻️ (langflow): refactor initialization process to remove redundant logger info messages 📝 (langflow): add methods to print shutdown summary and farewell message after shutdown is complete 📝 (langflow): add method to create a progress indicator for shutdown steps 📝 (langflow): add predefined shutdown steps for Langflow shutdown process 📝 (langflow): add method to create a progress indicator with predefined Langflow initialization steps 📝 (langflow): add method to create a progress indicator with predefined Langflow shutdown steps 📝 (langflow): add predefined shutdown steps in reverse order of initialization 📝 (langflow): add predefined initialization steps for Langflow initialization process 📝 (langflow): add method to print a summary of all completed shutdown steps * 📝 (api/v1/__init__.py): reorganize imports and include_router calls for better readability and maintainability 🔧 (api/v1/__init__.py): update __all__ list to explicitly include all routers for better module encapsulation 💡 (utils.py): add logging statement to indicate building custom components from specified paths * Fix ordering of operations for windows builds * use lowercase log levels for uvicorn * converts log to lower if set from env var * [autofix.ci] apply automated fixes * use a subprocess for windows so progress step can complete * [autofix.ci] apply automated fixes * test subprocess for windows * use subprocess for all architectures * Clean up global vars and simplify shutdown * [autofix.ci] apply automated fixes * 📝 (progress.py): add platform check to use different characters and icons based on the operating system for better compatibility and user experience * 📝 (langflow/__main__.py): use platform-specific characters for icons to prevent encoding issues and improve cross-platform compatibility * test for windows * remove print * move windows blocking call outside of progres step * [autofix.ci] apply automated fixes * log cleanup and timeout of teardown * remove seemingly unnecessary redirect * [autofix.ci] apply automated fixes * ruff * Add init file to cli dir * ruff: : * unused import * mypy fixes * mypy fixes * [autofix.ci] apply automated fixes * ruff * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes * Try underscores so ci doesn't remove * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
This commit is contained in:
parent
e5bec89cc8
commit
131322cb9b
15 changed files with 6191 additions and 4124 deletions
|
|
@ -236,10 +236,10 @@ audio = [
|
|||
]
|
||||
|
||||
postgresql = [
|
||||
"sqlalchemy[postgresql_psycopg2binary]",
|
||||
"sqlalchemy[postgresql_psycopg]",
|
||||
|
||||
"sqlalchemy[postgresql_psycopg2binary]>=2.0.38,<3.0.0",
|
||||
"sqlalchemy[postgresql_psycopg]>=2.0.38,<3.0.0",
|
||||
]
|
||||
|
||||
local = [
|
||||
"llama-cpp-python>=0.2.0",
|
||||
"sentence-transformers>=2.0.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue