Celery-redis-sentinel

Latest version: v0.3.0

Safety actively analyzes 621329 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3

~~~~~~~~~~~~~~~~

* **New**: Addition of ``ShortLivedStrictRedis`` and ``ShortLivedSentinel``.
Both of them use short-lived connections which disconnect from redis
as soon as the query to redis is complete.
* **Fixed**: All sentinel connections are now created via ``ShortLivedSentinel``.
This fixes an issue when sentinel would reach its max connections limit
since all celery workers would always be connected to sentinel.
That is not necessary since sentinel is queried very rarely for the current
master connection details.
In addition this is useful when Redis Sentinel is used behind a firewall
since sentinel would not notice when firewall would close the connections
and so would not release them.

0.2

~~~~~~~~~~~~~~~~

* **New**: Added ``EnsuredRedisTask`` which allows to ensure tasks are scheduled
via an abstract base task class in task definition rather then explicitly using
``ensure_redis_call`` while calling the task::

app.task(base=EnsuredRedisTask)
def foo(): pass

0.1

~~~~~~~~~~~~~~~~

* First release

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.