Debian Codegraph @

docs/history/changelog-5.6.rst

raw
1 .. _changelog-5.6:
2
3 ================
4 Change history
5 ================
6
7 This document contains change notes for bugfix & new features
8 in the main branch & 5.6.x series, please see :ref:`whatsnew-5.6` for
9 an overview of what's new in Celery 5.6.
10
11 .. _version-5.6.2:
12
13 5.6.2
14 =====
15
16 :release-date: 2026-01-04
17 :release-by: Tomer Nosrati
18
19 What's Changed
20 ~~~~~~~~~~~~~~
21
22 - Fix recursive WorkController instantiation in DjangoWorkerFixup + AttributeError when pool_cls is a string (#10045)
23 - Bugfix: Revoked tasks now immediately update backend status to REVOKED (#9869)
24 - Prepare for release: v5.6.2 (#10049)
25
26 .. _version-5.6.1:
27
28 5.6.1
29 =====
30
31 :release-date: 2025-12-29
32 :release-by: Tomer Nosrati
33
34 What's Changed
35 ~~~~~~~~~~~~~~
36
37 - Fix Redis Sentinel ACL authentication support (#10013)
38 - Fix: Broker heartbeats not sent during graceful shutdown (#9986)
39 - docs #5410 -- Document confirm_publish broker transport option (#10016)
40 - close DB pools only in prefork mode (#10020)
41 - Fix: Avoid unnecessary Django database connection creation during cleanup (#10015)
42 - reliable prefork detection (#10023)
43 - better coverage (#10029)
44 - Docs: clarify `result_extended` vs periodic task metadata and show `headers["periodic_task_name"]` example (#10030)
45 - Stop importing pytest_subtests (#10032)
46 - Only use exceptiongroup backport for Python < 3.11 (#10033)
47 - Prepare for release: v5.6.1 (#10037)
48
49 .. _version-5.6.0:
50
51 5.6.0
52 =====
53
54 :release-date: 2025-11-30
55 :release-by: Tomer Nosrati
56
57 Celery v5.6.0 is now available.
58
59 Key Highlights
60 ~~~~~~~~~~~~~~
61
62 See :ref:`whatsnew-5.6` for a complete overview or read the main highlights below.
63
64 Python 3.9 Minimum Version
65 --------------------------
66
67 Celery 5.6.0 drops support for Python 3.8 (EOL). The minimum required Python
68 version is now 3.9. Users still on Python 3.8 must upgrade their Python version
69 before upgrading to Celery 5.6.0.
70
71 Additionally, this release includes initial support for Python 3.14.
72
73 SQS: Reverted to ``pycurl`` from ``urllib3``
74 --------------------------------------------
75
76 The switch from ``pycurl`` to ``urllib3`` for the SQS transport (introduced in
77 Celery 5.5.0 via Kombu) has been reverted due to critical issues affecting SQS
78 users:
79
80 - Processing throughput dropped from ~100 tasks/sec to ~3/sec in some environments
81 - ``UnknownOperationException`` errors causing container crash loops
82 - Silent message processing failures with no error logs
83
84 Users of the SQS transport must ensure ``pycurl`` is installed. If you removed
85 ``pycurl`` after upgrading to Celery 5.5.0, you will need to reinstall it.
86
87 Contributed by `@auvipy <https://github.com/auvipy>`_ in
88 `#9620 <https://github.com/celery/celery/pull/9620>`_.
89
90 Security Fix: Broker Credential Leak Prevention
91 ------------------------------------------------
92
93 Fixed a security issue where broker URLs containing passwords were being logged
94 in plaintext by the delayed delivery mechanism. Broker credentials are now
95 properly sanitized in all log output.
96
97 Contributed by `@giancarloromeo <https://github.com/giancarloromeo>`_ in
98 `#9997 <https://github.com/celery/celery/pull/9997>`_.
99
100 Memory Leak Fixes
101 -----------------
102
103 Two significant memory leaks have been fixed in this release:
104
105 **Exception Handling Memory Leak**: Fixed a critical memory leak in task exception
106 handling that was particularly severe on Python 3.11+ due to enhanced traceback
107 data. The fix properly breaks reference cycles in tracebacks to allow garbage
108 collection.
109
110 Contributed by `@jaiganeshs21 <https://github.com/jaiganeshs21>`_ in
111 `#9799 <https://github.com/celery/celery/pull/9799>`_.
112
113 **Pending Result Memory Leak**: Fixed a memory leak where ``AsyncResult``
114 subscriptions were not being cleaned up when results were forgotten.
115
116 Contributed by `@tsoos99dev <https://github.com/tsoos99dev>`_ in
117 `#9806 <https://github.com/celery/celery/pull/9806>`_.
118
119 ETA Task Memory Limit
120 ---------------------
121
122 New configuration option :setting:`worker_eta_task_limit` to prevent out-of-memory
123 crashes when workers fetch large numbers of ETA or countdown tasks. Previously,
124 workers could exhaust available memory when the broker contained many scheduled tasks.
125
126 Example usage:
127
128 .. code-block:: python
129
130 app.conf.worker_eta_task_limit = 1000
131
132 Contributed by `@sashu2310 <https://github.com/sashu2310>`_ in
133 `#9853 <https://github.com/celery/celery/pull/9853>`_.
134
135 Queue Type Selection for Auto-created Queues
136 --------------------------------------------
137
138 New configuration options allow specifying the queue type and exchange type when
139 Celery auto-creates missing queues. This is particularly useful for RabbitMQ users
140 who want to use quorum queues with auto-created queues.
141
142 Configuration options:
143
144 - :setting:`task_create_missing_queue_type`: Sets the queue type for auto-created
145 queues (e.g., ``quorum``, ``classic``)
146 - :setting:`task_create_missing_queue_exchange_type`: Sets the exchange type for
147 auto-created queues
148
149 Example usage:
150
151 .. code-block:: python
152
153 app.conf.task_create_missing_queue_type = 'quorum'
154
155 Contributed by `@ghirailghiro <https://github.com/ghirailghiro>`_ in
156 `#9815 <https://github.com/celery/celery/pull/9815>`_.
157
158 What's Changed
159 ~~~~~~~~~~~~~~
160
161 - Prepare for release: v5.6.0 (#10010)
162
163 .. _version-5.6.0rc2:
164
165 5.6.0rc2
166 ========
167
168 :release-date: 2025-11-22
169 :release-by: Tomer Nosrati
170
171 Celery v5.6.0 Release Candidate 2 is now available for testing.
172 Please help us test this version and report any issues.
173
174 What's Changed
175 ~~~~~~~~~~~~~~
176
177 - Remove Python 4.0 version condition for pytest dependencies (#9993)
178 - Sanitize broker URL in delayed delivery logs (avoid leaking credentials) (#9997)
179 - Don't fail task on timeout during cold shutdown (#9678)
180 - Add Py39-314t to CI (#9999)
181 - asynpool: Don't return from inside a finally block (#10000)
182 - Prepare for (pre) release: v5.6.0rc2 (#10005)
183
184 .. _version-5.6.0rc1:
185
186 5.6.0rc1
187 ========
188
189 :release-date: 2025-11-02
190 :release-by: Tomer Nosrati
191
192 Celery v5.6.0 Release Candidate 1 is now available for testing.
193 Please help us test this version and report any issues.
194
195 What's Changed
196 ~~~~~~~~~~~~~~
197
198 - Add support for Django Connection pool (#9953)
199 - Pin tblib to ==3.1.0 (#9967)
200 - fix(worker): continue to attempt to bind other queues after a native delayed delivery binding failure has occurred (#9959)
201 - Handle UnpicklingError in persistent scheduler initialization (#9952)
202 - Bug Fix: Nested Chords Fail When Using django-celery-results with a Redis Backend (#9950)
203 - Add support pymongo 4.12 (#9665)
204 - Make tests compatible with pymongo >= 4.14 (#9968)
205 - tblib updated from 3.1.0 to 3.2.0 (#9970)
206 - Fix remaining function typing and docstring (#9971)
207 - Fix regex pattern in version parsing and remove duplicate entry in __all__ (#9978)
208 - Bump Kombu to v5.6.0 and removed <5.7 limit on kombu (#9981)
209 - Prepare for (pre) release: v5.6.0rc1 (#9982)
210
211 .. _version-5.6.0b2:
212
213 5.6.0b2
214 =======
215
216 :release-date: 2025-10-20
217 :release-by: Tomer Nosrati
218
219 Celery v5.6.0 Beta 2 is now available for testing.
220 Please help us test this version and report any issues.
221
222 What's Changed
223 ~~~~~~~~~~~~~~
224
225 - GitHub Actions: Test on Python 3.14 release candidate 2 (#9891)
226 - Update pypy to python 3.11 (#9896)
227 - Feature: Add support credential_provider to Redis Backend (#9879)
228 - Celery.timezone: try tzlocal.get_localzone() before using LocalTimezone (#9862)
229 - Run integration tests on Python 3.14 (#9903)
230 - Fix arithmetic overflow for MSSQL result backend (#9904)
231 - Add documentation for task_id param for apply_async function (#9906)
232 - Support redis client name (#9900)
233 - Bump Kombu to v5.6.0rc1 (#9918)
234 - Fix broker connection retry attempt counter in the error log (#9911)
235 - fix: restrict disable-prefetch feature to Redis brokers only (#9919)
236 - fix(): preserve group order in replaced signature (#9910)
237 - Remove Python 3.8 from CI workflow (#9930)
238 - Update default Python versions in integration tests (#9931)
239 - Update tox.ini to remove Python 3.8 (#9932)
240 - Remove Python 3.8 from Dockerfile (#9933)
241 - Update Python version requirement to 3.9 (#9935)
242 - Update pypy version from 3.10 to 3.11 in Dockerfile (#9934)
243 - Flake8 fixes (#9955)
244 - Remove test-pypy3.txt from Dockerfile dependencies (#9939)
245 - Remove backports.zoneinfo for Python 3.9 compatibility (#9956)
246 - Update pytest-cov version for Python compatibility (#9957)
247 - Update pytest-rerunfailures and pre-commit versions (#9958)
248 - Prepare for (pre) release: v5.6.0b2 (#9938)
249
250 .. _version-5.6.0b1:
251
252 5.6.0b1
253 =======
254
255 :release-date: 2025-09-15
256 :release-by: Tomer Nosrati
257
258 Celery v5.6.0 Beta 1 is now available for testing.
259 Please help us test this version and report any issues.
260
261 What's Changed
262 ~~~~~~~~~~~~~~
263
264 - docs: mention of json serializer recursive reference message size blowup (#5000) (#9743)
265 - docs: typo in canvas.rst (#9744)
266 - Makes _on_retry return a float as required to be used as errback on retry_over_time (#9741)
267 - Update canvas.rst doc calculation order for callback (#9758)
268 - Updated Blacksmith logo (#9763)
269 - Made the Sponsors logos link to their website (#9764)
270 - add missing cloudamqp logo (#9767)
271 - Improve sponsor visibility (#9768)
272 - fix: (#9773) task_id must not be empty with chain as body of a chord (#9774)
273 - Update setup.py to fix deprecation warning (#9771)
274 - Adds integration test for chord_unlock bug when routed to quorum/topic queue (#9766)
275 - Add xfail test for default queue/exchange fallback ignoring task_default_* settings (#9765)
276 - Add xfail test for RabbitMQ quorum queue global QoS race condition (#9770)
277 - fix: (#8786) time out when chord header fails with group body (#9788)
278 - Fix #9738 : Add root_id and parent_id to .apply() (#9784)
279 - Replace DelayedDelivery connection creation to use context manger (#9793)
280 - Fix #9794: Pydantic integration fails with __future__.annotations. (#9795)
281 - add go and rust implementation in docs (#9800)
282 - Fix memory leak in exception handling (Issue #8882) (#9799)
283 - Fix handlers docs (Issue #9787) (#9804)
284 - Remove importlib_metadata leftovers (#9791)
285 - Update timeout minutes for smoke tests CI (#9807)
286 - Revert "Remove dependency on `pycurl`" (#9620)
287 - Add Blacksmith Docker layer caching to all Docker builds (#9840)
288 - Bump Kombu to v5.6.0b1 (#9839)
289 - Disable pytest-xdist for smoke tests and increase retries (CI ONLY) (#9842)
290 - Fix Python 3.13 compatibility in events dumper (#9826)
291 - Dockerfile Build Optimizations (#9733)
292 - Migrated from useblacksmith/build-push-action@v1 to useblacksmith/setup-docker-builder@v1 in the CI (#9846)
293 - Remove incorrect example (#9854)
294 - Revert "Use Django DB max age connection setting" (#9824)
295 - Fix pending_result memory leak (#9806)
296 - Update python-package.yml (#9856)
297 - Bump Kombu to v5.6.0b2 (#9858)
298 - Refactor integration and smoke tests CI (#9855)
299 - Fix `AsyncResult.forget()` with couchdb backend method raises `TypeError: a bytes-like object is required, not 'str'` (#9865)
300 - Improve Docs for SQS Authentication (#9868)
301 - Added `.github/copilot-instructions.md` for GitHub Copilot (#9874)
302 - misc: credit removal (#9877)
303 - Choose queue type and exchange type when creating missing queues (fix #9671) (#9815)
304 - fix: prevent celery from hanging due to spawned greenlet errors in greenlet drainers (#9371)
305 - Feature/disable prefetch fixes (#9863)
306 - Add worker_eta_task_limit configuration to manage ETA task memory usage (#9853)
307 - Update runner version in Docker workflow (#9884)
308 - Prepare for (pre) release: v5.6.0b1 (#9890)