Repository navigation
Closed
Labels
Milestone
Description
Description
Celery provides a configuration flag task_acks_on_failure_or_timeout that allows to decide whether to acknowledge tasks on failure or timeout. Our configuration is expecting to acknowledge failed tasks as we send them to a DLQ, but tasks killed due to timeout we expect them to be retried after visibility timeout.
However, since there is only one flag for both, we are not able to configure this behavior (task_acks_on_failure=True and task_acks_on_timeout=False). There should be two flags task_acks_on_failure and task_acks_on_timeout that allow to control the behavior for both failure types independently.
Checklist
- I have verified that the issue exists against the
mainbranch of Celery. - This has already been asked to the discussions forum first.
- I have read the relevant section in the
contribution guide
on reporting bugs. - I have checked the issues list
for similar or identical bug reports. - I have checked the pull requests list
for existing proposed fixes. - I have checked the commit log
to find out if the bug was already fixed in the main branch. - I have included all related issues and possible duplicate issues
in this issue (If there are none, check this box anyway). - I have tried to reproduce the issue with pytest-celery and added the reproduction script below.
Mandatory Debugging Information
- I have included the output of
celery -A proj reportin the issue.
(if you are not able to do this, then at least specify the Celery
version affected). - I have verified that the issue exists against the
mainbranch of Celery. - I have included the contents of
pip freezein the issue. - I have included all the versions of all the external dependencies required
to reproduce this bug.
Optional Debugging Information
- I have tried reproducing the issue on more than one Python version
and/or implementation. - I have tried reproducing the issue on more than one message broker and/or
result backend. - I have tried reproducing the issue on more than one version of the message
broker and/or result backend. - I have tried reproducing the issue on more than one operating system.
- I have tried reproducing the issue on more than one workers pool.
- I have tried reproducing the issue with autoscaling, retries,
ETA/Countdown & rate limits disabled. - I have tried reproducing the issue after downgrading
and/or upgrading Celery and its dependencies.
Related Issues and Possible Duplicates
Related Issues
- None
Possible Duplicates
- None
Environment & Settings
Celery version:
celery report Output:
Steps to Reproduce
Required Dependencies
- Minimal Python Version: N/A or Unknown
- Minimal Celery Version: N/A or Unknown
- Minimal Kombu Version: N/A or Unknown
- Minimal Broker Version: N/A or Unknown
- Minimal Result Backend Version: N/A or Unknown
- Minimal OS and/or Kernel Version: N/A or Unknown
- Minimal Broker Client Version: N/A or Unknown
- Minimal Result Backend Client Version: N/A or Unknown
Python Packages
pip freeze Output:
Other Dependencies
Details
N/A
Minimally Reproducible Test Case
Details
Activity
feat(task): decouple acks_on_failure and acks_on_timeout (celery#10128)
abdullahmujahidali commentedon Feb 27, 2026
I've opened a PR for this: #10150
Splits
acks_on_failure_or_timeoutinto two independent settingstask_acks_on_failureandtask_acks_on_timeoutwith backward-compatible fallback to the existing combined flag.feat(task): decouple acks_on_failure and acks_on_timeout (#10150)