Spaces:
Runtime error
Runtime error
Commit History
-
fix: use plural entity type constants for queue names; fix inventory levels sync
0979938
-
refactor: replace hardcoded entity_type strings with constants from models.py
f09390e
-
fix(redis): cut workers to 7 total, remove per-iteration Redis calls to reduce connection pressure
dfbedd9 -
fix(redis): use correct redis.exceptions import to re-raise ConnectionError
77e12bc -
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 -
refactor(redis-queue): reduce logging verbosity in enqueue and dequeue operations
- Remove debug log from enqueue method that logged sync operation details - Remove debug log from dequeue method timeout exception handler - Decrease noise in queue operations to improve log clarity and performancec021ed8 -
refactor(sync-worker-ms): reduce logging verbosity in worker loop and queue operations
- Change health check logging from every 10 iterations to every 180 iterations (~3 minutes) - Remove redundant dequeue attempt logging that occurred at iteration 1 and every 50 iterations - Remove duplicate null check for sync_op after dequeue operation - Remove debug and info level logs from Redis queue dequeue method - Reduces noise in logs while maintaining essential health check visibilityc3290dc
-
Add DELETE operation support to sync worker
- Added 'delete' to valid operations in SyncOperation model - Added delete_from_postgres method to base handler - Updated sync method to handle DELETE operations separately - Updated base_service to pass operation type to handler - Implemented delete_from_postgres in CatalogueSyncHandler - DELETE operations now properly remove records from PostgreSQL Fixes issue where catalogue deletions in MongoDB were not synced to PostgreSQLd197a66
-
first commit
6391dfd