First, when Celery tasks make their initial attempt to connect to Redis,
set a limit of three tries before they raise an error.
Second, disable several tasks if such an error is raised on their first
call, so that subsequent server operations aren't slowed by attempting
to connect each time. (This has no effect if Redis becomes unavailable
sometime after the first call to one of these tasks is made.)
First, when Celery tasks make their initial attempt to connect to Redis, set a limit of three tries before they raise an error.
Second, disable several tasks if such an error is raised on their first call, so that subsequent server operations aren't slowed by attempting to connect each time. (This has no effect if Redis becomes unavailable sometime after the first call to one of these tasks is made.)