gwillen / herring

Modern Django and ReactJS based web application for puzzlehunt team management!
MIT License
7 stars 4 forks source link

don't hang when Redis is unavailable #14

Closed rhendric closed 4 years ago

rhendric commented 4 years ago

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.)