The Fix
pip install celery==5.3.4
Based on closed celery/celery issue #8259 · PR/commit linked
Production note: This usually shows up under retries/timeouts. Treat it as a side-effect risk until you can verify behavior with a canary + real traffic.
@@ -5,7 +5,9 @@
[email protected](cls=CeleryCommand)
[email protected](cls=CeleryCommand, context_settings={
+ 'allow_extra_args': True
Option A — Upgrade to fixed release\npip install celery==5.3.4\nWhen NOT to use: This fix should not be used if backward compatibility with older configurations is required.\n\n
Why This Fix Works in Production
- Trigger: - [ x ] I have included all related issues and possible duplicate issues in this issue
- Mechanism: The shell and purge commands lack context_settings to allow extra arguments
- Why the fix works: Adds support for preload options in the shell and purge commands, allowing them to accept additional arguments from configuration files. (first fixed release: 5.3.4).
- If left unfixed, the same config can fail only in production (env differences), causing startup failures or partial feature outages.
Why This Breaks in Prod
- The shell and purge commands lack context_settings to allow extra arguments
- Production symptom (often without a traceback): - [ x ] I have included all related issues and possible duplicate issues in this issue
Proof / Evidence
- GitHub issue: #8259
- Fix PR: https://github.com/celery/celery/pull/8374
- First fixed release: 5.3.4
- Reproduced locally: No (not executed)
- Last verified: 2026-02-09
- Confidence: 0.85
- Did this fix it?: Yes (upstream fix exists)
- Own content ratio: 0.78
Discussion
High-signal excerpts from the issue thread (symptoms, repros, edge-cases).
“Hey @dpdoughe :wave:, Thank you for opening an issue”
“The inability to configure and run purge or shell commands with pyramid_celery persists with Celery v5.3.1”
“I am open to contributions in this regard. my expectation is adding adding missing tests for the newly proposed/missing features”
“The allow_extra_args aspect of this seems to be also required and related to #8049”
Failure Signature (Search String)
- - [ x ] I have included all related issues and possible duplicate issues in this issue
- or possible duplicates to this issue as requested by the checklist above.
Copy-friendly signature
Failure Signature
-----------------
- [ x ] I have included all related issues and possible duplicate issues in this issue
or possible duplicates to this issue as requested by the checklist above.
Error Message
Signature-only (no traceback captured)
Error Message
-------------
- [ x ] I have included all related issues and possible duplicate issues in this issue
or possible duplicates to this issue as requested by the checklist above.
What Broke
Commands fail due to unrecognized arguments from configuration files.
Why It Broke
The shell and purge commands lack context_settings to allow extra arguments
Fix Options (Details)
Option A — Upgrade to fixed release Safe default (recommended)
pip install celery==5.3.4
Use when you can deploy the upstream fix. It is usually lower-risk than long-lived workarounds.
Fix reference: https://github.com/celery/celery/pull/8374
First fixed release: 5.3.4
Last verified: 2026-02-09. Validate in your environment.
When NOT to Use This Fix
- This fix should not be used if backward compatibility with older configurations is required.
Did This Fix Work in Your Case?
Quick signal helps us prioritize which fixes to verify and improve.
Prevention
- Capture the exact failing error string in logs and tests so you can reproduce via a minimal script.
- Pin production dependencies and upgrade only with a reproducible test that hits the failing path.
Version Compatibility Table
| Version | Status |
|---|---|
| 5.3.4 | Fixed |
Related Issues
No related fixes found.
Sources
We don’t republish the full GitHub discussion text. Use the links above for context.