Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect on known errors after failover when pushing jobs to Redis #5159

Merged
merged 1 commit into from Feb 2, 2022

Commits on Feb 2, 2022

  1. Reconnect on known errors after failover when pushing jobs to Redis

    In a Redis cluster setup, failovers will happen. In these
    cases a `Redis::CommandError` can be raised for different
    reasons, for example when the server becomes a replica, when
    there is a "Not enough replicas" error from the primary, or
    when a blocking command is force-unblocked.
    
    These errors can occur when pushing a job to Redis, so it needs
    to reconnect to the current master node and retry. Otherwise,
    these jobs are lost.
    
    The retry logic is similar to the implementation for `Sidekiq.redis`.
    Dome-GER committed Feb 2, 2022
    Configuration menu
    Copy the full SHA
    bea7638 View commit details
    Browse the repository at this point in the history