veza/veza-backend-api/internal/shutdown
senke f6a40c9ec6 [BE-SVC-017] be-svc: Implement graceful shutdown
- Created ShutdownManager for coordinated graceful shutdown of all services
- Added Shutdowner interface for services that need graceful shutdown
- Implemented parallel shutdown with individual timeouts (10s per service)
- Added global shutdown timeout (30s total)
- Integrated shutdown manager in main.go for:
  - HTTP server shutdown
  - JobWorker cancellation
  - Config.Close() (DB, Redis, RabbitMQ)
  - Logger sync
  - Sentry flush
- Added comprehensive unit tests for shutdown manager
- Prevents registration of new services during shutdown

Phase: PHASE-6
Priority: P2
Progress: 113/267 (42.32%)
2025-12-24 17:03:11 +01:00
..
shutdown.go [BE-SVC-017] be-svc: Implement graceful shutdown 2025-12-24 17:03:11 +01:00
shutdown_test.go [BE-SVC-017] be-svc: Implement graceful shutdown 2025-12-24 17:03:11 +01:00