fix: correct stale metadata and remove outdated worker-side detection feature bullet (#14)

This commit is contained in:
d3vyce
2026-05-04 19:04:12 +02:00
committed by GitHub
parent bede6f8a40
commit 84fff031df
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ except DuplicateTaskError:
## Features
- **Sender-side deduplication** — rejects duplicate tasks at dispatch time via a Redis queue lock, before they reach the broker.
- **Worker-side detection** — logs concurrent duplicate executions without raising, keeping `SmartRetryMiddleware` safe from retry storms.
- **Sender-side deduplication** — rejects duplicate tasks at dispatch time via a Redis lock, before they reach the broker.
- **Atomic lock release** — lock is released on completion or error via a Lua check-and-delete; only the owning task can release its lock.
- **Configurable TTL** — set a global default or override per task with the `deduplication_ttl` label.
- **Explicit lock key** — pin any task to a fixed Redis key with `deduplication_key`, bypassing fingerprint computation entirely.
- **Partial fingerprint** — deduplicate on a subset of kwargs with `deduplication_key_fields`, ignoring irrelevant arguments.
+2 -2
View File
@@ -50,8 +50,8 @@ except DuplicateTaskError:
## Features
- **Sender-side deduplication** — rejects duplicate tasks at dispatch time via a Redis queue lock, before they reach the broker.
- **Worker-side detection** — logs concurrent duplicate executions without raising, keeping `SmartRetryMiddleware` safe from retry storms.
- **Sender-side deduplication** — rejects duplicate tasks at dispatch time via a Redis lock, before they reach the broker.
- **Atomic lock release** — lock is released on completion or error via a Lua check-and-delete; only the owning task can release its lock.
- **Configurable TTL** — set a global default or override per task with the `deduplication_ttl` label.
- **Explicit lock key** — pin any task to a fixed Redis key with `deduplication_key`, bypassing fingerprint computation entirely.
- **Partial fingerprint** — deduplicate on a subset of kwargs with `deduplication_key_fields`, ignoring irrelevant arguments.
+2 -2
View File
@@ -1,7 +1,7 @@
[project]
name = "taskiq-deduplication"
version = "1.0.1"
description = "Production-ready utilities for FastAPI applications"
description = "Redis-backed deduplication middleware for Taskiq"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
@@ -9,7 +9,7 @@ requires-python = ">=3.10"
authors = [
{ name = "d3vyce", email = "contact@d3vyce.fr" }
]
keywords = ["fastapi", "sqlalchemy", "postgresql"]
keywords = ["taskiq", "redis", "deduplication", "middleware", "task-queue"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
+1 -1
View File
@@ -1,4 +1,4 @@
"""FastAPI utilities package."""
"""Redis-backed deduplication middleware for Taskiq."""
from .middleware import DuplicateTaskError, RedisDeduplicationMiddleware