langflow/docker
Cristhian Zanforlin Lousa a763f57af5
feat: add timeout handler on FE (#3537)
*  (frontend): Add TimeoutErrorComponent to handle timeout errors in API requests
🔧 (frontend): Add healthCheckTimeout state and setHealthCheckTimeout function to utilityStore for managing timeout errors in API requests

* 📝 (constants.ts): add constants for server health check intervals to improve code readability and maintainability
🐛 (use-get-health.ts): fix refetch interval value to use the newly added constant REFETCH_SERVER_HEALTH_INTERVAL for consistency and easier maintenance

* 📝 (api.tsx): Add utilityStore import to improve code organization
📝 (api.tsx): Add createNewError503 function to handle custom 503 errors
📝 (api.tsx): Add AxiosError import for type checking
📝 (api.tsx): Refactor error handling logic for authentication errors
📝 (use-get-health.ts): Add createNewError503 import for custom 503 errors
📝 (use-get-health.ts): Add AxiosError import for type checking
📝 (use-get-health.ts): Refactor error handling logic for server busy status
📝 (index.tsx): Add AxiosError import for type checking
📝 (index.tsx): Add useEffect and useState imports for state management
📝 (index.tsx): Refactor error handling logic for server status and retries
📝 (utilityStore.ts): Add retriesApiRequest state and setRetriesApiRequest function
📝 (axios-error-503.ts): Create function to generate custom 503 error responses
📝 (index.ts): Add retriesApiRequest state and setRetriesApiRequest function to UtilityStoreType

* 🔧 (utilityStore.ts): remove unused retriesApiRequest and setRetriesApiRequest functions to clean up code and improve maintainability
🔧 (index.ts): remove unused retriesApiRequest and setRetriesApiRequest types to keep type definitions consistent and up to date

*  (nginx.conf): add new health endpoint to proxy_pass requests to the backend server for health checks

*  (langflow): Add support for configuring the number of retries for the health check feature. This change introduces a new option `health_check_max_retries` that can be set via environment variable or command line argument to control the maximum number of retries for the health check process.

* check if value is none
2024-08-26 14:21:05 -07:00
..
frontend feat: add timeout handler on FE (#3537) 2024-08-26 14:21:05 -07:00
.dockerignore Refactor base.py and Dockerfile, and folder column migration (#2002) 2024-05-28 14:27:02 -07:00
build_and_push.Dockerfile chore: simplify docker (#2526) 2024-07-04 11:14:52 -03:00
build_and_push_backend.Dockerfile chore: simplify docker (#2526) 2024-07-04 11:14:52 -03:00
build_and_push_base.Dockerfile chore: simplify docker (#2526) 2024-07-04 11:14:52 -03:00
cdk-docker-compose.yml Reorganize repo (#1971) 2024-05-27 06:55:32 -07:00
cdk.Dockerfile Reorganize repo (#1971) 2024-05-27 06:55:32 -07:00
container-cmd-cdk.sh Reorganize repo (#1971) 2024-05-27 06:55:32 -07:00
dev.Dockerfile Reorganize repo (#1971) 2024-05-27 06:55:32 -07:00
render.Dockerfile update dockerfile 2024-07-01 13:53:55 -03:00
render.pre-release.Dockerfile refactor: Update Dockerfile and render.yaml for pre-release deployment 2024-06-03 14:05:33 -03:00