Commit
Refactor: Improve queue cleanup and graceful shutdown
Commit details
Commit notes
This commit introduces several improvements:
- **Queue Cleanup:** The `cleanupQueue` function now also handles orphaned jobs in the waiting and delayed queues, ensuring better data integrity. - **Graceful Shutdown:** The SSE publisher connection is now properly closed during graceful shutdown, preventing resource leaks. - **Redis TTL:** TTLs are now set and refreshed on user index and session keys to prevent premature expiration and unbounded growth. - **Dependency Updates:** Minor updates to various dependencies, including `pnpm-lock.yaml`.
Co-authored-by: armin.naimi <[email redacted]>
- Files changed
- 7
- Lines added
- +4,218
- Lines removed
- −3,143