Python-redis-lock

Latest version: v4.0.0

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

Scan your dependencies

Page 1 of 4

4.0.0

------------------

* Dropped support for Python 2.7 and 3.6.
* Switched from Travis to GitHub Actions.
* Made logging messages more consistent.
* Replaced the ``redis_lock.refresh.thread.*`` loggers with a single ``redis_lock.refresh.thread`` logger.
* Various testing cleanup (mainly removal of hardcoded tmp paths).

3.7.0

------------------

* Made logger names more specific. Now can have granular filtering on these new logger names:

* ``redis_lock.acquire`` (emits `DEBUG` messages)
* ``redis_lock.acquire`` (emits `WARN` messages)
* ``redis_lock.acquire`` (emits `INFO` messages)
* ``redis_lock.refresh.thread.start`` (emits `DEBUG` messages)
* ``redis_lock.refresh.thread.exit`` (emits `DEBUG` messages)
* ``redis_lock.refresh.start`` (emits `DEBUG` messages)
* ``redis_lock.refresh.shutdown`` (emits `DEBUG` messages)
* ``redis_lock.refresh.exit`` (emits `DEBUG` messages)
* ``redis_lock.release`` (emits `DEBUG` messages)

Contributed by Salomon Smeke Cohen in :pr:`80`.
* Fixed few CI issues regarding doc checks.
Contributed by Salomon Smeke Cohen in :pr:`81`.

3.6.0

------------------

* Improved ``timeout``/``expire`` validation so that:

- ``timeout`` and ``expire are converted to ``None`` if they are falsy. Previously only ``None`` disabled these options, other falsy
values created buggy situations.
- Using ``timeout`` greater than ``expire`` is now allowed, if ``auto_renewal`` is set to ``True``. Previously a ``TimeoutTooLarge`` error
was raised.
See :issue:`74`.
- Negative ``timeout`` or ``expire`` are disallowed. Previously such values were allowed, and created buggy situations.
See :issue:`73`.
* Updated benchmark and examples.
* Removed the custom script caching code. Now the ``register_script`` method from the redis client is used.
This will fix possible issue with redis clusters in theory, as the redis client has some specific handling for that.

3.5.0

------------------

* Added a ``locked`` method. Contributed by Artem Slobodkin in :pr:`72`.

3.4.0

------------------

* Fixed regression that can cause deadlocks or slowdowns in certain configurations.
See: :issue:`71`.

3.3.1

------------------

* Fixed failures when running python-redis-lock 3.3 alongside 3.2.
See: :issue:`64`.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.