Skip to content

Commit

Permalink
fix(workers): avoid requeue of task if not acks
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Feb 18, 2025
1 parent 05ef83e commit c0c2662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/api_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
celery.conf.task_track_started = True
celery.conf.update(result_extended=True)
# celery.conf.task_reject_on_worker_lost = True
celery.conf.task_acks_late = False
celery.conf.task_acks_late = False # to avoid task duplication

if WORKER_PREFETCH_MULTIPLIER:
celery.conf.update(worker_prefetch_multiplier=WORKER_PREFETCH_MULTIPLIER)
Expand Down

0 comments on commit c0c2662

Please sign in to comment.