hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

fix: throw 500 error when redis goes down

Open dracarys18 opened this issue 1 year ago • 0 comments

Type of Change

  • [x] Enhancement

Description

Created a global flag to check if redis is available or not if it's not available send 500 error to all reamaining requests.

Motivation and Context

Currently if redis goes down currently after reconnect_attempts reached fred will currently close the client and block the whole application.

How did you test it?

Manual Screenshot 2023-02-10 at 6 10 18 PM Screenshot 2023-02-10 at 6 10 31 PM

Checklist

  • [x] I formatted the code cargo +nightly fmt --all
  • [x] I addressed lints thrown by cargo clippy
  • [x] I reviewed submitted code

dracarys18 avatar Feb 10 '23 13:02 dracarys18