fix: lock leaks when sender and worker middlewares have different default_deduplication (#39)

This commit is contained in:
d3vyce
2026-06-02 18:44:37 +02:00
committed by GitHub
parent 787b8a7640
commit c651459dd8
2 changed files with 46 additions and 2 deletions
-2
View File
@@ -186,8 +186,6 @@ class RedisDeduplicationMiddleware(TaskiqMiddleware):
return message
async def _release_lock(self, message: TaskiqMessage) -> None:
if not self._is_enabled(message.labels):
return
key = self._get_cached_key(message)
if key is None:
return