Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable celery task deduplication #558

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions iib/workers/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ class Config(object):
temp_fbc_fragment_path = 'fbc-fragment'
# For now, only allow a single process so that all tasks are processed serially
worker_concurrency: int = 1
# Before each task execution, instruct the worker to check if this task is a duplicate message.
# Deduplication occurs only with tasks that have the same identifier,
# enabled late acknowledgment, were redelivered by the message broker
# and their state is SUCCESS in the result backend.
worker_deduplicate_successful_tasks: bool = True
# Don't allow the worker to fetch more messages than it can handle at a time. This is so that
# other tasks aren't starved. This will only be useful once more workers are enabled.
worker_prefetch_multiplier: int = 1
Expand Down