Spaces:
Runtime error
Runtime error
Commit History
-
fix: limit SQLAlchemy pool size to prevent connection exhaustion
5db0a21
-
fix(redis): increase pool max_connections to 50, add exponential backoff on ConnectionError
0708ac4 -
feat(logging): implement production-grade structured logging with JSON and rotating files
- Add JSONFormatter for structured JSON output compatible with log aggregators (ELK, CloudWatch, Datadog) - Add ConsoleFormatter with color-coded output for local development - Implement rotating file handlers with configurable size and backup limits - Add separate error.log file for ERROR and CRITICAL level logs - Create LoggerAdapter for injecting worker/entity context into log records - Add structured startup/shutdown events with service metadata - Extend .env.example with LOG_FORMAT, LOG_DIR, LOG_MAX_BYTES, and LOG_BACKUP_COUNT configuration options - Update worker_manager.py to use new logging context for worker lifecycle events - Update base_service.py to emit structured logs for sync operations - Update main.py to initialize logging with startup event - Enables production-ready log aggregation while maintaining human-readable console output for local developmentf2bfacd
-
feat(worker-manager): implement Redis connection pooling for sync workers
- Add Redis ConnectionPool with max_connections=15 for improved resource management - Enable socket keepalive to maintain persistent connections - Set socket_connect_timeout to 5 seconds for faster failure detection - Enable retry_on_timeout for automatic reconnection on timeout events - Add health_check_interval=30 for periodic connection validation - Update logging to reflect connection pool configuration - Improves connection stability and resource efficiency for sync worker operationse86dee7 -
first commit
6391dfd