Skip to content

fix:added error handling and retry connection for redis client#77

Open
tazsq wants to merge 3 commits into
bug0inc:mainfrom
tazsq:fix/add-redis-error-handling
Open

fix:added error handling and retry connection for redis client#77
tazsq wants to merge 3 commits into
bug0inc:mainfrom
tazsq:fix/add-redis-error-handling

Conversation

@tazsq

@tazsq tazsq commented Jul 16, 2026

Copy link
Copy Markdown

The redis client missed error handling and reconnnection on connection failure resulting in crashing the nodejs process. Just fixed that!:) fixes #70

Copilot AI review requested due to automatic review settings July 16, 2026 15:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Redis client initialization to avoid process crashes on Redis connection errors and to improve resiliency by adding connection lifecycle logging and a reconnect strategy.

Changes:

  • Added Redis event handlers to log connection lifecycle events and handle "error" events.
  • Updated Redis client construction to include timeouts, a retry strategy, and reconnectOnError behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/redis.ts Outdated
Comment thread src/redis.ts
tazsq and others added 2 commits July 16, 2026 20:54
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redis unhandled connection errors crash the process

2 participants