Debian Codegraph @

docs/history/changelog-5.5.rst

raw
1 .. _changelog-5.5:
2
3 ================
4 Change history
5 ================
6
7 This document contains change notes for bugfix & new features
8 in the main branch & 5.5.x series, please see :ref:`whatsnew-5.5` for
9 an overview of what's new in Celery 5.5.
10
11 .. _version-5.5.3:
12
13 5.5.3
14 =====
15
16 :release-date: 2025-06-01
17 :release-by: Tomer Nosrati
18
19 What's Changed
20 ~~~~~~~~~~~~~~
21
22 - make the tests run on python 3.13 for gcs backend (#9677)
23 - Added DeepWiki to README (#9683)
24 - Limit redis to <=v5.2.1 to match Kombu (#9693)
25 - Use EX_OK instead of literal zero (#9684)
26 - Make wheel metadata reproducible (#9687)
27 - let celery install from kombu dependencies for better align (#9696)
28 - Fix stamping documentation to clarify stamped_headers key is optional in visitor methods (#9697)
29 - Support apply_async without queue argument on quorum queues (#9686)
30 - Updated rabbitmq doc about using quorum queues with task routes (#9707)
31 - Add: Dumper Unit Test (#9711)
32 - Add unit test for event.group_from (#9709)
33 - refactor: add beat_cron_starting_deadline documentation warning (#9712)
34 - fix: resolve issue #9569 by supporting distinct broker transport options for workers (#9695)
35 - Fixes issue with retry callback arguments in DelayedDelivery (#9708)
36 - get_exchange-unit-test (#9710)
37 - ISSUE-9704: Update documentation of result_expires, filesystem backend is supported (#9716)
38 - update to blacksmith ubuntu 24.04 (#9717)
39 - Added unit tests for celery.utils.iso8601 (#9725)
40 - Update introduction.rst docs (#9728)
41 - Prepare for release: v5.5.3 (#9732)
42
43 .. _version-5.5.2:
44
45 5.5.2
46 =====
47
48 :release-date: 2025-04-25
49 :release-by: Tomer Nosrati
50
51 What's Changed
52 ~~~~~~~~~~~~~~
53
54 - Fix calculating remaining time across DST changes (#9669)
55 - Remove `setup_logger` from COMPAT_MODULES (#9668)
56 - Fix mongodb bullet and fix github links in contributions section (#9672)
57 - Prepare for release: v5.5.2 (#9675)
58
59 .. _version-5.5.1:
60
61 5.5.1
62 =====
63
64 :release-date: 2025-04-08
65 :release-by: Tomer Nosrati
66
67 What's Changed
68 ~~~~~~~~~~~~~~
69
70 - Fixed "AttributeError: list object has no attribute strip" with quorum queues and failover brokers (#9657)
71 - Prepare for release: v5.5.1 (#9660)
72
73 .. _version-5.5.0:
74
75 5.5.0
76 =====
77
78 :release-date: 2025-03-31
79 :release-by: Tomer Nosrati
80
81 Celery v5.5.0 is now available.
82
83 Key Highlights
84 ~~~~~~~~~~~~~~
85
86 See :ref:`whatsnew-5.5` for a complete overview or read the main highlights below.
87
88 Redis Broker Stability Improvements
89 -----------------------------------
90
91 Long-standing disconnection issues with the Redis broker have been identified and
92 resolved in Kombu 5.5.0, which is included with this release. These improvements
93 significantly enhance stability when using Redis as a broker.
94
95 Additionally, the Redis backend now has better exception handling with the new
96 ``exception_safe_to_retry`` feature, which improves resilience during temporary
97 Redis connection issues. See :ref:`conf-redis-result-backend` for complete
98 documentation.
99
100 Contributed by `@drienkop <https://github.com/drienkop>`_ in
101 `#9614 <https://github.com/celery/celery/pull/9614>`_.
102
103 ``pycurl`` replaced with ``urllib3``
104 ------------------------------------
105
106 Replaced the :pypi:`pycurl` dependency with :pypi:`urllib3`.
107
108 We're monitoring the performance impact of this change and welcome feedback from users
109 who notice any significant differences in their environments.
110
111 Contributed by `@spawn-guy <https://github.com/spawn-guy>`_ in Kombu
112 `#2134 <https://github.com/celery/kombu/pull/2134>`_ and integrated in Celery via
113 `#9526 <https://github.com/celery/celery/pull/9526>`_.
114
115 RabbitMQ Quorum Queues Support
116 ------------------------------
117
118 Added support for RabbitMQ's new `Quorum Queues <https://www.rabbitmq.com/docs/quorum-queues>`_
119 feature, including compatibility with ETA tasks. This implementation has some limitations compared
120 to classic queues, so please refer to the documentation for details.
121
122 `Native Delayed Delivery <https://docs.particular.net/transports/rabbitmq/delayed-delivery>`_
123 is automatically enabled when quorum queues are detected to implement the ETA mechanism.
124
125 See :ref:`using-quorum-queues` for complete documentation.
126
127 Configuration options:
128
129 - :setting:`broker_native_delayed_delivery_queue_type`: Specifies the queue type for
130 delayed delivery (default: ``quorum``)
131 - :setting:`task_default_queue_type`: Sets the default queue type for tasks
132 (default: ``classic``)
133 - :setting:`worker_detect_quorum_queues`: Controls automatic detection of quorum
134 queues (default: ``True``)
135
136 Contributed in `#9207 <https://github.com/celery/celery/pull/9207>`_,
137 `#9121 <https://github.com/celery/celery/pull/9121>`_, and
138 `#9599 <https://github.com/celery/celery/pull/9599>`_.
139
140 For details regarding the 404 errors, see
141 `New Year's Security Incident <https://github.com/celery/celery/discussions/9525>`_.
142
143 Soft Shutdown Mechanism
144 -----------------------
145
146 Soft shutdown is a time limited warm shutdown, initiated just before the cold shutdown.
147 The worker will allow :setting:`worker_soft_shutdown_timeout` seconds for all currently
148 executing tasks to finish before it terminates. If the time limit is reached, the worker
149 will initiate a cold shutdown and cancel all currently executing tasks.
150
151 This feature is particularly valuable when using brokers with visibility timeout
152 mechanisms, such as Redis or SQS. It allows the worker enough time to re-queue
153 tasks that were not completed before exiting, preventing task loss during worker
154 shutdown.
155
156 See :ref:`worker-stopping` for complete documentation on worker shutdown types.
157
158 Configuration options:
159
160 - :setting:`worker_soft_shutdown_timeout`: Sets the duration in seconds for the soft
161 shutdown period (default: ``0.0``, disabled)
162 - :setting:`worker_enable_soft_shutdown_on_idle`: Controls whether soft shutdown
163 should be enabled even when the worker is idle (default: ``False``)
164
165 Contributed by `@Nusnus <https://github.com/Nusnus>`_ in
166 `#9213 <https://github.com/celery/celery/pull/9213>`_,
167 `#9231 <https://github.com/celery/celery/pull/9231>`_, and
168 `#9238 <https://github.com/celery/celery/pull/9238>`_.
169
170 Pydantic Support
171 ----------------
172
173 New native support for Pydantic models in tasks. This integration
174 allows you to leverage Pydantic's powerful data validation and serialization
175 capabilities directly in your Celery tasks.
176
177 Example usage:
178
179 .. code-block:: python
180
181 from pydantic import BaseModel
182 from celery import Celery
183
184 app = Celery('tasks')
185
186 class ArgModel(BaseModel):
187 value: int
188
189 class ReturnModel(BaseModel):
190 value: str
191
192 @app.task(pydantic=True)
193 def x(arg: ArgModel) -> ReturnModel:
194 # args/kwargs type hinted as Pydantic model will be converted
195 assert isinstance(arg, ArgModel)
196
197 # The returned model will be converted to a dict automatically
198 return ReturnModel(value=f"example: {arg.value}")
199
200 See :ref:`task-pydantic` for complete documentation.
201
202 Configuration options:
203
204 - ``pydantic=True``: Enables Pydantic integration for the task
205 - ``pydantic_strict=True/False``: Controls whether strict validation is enabled
206 (default: ``False``)
207 - ``pydantic_context={...}``: Provides additional context for validation
208 - ``pydantic_dump_kwargs={...}``: Customizes serialization behavior
209
210 Contributed by `@mathiasertl <https://github.com/mathiasertl>`_ in
211 `#9023 <https://github.com/celery/celery/pull/9023>`_,
212 `#9319 <https://github.com/celery/celery/pull/9319>`_, and
213 `#9393 <https://github.com/celery/celery/pull/9393>`_.
214
215 Google Pub/Sub Transport
216 ------------------------
217
218 New support for Google Cloud Pub/Sub as a message transport, expanding
219 Celery's cloud integration options.
220
221 See :ref:`broker-gcpubsub` for complete documentation.
222
223 For the Google Pub/Sub support you have to install additional dependencies:
224
225 .. code-block:: console
226
227 $ pip install "celery[gcpubsub]"
228
229 Then configure your Celery application to use the Google Pub/Sub transport:
230
231 .. code-block:: python
232
233 broker_url = 'gcpubsub://projects/project-id'
234
235 Contributed by `@haimjether <https://github.com/haimjether>`_ in
236 `#9351 <https://github.com/celery/celery/pull/9351>`_.
237
238 Python 3.13 Support
239 -------------------
240
241 Official support for Python 3.13. All core dependencies have been
242 updated to ensure compatibility, including Kombu and py-amqp.
243
244 This release maintains compatibility with Python 3.8 through 3.13, as well as
245 PyPy 3.10+.
246
247 Contributed by `@Nusnus <https://github.com/Nusnus>`_ in
248 `#9309 <https://github.com/celery/celery/pull/9309>`_ and
249 `#9350 <https://github.com/celery/celery/pull/9350>`_.
250
251 REMAP_SIGTERM Support
252 ---------------------
253
254 The "REMAP_SIGTERM" feature, previously undocumented, has been tested, documented,
255 and is now officially supported. This feature allows you to remap the SIGTERM
256 signal to SIGQUIT, enabling you to initiate a soft or cold shutdown using TERM
257 instead of QUIT.
258
259 This is particularly useful in containerized environments where SIGTERM is the
260 standard signal for graceful termination.
261
262 See :ref:`Cold Shutdown documentation <worker-REMAP_SIGTERM>` for more info.
263
264 To enable this feature, set the environment variable:
265
266 .. code-block:: bash
267
268 export REMAP_SIGTERM="SIGQUIT"
269
270 Contributed by `@Nusnus <https://github.com/Nusnus>`_ in
271 `#9461 <https://github.com/celery/celery/pull/9461>`_.
272
273 Database Backend Improvements
274 -----------------------------
275
276 New ``create_tables_at_setup`` option for the database
277 backend. This option controls when database tables are created, allowing for
278 non-lazy table creation.
279
280 By default (``create_tables_at_setup=True``), tables are created during backend
281 initialization. Setting this to ``False`` defers table creation until they are
282 actually needed, which can be useful in certain deployment scenarios where you want
283 more control over database schema management.
284
285 See :ref:`conf-database-result-backend` for complete documentation.
286
287 Configuration:
288
289 .. code-block:: python
290
291 app.conf.result_backend = 'db+sqlite:///results.db'
292 app.conf.database_create_tables_at_setup = False
293
294 Contributed by `@MarcBresson <https://github.com/MarcBresson>`_ in
295 `#9228 <https://github.com/celery/celery/pull/9228>`_.
296
297 What's Changed
298 ~~~~~~~~~~~~~~
299
300 - (docs): use correct version celery v.5.4.x (#8975)
301 - Update mypy to 1.10.0 (#8977)
302 - Limit pymongo<4.7 when Python <= 3.10 due to breaking changes in 4.7 (#8988)
303 - Bump pytest from 8.1.1 to 8.2.0 (#8987)
304 - Update README to Include FastAPI in Framework Integration Section (#8978)
305 - Clarify return values of ..._on_commit methods (#8984)
306 - add kafka broker docs (#8935)
307 - Limit pymongo<4.7 regardless of Python version (#8999)
308 - Update pymongo[srv] requirement from <4.7,>=4.0.2 to >=4.0.2,<4.8 (#9000)
309 - Update elasticsearch requirement from <=8.13.0 to <=8.13.1 (#9004)
310 - security: SecureSerializer: support generic low-level serializers (#8982)
311 - don't kill if pid same as file (#8997) (#8998)
312 - Update cryptography to 42.0.6 (#9005)
313 - Bump cryptography from 42.0.6 to 42.0.7 (#9009)
314 - don't kill if pid same as file (#8997) (#8998) (#9007)
315 - Added -vv to unit, integration and smoke tests (#9014)
316 - SecuritySerializer: ensure pack separator will not be conflicted with serialized fields (#9010)
317 - Update sphinx-click to 5.2.2 (#9025)
318 - Bump sphinx-click from 5.2.2 to 6.0.0 (#9029)
319 - Fix a typo to display the help message in first-steps-with-django (#9036)
320 - Pinned requests to v2.31.0 due to docker-py bug #3256 (#9039)
321 - Fix certificate validity check (#9037)
322 - Revert "Pinned requests to v2.31.0 due to docker-py bug #3256" (#9043)
323 - Bump pytest from 8.2.0 to 8.2.1 (#9035)
324 - Update elasticsearch requirement from <=8.13.1 to <=8.13.2 (#9045)
325 - Fix detection of custom task set as class attribute with Django (#9038)
326 - Update elastic-transport requirement from <=8.13.0 to <=8.13.1 (#9050)
327 - Bump pycouchdb from 1.14.2 to 1.16.0 (#9052)
328 - Update pytest to 8.2.2 (#9060)
329 - Bump cryptography from 42.0.7 to 42.0.8 (#9061)
330 - Update elasticsearch requirement from <=8.13.2 to <=8.14.0 (#9069)
331 - [enhance feature] Crontab schedule: allow using month names (#9068)
332 - Enhance tox environment: [testenv:clean] (#9072)
333 - Clarify docs about Reserve one task at a time (#9073)
334 - GCS docs fixes (#9075)
335 - Use hub.remove_writer instead of hub.remove for write fds (#4185) (#9055)
336 - Class method to process crontab string (#9079)
337 - Fixed smoke tests env bug when using integration tasks that rely on Redis (#9090)
338 - Bugfix - a task will run multiple times when chaining chains with groups (#9021)
339 - Bump mypy from 1.10.0 to 1.10.1 (#9096)
340 - Don't add a separator to global_keyprefix if it already has one (#9080)
341 - Update pymongo[srv] requirement from <4.8,>=4.0.2 to >=4.0.2,<4.9 (#9111)
342 - Added missing import in examples for Django (#9099)
343 - Bump Kombu to v5.4.0rc1 (#9117)
344 - Removed skipping Redis in t/smoke/tests/test_consumer.py tests (#9118)
345 - Update pytest-subtests to 0.13.0 (#9120)
346 - Increased smoke tests CI timeout (#9122)
347 - Bump Kombu to v5.4.0rc2 (#9127)
348 - Update zstandard to 0.23.0 (#9129)
349 - Update pytest-subtests to 0.13.1 (#9130)
350 - Changed retry to tenacity in smoke tests (#9133)
351 - Bump mypy from 1.10.1 to 1.11.0 (#9135)
352 - Update cryptography to 43.0.0 (#9138)
353 - Update pytest to 8.3.1 (#9137)
354 - Added support for Quorum Queues (#9121)
355 - Bump Kombu to v5.4.0rc3 (#9139)
356 - Cleanup in Changelog.rst (#9141)
357 - Update Django docs for CELERY_CACHE_BACKEND (#9143)
358 - Added missing docs to previous releases (#9144)
359 - Fixed a few documentation build warnings (#9145)
360 - docs(README): link invalid (#9148)
361 - Prepare for (pre) release: v5.5.0b1 (#9146)
362 - Bump pytest from 8.3.1 to 8.3.2 (#9153)
363 - Remove setuptools deprecated test command from setup.py (#9159)
364 - Pin pre-commit to latest version 3.8.0 from Python 3.9 (#9156)
365 - Bump mypy from 1.11.0 to 1.11.1 (#9164)
366 - Change "docker-compose" to "docker compose" in Makefile (#9169)
367 - update python versions and docker compose (#9171)
368 - Add support for Pydantic model validation/serialization (fixes #8751) (#9023)
369 - Allow local dynamodb to be installed on another host than localhost (#8965)
370 - Terminate job implementation for gevent concurrency backend (#9083)
371 - Bump Kombu to v5.4.0 (#9177)
372 - Add check for soft_time_limit and time_limit values (#9173)
373 - Prepare for (pre) release: v5.5.0b2 (#9178)
374 - Added SQS (localstack) broker to canvas smoke tests (#9179)
375 - Pin elastic-transport to <= latest version 8.15.0 (#9182)
376 - Update elasticsearch requirement from <=8.14.0 to <=8.15.0 (#9186)
377 - improve formatting (#9188)
378 - Add basic helm chart for celery (#9181)
379 - Update kafka.rst (#9194)
380 - Update pytest-order to 1.3.0 (#9198)
381 - Update mypy to 1.11.2 (#9206)
382 - all added to routes (#9204)
383 - Fix typos discovered by codespell (#9212)
384 - Use tzdata extras with zoneinfo backports (#8286)
385 - Use `docker compose` in Contributing's doc build section (#9219)
386 - Failing test for issue #9119 (#9215)
387 - Fix date_done timezone issue (#8385)
388 - CI Fixes to smoke tests (#9223)
389 - fix: passes current request context when pushing to request_stack (#9208)
390 - Fix broken link in the Using RabbitMQ docs page (#9226)
391 - Added Soft Shutdown Mechanism (#9213)
392 - Added worker_enable_soft_shutdown_on_idle (#9231)
393 - Bump cryptography from 43.0.0 to 43.0.1 (#9233)
394 - Added docs regarding the relevancy of soft shutdown and ETA tasks (#9238)
395 - Show broker_connection_retry_on_startup warning only if it evaluates as False (#9227)
396 - Fixed docker-docs CI failure (#9240)
397 - Added docker cleanup auto-fixture to improve smoke tests stability (#9243)
398 - print is not thread-safe, so should not be used in signal handler (#9222)
399 - Prepare for (pre) release: v5.5.0b3 (#9244)
400 - Correct the error description in exception message when validate soft_time_limit (#9246)
401 - Update msgpack to 1.1.0 (#9249)
402 - chore(utils/time.py): rename `_is_ambigious` -> `_is_ambiguous` (#9248)
403 - Reduced Smoke Tests to min/max supported python (3.8/3.12) (#9252)
404 - Update pytest to 8.3.3 (#9253)
405 - Update elasticsearch requirement from <=8.15.0 to <=8.15.1 (#9255)
406 - update mongodb without deprecated `[srv]` extra requirement (#9258)
407 - blacksmith.sh: Migrate workflows to Blacksmith (#9261)
408 - Fixes #9119: inject dispatch_uid for retry-wrapped receivers (#9247)
409 - Run all smoke tests CI jobs together (#9263)
410 - Improve documentation on visibility timeout (#9264)
411 - Bump pytest-celery to 1.1.2 (#9267)
412 - Added missing "app.conf.visibility_timeout" in smoke tests (#9266)
413 - Improved stability with t/smoke/tests/test_consumer.py (#9268)
414 - Improved Redis container stability in the smoke tests (#9271)
415 - Disabled EXHAUST_MEMORY tests in Smoke-tasks (#9272)
416 - Marked xfail for test_reducing_prefetch_count with Redis - flaky test (#9273)
417 - Fixed pypy unit tests random failures in the CI (#9275)
418 - Fixed more pypy unit tests random failures in the CI (#9278)
419 - Fix Redis container from aborting randomly (#9276)
420 - Run Integration & Smoke CI tests together after unit tests passes (#9280)
421 - Added "loglevel verbose" to Redis containers in smoke tests (#9282)
422 - Fixed Redis error in the smoke tests: "Possible SECURITY ATTACK detected" (#9284)
423 - Refactored the smoke tests github workflow (#9285)
424 - Increased --reruns 3->4 in smoke tests (#9286)
425 - Improve stability of smoke tests (CI and Local) (#9287)
426 - Fixed Smoke tests CI "test-case" lables (specific instead of general) (#9288)
427 - Use assert_log_exists instead of wait_for_log in worker smoke tests (#9290)
428 - Optimized t/smoke/tests/test_worker.py (#9291)
429 - Enable smoke tests dockers check before each test starts (#9292)
430 - Relaxed smoke tests flaky tests mechanism (#9293)
431 - Updated quorum queue detection to handle multiple broker instances (#9294)
432 - Non-lazy table creation for database backend (#9228)
433 - Pin pymongo to latest version 4.9 (#9297)
434 - Bump pymongo from 4.9 to 4.9.1 (#9298)
435 - Bump Kombu to v5.4.2 (#9304)
436 - Use rabbitmq:3 in stamping smoke tests (#9307)
437 - Bump pytest-celery to 1.1.3 (#9308)
438 - Added Python 3.13 Support (#9309)
439 - Add log when global qos is disabled (#9296)
440 - Added official release docs (whatsnew) for v5.5 (#9312)
441 - Enable Codespell autofix (#9313)
442 - Pydantic typehints: Fix optional, allow generics (#9319)
443 - Prepare for (pre) release: v5.5.0b4 (#9322)
444 - Added Blacksmith.sh to the Sponsors section in the README (#9323)
445 - Revert "Added Blacksmith.sh to the Sponsors section in the README" (#9324)
446 - Added Blacksmith.sh to the Sponsors section in the README (#9325)
447 - Added missing " |oc-sponsor-3|” in README (#9326)
448 - Use Blacksmith SVG logo (#9327)
449 - Updated Blacksmith SVG logo (#9328)
450 - Revert "Updated Blacksmith SVG logo" (#9329)
451 - Update pymongo to 4.10.0 (#9330)
452 - Update pymongo to 4.10.1 (#9332)
453 - Update user guide to recommend delay_on_commit (#9333)
454 - Pin pre-commit to latest version 4.0.0 (Python 3.9+) (#9334)
455 - Update ephem to 4.1.6 (#9336)
456 - Updated Blacksmith SVG logo (#9337)
457 - Prepare for (pre) release: v5.5.0rc1 (#9341)
458 - Fix: Treat dbm.error as a corrupted schedule file (#9331)
459 - Pin pre-commit to latest version 4.0.1 (#9343)
460 - Added Python 3.13 to Dockerfiles (#9350)
461 - Skip test_pool_restart_import_modules on PyPy due to test issue (#9352)
462 - Update elastic-transport requirement from <=8.15.0 to <=8.15.1 (#9347)
463 - added dragonfly logo (#9353)
464 - Update README.rst (#9354)
465 - Update README.rst (#9355)
466 - Update mypy to 1.12.0 (#9356)
467 - Bump Kombu to v5.5.0rc1 (#9357)
468 - Fix `celery --loader` option parsing (#9361)
469 - Add support for Google Pub/Sub transport (#9351)
470 - Add native incr support for GCSBackend (#9302)
471 - fix(perform_pending_operations): prevent task duplication on shutdown… (#9348)
472 - Update grpcio to 1.67.0 (#9365)
473 - Update google-cloud-firestore to 2.19.0 (#9364)
474 - Annotate celery/utils/timer2.py (#9362)
475 - Update cryptography to 43.0.3 (#9366)
476 - Update mypy to 1.12.1 (#9368)
477 - Bump mypy from 1.12.1 to 1.13.0 (#9373)
478 - Pass timeout and confirm_timeout to producer.publish() (#9374)
479 - Bump Kombu to v5.5.0rc2 (#9382)
480 - Bump pytest-cov from 5.0.0 to 6.0.0 (#9388)
481 - default strict to False for pydantic tasks (#9393)
482 - Only log that global QoS is disabled if using amqp (#9395)
483 - chore: update sponsorship logo (#9398)
484 - Allow custom hostname for celery_worker in celery.contrib.pytest / celery.contrib.testing.worker (#9405)
485 - Removed docker-docs from CI (optional job, malfunctioning) (#9406)
486 - Added a utility to format changelogs from the auto-generated GitHub release notes (#9408)
487 - Bump codecov/codecov-action from 4 to 5 (#9412)
488 - Update elasticsearch requirement from <=8.15.1 to <=8.16.0 (#9410)
489 - Native Delayed Delivery in RabbitMQ (#9207)
490 - Prepare for (pre) release: v5.5.0rc2 (#9416)
491 - Document usage of broker_native_delayed_delivery_queue_type (#9419)
492 - Adjust section in what's new document regarding quorum queues support (#9420)
493 - Update pytest-rerunfailures to 15.0 (#9422)
494 - Document group unrolling (#9421)
495 - fix small typo acces -> access (#9434)
496 - Update cryptography to 44.0.0 (#9437)
497 - Added pypy to Dockerfile (#9438)
498 - Skipped flaky tests on pypy (all pass after ~10 reruns) (#9439)
499 - Allowing managed credentials for azureblockblob (#9430)
500 - Allow passing Celery objects to the Click entry point (#9426)
501 - support Request termination for gevent (#9440)
502 - Prevent event_mask from being overwritten. (#9432)
503 - Update pytest to 8.3.4 (#9444)
504 - Prepare for (pre) release: v5.5.0rc3 (#9450)
505 - Bugfix: SIGQUIT not initiating cold shutdown when `task_acks_late=False` (#9461)
506 - Fixed pycurl dep with Python 3.8 (#9471)
507 - Update elasticsearch requirement from <=8.16.0 to <=8.17.0 (#9469)
508 - Bump pytest-subtests from 0.13.1 to 0.14.1 (#9459)
509 - documentation: Added a type annotation to the periodic task example (#9473)
510 - Prepare for (pre) release: v5.5.0rc4 (#9474)
511 - Bump mypy from 1.13.0 to 1.14.0 (#9476)
512 - Fix cassandra backend port settings not working (#9465)
513 - Unroll group when a group with a single item is chained using the | operator (#9456)
514 - fix(django): catch the right error when trying to close db connection (#9392)
515 - Replacing a task with a chain which contains a group now returns a result instead of hanging (#9484)
516 - Avoid using a group of one as it is now unrolled into a chain (#9510)
517 - Link to the correct IRC network (#9509)
518 - Bump pytest-github-actions-annotate-failures from 0.2.0 to 0.3.0 (#9504)
519 - Update canvas.rst to fix output result from chain object (#9502)
520 - Unauthorized Changes Cleanup (#9528)
521 - [RE-APPROVED] fix(django): catch the right error when trying to close db connection (#9529)
522 - [RE-APPROVED] Link to the correct IRC network (#9531)
523 - [RE-APPROVED] Update canvas.rst to fix output result from chain object (#9532)
524 - Update test-ci-base.txt (#9539)
525 - Update install-pyenv.sh (#9540)
526 - Update elasticsearch requirement from <=8.17.0 to <=8.17.1 (#9518)
527 - Bump google-cloud-firestore from 2.19.0 to 2.20.0 (#9493)
528 - Bump mypy from 1.14.0 to 1.14.1 (#9483)
529 - Update elastic-transport requirement from <=8.15.1 to <=8.17.0 (#9490)
530 - Update Dockerfile by adding missing Python version 3.13 (#9549)
531 - Fix typo for default of sig (#9495)
532 - fix(crontab): resolve constructor type conflicts (#9551)
533 - worker_max_memory_per_child: kilobyte is 1024 bytes (#9553)
534 - Fix formatting in quorum queue docs (#9555)
535 - Bump cryptography from 44.0.0 to 44.0.1 (#9556)
536 - Fix the send_task method when detecting if the native delayed delivery approach is available (#9552)
537 - Reverted PR #7814 & minor code improvement (#9494)
538 - Improved donation and sponsorship visibility (#9558)
539 - Updated the Getting Help section, replacing deprecated with new resources (#9559)
540 - Fixed django example (#9562)
541 - Bump Kombu to v5.5.0rc3 (#9564)
542 - Bump ephem from 4.1.6 to 4.2 (#9565)
543 - Bump pytest-celery to v1.2.0 (#9568)
544 - Remove dependency on `pycurl` (#9526)
545 - Set TestWorkController.__test__ (#9574)
546 - Fixed bug when revoking by stamped headers a stamp that does not exist (#9575)
547 - Canvas Stamping Doc Fixes (#9578)
548 - Bugfix: Chord with a chord in header doesn't invoke error callback on inner chord header failure (default config) (#9580)
549 - Prepare for (pre) release: v5.5.0rc5 (#9582)
550 - Bump google-cloud-firestore from 2.20.0 to 2.20.1 (#9584)
551 - Fix tests with Click 8.2 (#9590)
552 - Bump cryptography from 44.0.1 to 44.0.2 (#9591)
553 - Update elasticsearch requirement from <=8.17.1 to <=8.17.2 (#9594)
554 - Bump pytest from 8.3.4 to 8.3.5 (#9598)
555 - Refactored and Enhanced DelayedDelivery bootstep (#9599)
556 - Improve docs about acks_on_failure_or_timeout (#9577)
557 - Update SECURITY.md (#9609)
558 - remove flake8plus as not needed anymore (#9610)
559 - remove [bdist_wheel] universal = 0 from setup.cfg as not needed (#9611)
560 - remove importlib-metadata as not needed in python3.8 anymore (#9612)
561 - feat: define exception_safe_to_retry for redisbackend (#9614)
562 - Bump Kombu to v5.5.0 (#9615)
563 - Update elastic-transport requirement from <=8.17.0 to <=8.17.1 (#9616)
564 - [docs] fix first-steps (#9618)
565 - Revert "Improve docs about acks_on_failure_or_timeout" (#9606)
566 - Improve CI stability and performance (#9624)
567 - Improved explanation for Database transactions at user guide for tasks (#9617)
568 - update tests to use python 3.8 codes only (#9627)
569 - #9597: Ensure surpassing Hard Timeout limit when task_acks_on_failure_or_timeout is False rejects the task (#9626)
570 - Lock Kombu to v5.5.x (using urllib3 instead of pycurl) (#9632)
571 - Lock pytest-celery to v1.2.x (using urllib3 instead of pycurl) (#9633)
572 - Add Codecov Test Analytics (#9635)
573 - Bump Kombu to v5.5.2 (#9643)
574 - Prepare for release: v5.5.0 (#9644)
575
576 .. _version-5.5.0rc5:
577
578 5.5.0rc5
579 ========
580
581 :release-date: 2025-02-25
582 :release-by: Tomer Nosrati
583
584 Celery v5.5.0 Release Candidate 5 is now available for testing.
585 Please help us test this version and report any issues.
586
587 Key Highlights
588 ~~~~~~~~~~~~~~
589
590 See :ref:`whatsnew-5.5` or read the main highlights below.
591
592 Using Kombu 5.5.0rc3
593 --------------------
594
595 The minimum required Kombu version has been bumped to 5.5.0.
596 Kombu is currently at 5.5.0rc3.
597
598 Complete Quorum Queues Support
599 ------------------------------
600
601 A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
602
603 After upgrading to this version, please share your feedback on the quorum queues support.
604
605 Relevant Issues:
606 `#9207 <https://github.com/celery/celery/discussions/9207>`_,
607 `#6067 <https://github.com/celery/celery/discussions/6067>`_
608
609 - New :ref:`documentation <using-quorum-queues>`.
610 - New :setting:`broker_native_delayed_delivery_queue_type` configuration option.
611
612 New support for Google Pub/Sub transport
613 ----------------------------------------
614
615 After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
616
617 Relevant Issues:
618 `#9351 <https://github.com/celery/celery/pull/9351>`_
619
620 Python 3.13 Improved Support
621 ----------------------------
622
623 Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
624
625 Soft Shutdown
626 -------------
627
628 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
629 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
630 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
631
632 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
633 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
634 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
635 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
636
637 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
638 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
639 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
640 the worker exits completely.
641
642 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
643
644 Relevant Issues:
645 `#9213 <https://github.com/celery/celery/pull/9213>`_,
646 `#9231 <https://github.com/celery/celery/pull/9231>`_,
647 `#9238 <https://github.com/celery/celery/pull/9238>`_
648
649 - New :ref:`documentation <worker-stopping>` for each shutdown type.
650 - New :setting:`worker_soft_shutdown_timeout` configuration option.
651 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
652
653 REMAP_SIGTERM
654 -------------
655
656 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
657 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
658 instead of :sig:`QUIT`.
659
660 Pydantic Support
661 ----------------
662
663 This release introduces support for Pydantic models in Celery tasks.
664 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
665
666 After upgrading to this version, please share your feedback on the new Pydantic support.
667
668 Redis Broker Stability Improvements
669 -----------------------------------
670 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
671 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
672
673 After upgrading to this version, please share your feedback on the Redis broker stability.
674
675 Relevant Issues:
676 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
677 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
678 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
679 `#8384 <https://github.com/celery/celery/discussions/8384>`_
680
681 Quorum Queues Initial Support
682 -----------------------------
683 This release introduces the initial support for Quorum Queues with Celery.
684
685 See new configuration options for more details:
686
687 - :setting:`task_default_queue_type`
688 - :setting:`worker_detect_quorum_queues`
689
690 After upgrading to this version, please share your feedback on the Quorum Queues support.
691
692 Relevant Issues:
693 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
694 `#9121 <https://github.com/celery/celery/discussions/9121>`_
695
696 What's Changed
697 ~~~~~~~~~~~~~~
698
699 - Bump mypy from 1.13.0 to 1.14.0 (#9476)
700 - Fix cassandra backend port settings not working (#9465)
701 - Unroll group when a group with a single item is chained using the | operator (#9456)
702 - fix(django): catch the right error when trying to close db connection (#9392)
703 - Replacing a task with a chain which contains a group now returns a result instead of hanging (#9484)
704 - Avoid using a group of one as it is now unrolled into a chain (#9510)
705 - Link to the correct IRC network (#9509)
706 - Bump pytest-github-actions-annotate-failures from 0.2.0 to 0.3.0 (#9504)
707 - Update canvas.rst to fix output result from chain object (#9502)
708 - Unauthorized Changes Cleanup (#9528)
709 - [RE-APPROVED] fix(django): catch the right error when trying to close db connection (#9529)
710 - [RE-APPROVED] Link to the correct IRC network (#9531)
711 - [RE-APPROVED] Update canvas.rst to fix output result from chain object (#9532)
712 - Update test-ci-base.txt (#9539)
713 - Update install-pyenv.sh (#9540)
714 - Update elasticsearch requirement from <=8.17.0 to <=8.17.1 (#9518)
715 - Bump google-cloud-firestore from 2.19.0 to 2.20.0 (#9493)
716 - Bump mypy from 1.14.0 to 1.14.1 (#9483)
717 - Update elastic-transport requirement from <=8.15.1 to <=8.17.0 (#9490)
718 - Update Dockerfile by adding missing Python version 3.13 (#9549)
719 - Fix typo for default of sig (#9495)
720 - fix(crontab): resolve constructor type conflicts (#9551)
721 - worker_max_memory_per_child: kilobyte is 1024 bytes (#9553)
722 - Fix formatting in quorum queue docs (#9555)
723 - Bump cryptography from 44.0.0 to 44.0.1 (#9556)
724 - Fix the send_task method when detecting if the native delayed delivery approach is available (#9552)
725 - Reverted PR #7814 & minor code improvement (#9494)
726 - Improved donation and sponsorship visibility (#9558)
727 - Updated the Getting Help section, replacing deprecated with new resources (#9559)
728 - Fixed django example (#9562)
729 - Bump Kombu to v5.5.0rc3 (#9564)
730 - Bump ephem from 4.1.6 to 4.2 (#9565)
731 - Bump pytest-celery to v1.2.0 (#9568)
732 - Remove dependency on `pycurl` (#9526)
733 - Set TestWorkController.__test__ (#9574)
734 - Fixed bug when revoking by stamped headers a stamp that does not exist (#9575)
735 - Canvas Stamping Doc Fixes (#9578)
736 - Bugfix: Chord with a chord in header doesn't invoke error callback on inner chord header failure (default config) (#9580)
737 - Prepare for (pre) release: v5.5.0rc5 (#9582)
738
739 .. _version-5.5.0rc4:
740
741 5.5.0rc4
742 ========
743
744 :release-date: 2024-12-19
745 :release-by: Tomer Nosrati
746
747 Celery v5.5.0 Release Candidate 4 is now available for testing.
748 Please help us test this version and report any issues.
749
750 Key Highlights
751 ~~~~~~~~~~~~~~
752
753 See :ref:`whatsnew-5.5` or read the main highlights below.
754
755 Using Kombu 5.5.0rc2
756 --------------------
757
758 The minimum required Kombu version has been bumped to 5.5.0.
759 Kombu is current at 5.5.0rc2.
760
761 Complete Quorum Queues Support
762 ------------------------------
763
764 A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
765
766 After upgrading to this version, please share your feedback on the quorum queues support.
767
768 Relevant Issues:
769 `#9207 <https://github.com/celery/celery/discussions/9207>`_,
770 `#6067 <https://github.com/celery/celery/discussions/6067>`_
771
772 - New :ref:`documentation <using-quorum-queues>`.
773 - New :setting:`broker_native_delayed_delivery_queue_type` configuration option.
774
775 New support for Google Pub/Sub transport
776 ----------------------------------------
777
778 After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
779
780 Relevant Issues:
781 `#9351 <https://github.com/celery/celery/pull/9351>`_
782
783 Python 3.13 Improved Support
784 ----------------------------
785
786 Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
787
788 Soft Shutdown
789 -------------
790
791 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
792 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
793 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
794
795 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
796 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
797 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
798 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
799
800 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
801 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
802 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
803 the worker exits completely.
804
805 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
806
807 Relevant Issues:
808 `#9213 <https://github.com/celery/celery/pull/9213>`_,
809 `#9231 <https://github.com/celery/celery/pull/9231>`_,
810 `#9238 <https://github.com/celery/celery/pull/9238>`_
811
812 - New :ref:`documentation <worker-stopping>` for each shutdown type.
813 - New :setting:`worker_soft_shutdown_timeout` configuration option.
814 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
815
816 REMAP_SIGTERM
817 -------------
818
819 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
820 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
821 instead of :sig:`QUIT`.
822
823 Pydantic Support
824 ----------------
825
826 This release introduces support for Pydantic models in Celery tasks.
827 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
828
829 After upgrading to this version, please share your feedback on the new Pydantic support.
830
831 Redis Broker Stability Improvements
832 -----------------------------------
833 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
834 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
835
836 After upgrading to this version, please share your feedback on the Redis broker stability.
837
838 Relevant Issues:
839 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
840 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
841 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
842 `#8384 <https://github.com/celery/celery/discussions/8384>`_
843
844 Quorum Queues Initial Support
845 -----------------------------
846 This release introduces the initial support for Quorum Queues with Celery.
847
848 See new configuration options for more details:
849
850 - :setting:`task_default_queue_type`
851 - :setting:`worker_detect_quorum_queues`
852
853 After upgrading to this version, please share your feedback on the Quorum Queues support.
854
855 Relevant Issues:
856 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
857 `#9121 <https://github.com/celery/celery/discussions/9121>`_
858
859 What's Changed
860 ~~~~~~~~~~~~~~
861
862 - Bugfix: SIGQUIT not initiating cold shutdown when `task_acks_late=False` (#9461)
863 - Fixed pycurl dep with Python 3.8 (#9471)
864 - Update elasticsearch requirement from <=8.16.0 to <=8.17.0 (#9469)
865 - Bump pytest-subtests from 0.13.1 to 0.14.1 (#9459)
866 - documentation: Added a type annotation to the periodic task example (#9473)
867 - Prepare for (pre) release: v5.5.0rc4 (#9474)
868
869 .. _version-5.5.0rc3:
870
871 5.5.0rc3
872 ========
873
874 :release-date: 2024-12-03
875 :release-by: Tomer Nosrati
876
877 Celery v5.5.0 Release Candidate 3 is now available for testing.
878 Please help us test this version and report any issues.
879
880 Key Highlights
881 ~~~~~~~~~~~~~~
882
883 See :ref:`whatsnew-5.5` or read the main highlights below.
884
885 Using Kombu 5.5.0rc2
886 --------------------
887
888 The minimum required Kombu version has been bumped to 5.5.0.
889 Kombu is current at 5.5.0rc2.
890
891 Complete Quorum Queues Support
892 ------------------------------
893
894 A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
895
896 After upgrading to this version, please share your feedback on the quorum queues support.
897
898 Relevant Issues:
899 `#9207 <https://github.com/celery/celery/discussions/9207>`_,
900 `#6067 <https://github.com/celery/celery/discussions/6067>`_
901
902 - New :ref:`documentation <using-quorum-queues>`.
903 - New :setting:`broker_native_delayed_delivery_queue_type` configuration option.
904
905 New support for Google Pub/Sub transport
906 ----------------------------------------
907
908 After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
909
910 Relevant Issues:
911 `#9351 <https://github.com/celery/celery/pull/9351>`_
912
913 Python 3.13 Improved Support
914 ----------------------------
915
916 Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
917
918 Soft Shutdown
919 -------------
920
921 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
922 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
923 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
924
925 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
926 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
927 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
928 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
929
930 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
931 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
932 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
933 the worker exits completely.
934
935 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
936
937 Relevant Issues:
938 `#9213 <https://github.com/celery/celery/pull/9213>`_,
939 `#9231 <https://github.com/celery/celery/pull/9231>`_,
940 `#9238 <https://github.com/celery/celery/pull/9238>`_
941
942 - New :ref:`documentation <worker-stopping>` for each shutdown type.
943 - New :setting:`worker_soft_shutdown_timeout` configuration option.
944 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
945
946 REMAP_SIGTERM
947 -------------
948
949 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
950 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
951 instead of :sig:`QUIT`.
952
953 Pydantic Support
954 ----------------
955
956 This release introduces support for Pydantic models in Celery tasks.
957 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
958
959 After upgrading to this version, please share your feedback on the new Pydantic support.
960
961 Redis Broker Stability Improvements
962 -----------------------------------
963 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
964 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
965
966 After upgrading to this version, please share your feedback on the Redis broker stability.
967
968 Relevant Issues:
969 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
970 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
971 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
972 `#8384 <https://github.com/celery/celery/discussions/8384>`_
973
974 Quorum Queues Initial Support
975 -----------------------------
976 This release introduces the initial support for Quorum Queues with Celery.
977
978 See new configuration options for more details:
979
980 - :setting:`task_default_queue_type`
981 - :setting:`worker_detect_quorum_queues`
982
983 After upgrading to this version, please share your feedback on the Quorum Queues support.
984
985 Relevant Issues:
986 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
987 `#9121 <https://github.com/celery/celery/discussions/9121>`_
988
989 What's Changed
990 ~~~~~~~~~~~~~~
991
992 - Document usage of broker_native_delayed_delivery_queue_type (#9419)
993 - Adjust section in what's new document regarding quorum queues support (#9420)
994 - Update pytest-rerunfailures to 15.0 (#9422)
995 - Document group unrolling (#9421)
996 - fix small typo acces -> access (#9434)
997 - Update cryptography to 44.0.0 (#9437)
998 - Added pypy to Dockerfile (#9438)
999 - Skipped flaky tests on pypy (all pass after ~10 reruns) (#9439)
1000 - Allowing managed credentials for azureblockblob (#9430)
1001 - Allow passing Celery objects to the Click entry point (#9426)
1002 - support Request termination for gevent (#9440)
1003 - Prevent event_mask from being overwritten. (#9432)
1004 - Update pytest to 8.3.4 (#9444)
1005 - Prepare for (pre) release: v5.5.0rc3 (#9450)
1006
1007 .. _version-5.5.0rc2:
1008
1009 5.5.0rc2
1010 ========
1011
1012 :release-date: 2024-11-18
1013 :release-by: Tomer Nosrati
1014
1015 Celery v5.5.0 Release Candidate 2 is now available for testing.
1016 Please help us test this version and report any issues.
1017
1018 Key Highlights
1019 ~~~~~~~~~~~~~~
1020
1021 See :ref:`whatsnew-5.5` or read the main highlights below.
1022
1023 Using Kombu 5.5.0rc2
1024 --------------------
1025
1026 The minimum required Kombu version has been bumped to 5.5.0.
1027 Kombu is current at 5.5.0rc2.
1028
1029 Complete Quorum Queues Support
1030 ------------------------------
1031
1032 A completely new ETA mechanism was developed to allow full support with RabbitMQ Quorum Queues.
1033
1034 After upgrading to this version, please share your feedback on the quorum queues support.
1035
1036 Relevant Issues:
1037 `#9207 <https://github.com/celery/celery/discussions/9207>`_,
1038 `#6067 <https://github.com/celery/celery/discussions/6067>`_
1039
1040 - New :ref:`documentation <using-quorum-queues>`.
1041 - New :setting:`broker_native_delayed_delivery_queue_type` configuration option.
1042
1043 New support for Google Pub/Sub transport
1044 ----------------------------------------
1045
1046 After upgrading to this version, please share your feedback on the Google Pub/Sub transport support.
1047
1048 Relevant Issues:
1049 `#9351 <https://github.com/celery/celery/pull/9351>`_
1050
1051 Python 3.13 Improved Support
1052 ----------------------------
1053
1054 Additional dependencies have been migrated successfully to Python 3.13, including Kombu and py-amqp.
1055
1056 Previous Pre-release Highlights
1057 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1058
1059 Python 3.13 Initial Support
1060 ---------------------------
1061
1062 This release introduces the initial support for Python 3.13 with Celery.
1063
1064 After upgrading to this version, please share your feedback on the Python 3.13 support.
1065
1066 Soft Shutdown
1067 -------------
1068
1069 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1070 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1071 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1072
1073 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1074 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
1075 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1076 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1077
1078 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1079 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
1080 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1081 the worker exits completely.
1082
1083 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1084
1085 Relevant Issues:
1086 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1087 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1088 `#9238 <https://github.com/celery/celery/pull/9238>`_
1089
1090 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1091 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1092 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1093
1094 REMAP_SIGTERM
1095 -------------
1096
1097 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1098 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1099 instead of :sig:`QUIT`.
1100
1101 Pydantic Support
1102 ----------------
1103
1104 This release introduces support for Pydantic models in Celery tasks.
1105 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1106
1107 After upgrading to this version, please share your feedback on the new Pydantic support.
1108
1109 Redis Broker Stability Improvements
1110 -----------------------------------
1111 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1112 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1113
1114 After upgrading to this version, please share your feedback on the Redis broker stability.
1115
1116 Relevant Issues:
1117 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1118 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1119 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1120 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1121
1122 Quorum Queues Initial Support
1123 -----------------------------
1124 This release introduces the initial support for Quorum Queues with Celery.
1125
1126 See new configuration options for more details:
1127
1128 - :setting:`task_default_queue_type`
1129 - :setting:`worker_detect_quorum_queues`
1130
1131 After upgrading to this version, please share your feedback on the Quorum Queues support.
1132
1133 Relevant Issues:
1134 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1135 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1136
1137 What's Changed
1138 ~~~~~~~~~~~~~~
1139
1140 - Fix: Treat dbm.error as a corrupted schedule file (#9331)
1141 - Pin pre-commit to latest version 4.0.1 (#9343)
1142 - Added Python 3.13 to Dockerfiles (#9350)
1143 - Skip test_pool_restart_import_modules on PyPy due to test issue (#9352)
1144 - Update elastic-transport requirement from <=8.15.0 to <=8.15.1 (#9347)
1145 - added dragonfly logo (#9353)
1146 - Update README.rst (#9354)
1147 - Update README.rst (#9355)
1148 - Update mypy to 1.12.0 (#9356)
1149 - Bump Kombu to v5.5.0rc1 (#9357)
1150 - Fix `celery --loader` option parsing (#9361)
1151 - Add support for Google Pub/Sub transport (#9351)
1152 - Add native incr support for GCSBackend (#9302)
1153 - fix(perform_pending_operations): prevent task duplication on shutdown… (#9348)
1154 - Update grpcio to 1.67.0 (#9365)
1155 - Update google-cloud-firestore to 2.19.0 (#9364)
1156 - Annotate celery/utils/timer2.py (#9362)
1157 - Update cryptography to 43.0.3 (#9366)
1158 - Update mypy to 1.12.1 (#9368)
1159 - Bump mypy from 1.12.1 to 1.13.0 (#9373)
1160 - Pass timeout and confirm_timeout to producer.publish() (#9374)
1161 - Bump Kombu to v5.5.0rc2 (#9382)
1162 - Bump pytest-cov from 5.0.0 to 6.0.0 (#9388)
1163 - default strict to False for pydantic tasks (#9393)
1164 - Only log that global QoS is disabled if using amqp (#9395)
1165 - chore: update sponsorship logo (#9398)
1166 - Allow custom hostname for celery_worker in celery.contrib.pytest / celery.contrib.testing.worker (#9405)
1167 - Removed docker-docs from CI (optional job, malfunctioning) (#9406)
1168 - Added a utility to format changelogs from the auto-generated GitHub release notes (#9408)
1169 - Bump codecov/codecov-action from 4 to 5 (#9412)
1170 - Update elasticsearch requirement from <=8.15.1 to <=8.16.0 (#9410)
1171 - Native Delayed Delivery in RabbitMQ (#9207)
1172 - Prepare for (pre) release: v5.5.0rc2 (#9416)
1173
1174 .. _version-5.5.0rc1:
1175
1176 5.5.0rc1
1177 ========
1178
1179 :release-date: 2024-10-08
1180 :release-by: Tomer Nosrati
1181
1182 Celery v5.5.0 Release Candidate 1 is now available for testing.
1183 Please help us test this version and report any issues.
1184
1185 Key Highlights
1186 ~~~~~~~~~~~~~~
1187
1188 See :ref:`whatsnew-5.5` or read main highlights below.
1189
1190 Python 3.13 Initial Support
1191 ---------------------------
1192
1193 This release introduces the initial support for Python 3.13 with Celery.
1194
1195 After upgrading to this version, please share your feedback on the Python 3.13 support.
1196
1197 Soft Shutdown
1198 -------------
1199
1200 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1201 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1202 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1203
1204 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1205 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
1206 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1207 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1208
1209 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1210 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
1211 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1212 the worker exits completely.
1213
1214 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1215
1216 Relevant Issues:
1217 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1218 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1219 `#9238 <https://github.com/celery/celery/pull/9238>`_
1220
1221 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1222 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1223 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1224
1225 REMAP_SIGTERM
1226 -------------
1227
1228 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1229 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1230 instead of :sig:`QUIT`.
1231
1232 Pydantic Support
1233 ----------------
1234
1235 This release introduces support for Pydantic models in Celery tasks.
1236 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1237
1238 After upgrading to this version, please share your feedback on the new Pydantic support.
1239
1240 Redis Broker Stability Improvements
1241 -----------------------------------
1242 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1243 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1244
1245 After upgrading to this version, please share your feedback on the Redis broker stability.
1246
1247 Relevant Issues:
1248 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1249 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1250 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1251 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1252
1253 Quorum Queues Initial Support
1254 -----------------------------
1255 This release introduces the initial support for Quorum Queues with Celery.
1256
1257 See new configuration options for more details:
1258
1259 - :setting:`task_default_queue_type`
1260 - :setting:`worker_detect_quorum_queues`
1261
1262 After upgrading to this version, please share your feedback on the Quorum Queues support.
1263
1264 Relevant Issues:
1265 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1266 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1267
1268 What's Changed
1269 ~~~~~~~~~~~~~~
1270
1271 - Added Blacksmith.sh to the Sponsors section in the README (#9323)
1272 - Revert "Added Blacksmith.sh to the Sponsors section in the README" (#9324)
1273 - Added Blacksmith.sh to the Sponsors section in the README (#9325)
1274 - Added missing " |oc-sponsor-3|” in README (#9326)
1275 - Use Blacksmith SVG logo (#9327)
1276 - Updated Blacksmith SVG logo (#9328)
1277 - Revert "Updated Blacksmith SVG logo" (#9329)
1278 - Update pymongo to 4.10.0 (#9330)
1279 - Update pymongo to 4.10.1 (#9332)
1280 - Update user guide to recommend delay_on_commit (#9333)
1281 - Pin pre-commit to latest version 4.0.0 (Python 3.9+) (#9334)
1282 - Update ephem to 4.1.6 (#9336)
1283 - Updated Blacksmith SVG logo (#9337)
1284 - Prepare for (pre) release: v5.5.0rc1 (#9341)
1285
1286 .. _version-5.5.0b4:
1287
1288 5.5.0b4
1289 =======
1290
1291 :release-date: 2024-09-30
1292 :release-by: Tomer Nosrati
1293
1294 Celery v5.5.0 Beta 4 is now available for testing.
1295 Please help us test this version and report any issues.
1296
1297 Key Highlights
1298 ~~~~~~~~~~~~~~
1299
1300 Python 3.13 Initial Support
1301 ---------------------------
1302
1303 This release introduces the initial support for Python 3.13 with Celery.
1304
1305 After upgrading to this version, please share your feedback on the Python 3.13 support.
1306
1307 Previous Pre-release Highlights
1308 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1309
1310 Soft Shutdown
1311 -------------
1312
1313 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1314 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1315 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1316
1317 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1318 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
1319 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1320 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1321
1322 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1323 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
1324 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1325 the worker exits completely.
1326
1327 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1328
1329 Relevant Issues:
1330 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1331 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1332 `#9238 <https://github.com/celery/celery/pull/9238>`_
1333
1334 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1335 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1336 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1337
1338 REMAP_SIGTERM
1339 -------------
1340
1341 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1342 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1343 instead of :sig:`QUIT`.
1344
1345 Pydantic Support
1346 ----------------
1347
1348 This release introduces support for Pydantic models in Celery tasks.
1349 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1350
1351 After upgrading to this version, please share your feedback on the new Pydantic support.
1352
1353 Redis Broker Stability Improvements
1354 -----------------------------------
1355 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1356 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1357
1358 After upgrading to this version, please share your feedback on the Redis broker stability.
1359
1360 Relevant Issues:
1361 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1362 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1363 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1364 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1365
1366 Quorum Queues Initial Support
1367 -----------------------------
1368 This release introduces the initial support for Quorum Queues with Celery.
1369
1370 See new configuration options for more details:
1371
1372 - :setting:`task_default_queue_type`
1373 - :setting:`worker_detect_quorum_queues`
1374
1375 After upgrading to this version, please share your feedback on the Quorum Queues support.
1376
1377 Relevant Issues:
1378 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1379 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1380
1381 What's Changed
1382 ~~~~~~~~~~~~~~
1383
1384 - Correct the error description in exception message when validate soft_time_limit (#9246)
1385 - Update msgpack to 1.1.0 (#9249)
1386 - chore(utils/time.py): rename `_is_ambigious` -> `_is_ambiguous` (#9248)
1387 - Reduced Smoke Tests to min/max supported python (3.8/3.12) (#9252)
1388 - Update pytest to 8.3.3 (#9253)
1389 - Update elasticsearch requirement from <=8.15.0 to <=8.15.1 (#9255)
1390 - Update mongodb without deprecated `[srv]` extra requirement (#9258)
1391 - blacksmith.sh: Migrate workflows to Blacksmith (#9261)
1392 - Fixes #9119: inject dispatch_uid for retry-wrapped receivers (#9247)
1393 - Run all smoke tests CI jobs together (#9263)
1394 - Improve documentation on visibility timeout (#9264)
1395 - Bump pytest-celery to 1.1.2 (#9267)
1396 - Added missing "app.conf.visibility_timeout" in smoke tests (#9266)
1397 - Improved stability with t/smoke/tests/test_consumer.py (#9268)
1398 - Improved Redis container stability in the smoke tests (#9271)
1399 - Disabled EXHAUST_MEMORY tests in Smoke-tasks (#9272)
1400 - Marked xfail for test_reducing_prefetch_count with Redis - flaky test (#9273)
1401 - Fixed pypy unit tests random failures in the CI (#9275)
1402 - Fixed more pypy unit tests random failures in the CI (#9278)
1403 - Fix Redis container from aborting randomly (#9276)
1404 - Run Integration & Smoke CI tests together after unit tests pass (#9280)
1405 - Added "loglevel verbose" to Redis containers in smoke tests (#9282)
1406 - Fixed Redis error in the smoke tests: "Possible SECURITY ATTACK detected" (#9284)
1407 - Refactored the smoke tests github workflow (#9285)
1408 - Increased --reruns 3->4 in smoke tests (#9286)
1409 - Improve stability of smoke tests (CI and Local) (#9287)
1410 - Fixed Smoke tests CI "test-case" labels (specific instead of general) (#9288)
1411 - Use assert_log_exists instead of wait_for_log in worker smoke tests (#9290)
1412 - Optimized t/smoke/tests/test_worker.py (#9291)
1413 - Enable smoke tests dockers check before each test starts (#9292)
1414 - Relaxed smoke tests flaky tests mechanism (#9293)
1415 - Updated quorum queue detection to handle multiple broker instances (#9294)
1416 - Non-lazy table creation for database backend (#9228)
1417 - Pin pymongo to latest version 4.9 (#9297)
1418 - Bump pymongo from 4.9 to 4.9.1 (#9298)
1419 - Bump Kombu to v5.4.2 (#9304)
1420 - Use rabbitmq:3 in stamping smoke tests (#9307)
1421 - Bump pytest-celery to 1.1.3 (#9308)
1422 - Added Python 3.13 Support (#9309)
1423 - Add log when global qos is disabled (#9296)
1424 - Added official release docs (whatsnew) for v5.5 (#9312)
1425 - Enable Codespell autofix (#9313)
1426 - Pydantic typehints: Fix optional, allow generics (#9319)
1427 - Prepare for (pre) release: v5.5.0b4 (#9322)
1428
1429 .. _version-5.5.0b3:
1430
1431 5.5.0b3
1432 =======
1433
1434 :release-date: 2024-09-08
1435 :release-by: Tomer Nosrati
1436
1437 Celery v5.5.0 Beta 3 is now available for testing.
1438 Please help us test this version and report any issues.
1439
1440 Key Highlights
1441 ~~~~~~~~~~~~~~
1442
1443 Soft Shutdown
1444 -------------
1445
1446 The soft shutdown is a new mechanism in Celery that sits between the warm shutdown and the cold shutdown.
1447 It sets a time limited "warm shutdown" period, during which the worker will continue to process tasks that are already running.
1448 After the soft shutdown ends, the worker will initiate a graceful cold shutdown, stopping all tasks and exiting.
1449
1450 The soft shutdown is disabled by default, and can be enabled by setting the new configuration option :setting:`worker_soft_shutdown_timeout`.
1451 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
1452 unless the new configuration option :setting:`worker_enable_soft_shutdown_on_idle` is set to True. This is useful for workers
1453 that are idle, waiting on ETA tasks to be executed that still want to enable the soft shutdown anyways.
1454
1455 The soft shutdown can replace the cold shutdown when using a broker with a visibility timeout mechanism, like :ref:`Redis <broker-redis>`
1456 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
1457 completed (e.g., ``Restoring 1 unacknowledged message(s)``) by resetting the visibility timeout of the unacknowledged messages just before
1458 the worker exits completely.
1459
1460 After upgrading to this version, please share your feedback on the new Soft Shutdown mechanism.
1461
1462 Relevant Issues:
1463 `#9213 <https://github.com/celery/celery/pull/9213>`_,
1464 `#9231 <https://github.com/celery/celery/pull/9231>`_,
1465 `#9238 <https://github.com/celery/celery/pull/9238>`_
1466
1467 - New :ref:`documentation <worker-stopping>` for each shutdown type.
1468 - New :setting:`worker_soft_shutdown_timeout` configuration option.
1469 - New :setting:`worker_enable_soft_shutdown_on_idle` configuration option.
1470
1471 REMAP_SIGTERM
1472 -------------
1473
1474 The ``REMAP_SIGTERM`` "hidden feature" has been tested, :ref:`documented <worker-REMAP_SIGTERM>` and is now officially supported.
1475 This feature allows users to remap the SIGTERM signal to SIGQUIT, to initiate a soft or a cold shutdown using :sig:`TERM`
1476 instead of :sig:`QUIT`.
1477
1478 Previous Pre-release Highlights
1479 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1480
1481 Pydantic Support
1482 ----------------
1483
1484 This release introduces support for Pydantic models in Celery tasks.
1485 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1486
1487 After upgrading to this version, please share your feedback on the new Pydantic support.
1488
1489 Redis Broker Stability Improvements
1490 -----------------------------------
1491 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1492 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1493
1494 After upgrading to this version, please share your feedback on the Redis broker stability.
1495
1496 Relevant Issues:
1497 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1498 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1499 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1500 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1501
1502 Quorum Queues Initial Support
1503 -----------------------------
1504 This release introduces the initial support for Quorum Queues with Celery.
1505
1506 See new configuration options for more details:
1507
1508 - :setting:`task_default_queue_type`
1509 - :setting:`worker_detect_quorum_queues`
1510
1511 After upgrading to this version, please share your feedback on the Quorum Queues support.
1512
1513 Relevant Issues:
1514 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1515 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1516
1517 What's Changed
1518 ~~~~~~~~~~~~~~
1519
1520 - Added SQS (localstack) broker to canvas smoke tests (#9179)
1521 - Pin elastic-transport to <= latest version 8.15.0 (#9182)
1522 - Update elasticsearch requirement from <=8.14.0 to <=8.15.0 (#9186)
1523 - Improve formatting (#9188)
1524 - Add basic helm chart for celery (#9181)
1525 - Update kafka.rst (#9194)
1526 - Update pytest-order to 1.3.0 (#9198)
1527 - Update mypy to 1.11.2 (#9206)
1528 - All added to routes (#9204)
1529 - Fix typos discovered by codespell (#9212)
1530 - Use tzdata extras with zoneinfo backports (#8286)
1531 - Use `docker compose` in Contributing's doc build section (#9219)
1532 - Failing test for issue #9119 (#9215)
1533 - Fix date_done timezone issue (#8385)
1534 - CI Fixes to smoke tests (#9223)
1535 - Fix: passes current request context when pushing to request_stack (#9208)
1536 - Fix broken link in the Using RabbitMQ docs page (#9226)
1537 - Added Soft Shutdown Mechanism (#9213)
1538 - Added worker_enable_soft_shutdown_on_idle (#9231)
1539 - Bump cryptography from 43.0.0 to 43.0.1 (#9233)
1540 - Added docs regarding the relevancy of soft shutdown and ETA tasks (#9238)
1541 - Show broker_connection_retry_on_startup warning only if it evaluates as False (#9227)
1542 - Fixed docker-docs CI failure (#9240)
1543 - Added docker cleanup auto-fixture to improve smoke tests stability (#9243)
1544 - print is not thread-safe, so should not be used in signal handler (#9222)
1545 - Prepare for (pre) release: v5.5.0b3 (#9244)
1546
1547 .. _version-5.5.0b2:
1548
1549 5.5.0b2
1550 =======
1551
1552 :release-date: 2024-08-06
1553 :release-by: Tomer Nosrati
1554
1555 Celery v5.5.0 Beta 2 is now available for testing.
1556 Please help us test this version and report any issues.
1557
1558 Key Highlights
1559 ~~~~~~~~~~~~~~
1560
1561 Pydantic Support
1562 ----------------
1563
1564 This release introduces support for Pydantic models in Celery tasks.
1565 For more info, see the new pydantic example and PR `#9023 <https://github.com/celery/celery/pull/9023>`_ by @mathiasertl.
1566
1567 After upgrading to this version, please share your feedback on the new Pydantic support.
1568
1569 Previous Beta Highlights
1570 ~~~~~~~~~~~~~~~~~~~~~~~~
1571
1572 Redis Broker Stability Improvements
1573 -----------------------------------
1574 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1575 in the v5.4.0 release of Kombu, which should resolve the disconnections bug and offer additional improvements.
1576
1577 After upgrading to this version, please share your feedback on the Redis broker stability.
1578
1579 Relevant Issues:
1580 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1581 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1582 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1583 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1584
1585 Quorum Queues Initial Support
1586 -----------------------------
1587 This release introduces the initial support for Quorum Queues with Celery.
1588
1589 See new configuration options for more details:
1590
1591 - :setting:`task_default_queue_type`
1592 - :setting:`worker_detect_quorum_queues`
1593
1594 After upgrading to this version, please share your feedback on the Quorum Queues support.
1595
1596 Relevant Issues:
1597 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1598 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1599
1600 What's Changed
1601 ~~~~~~~~~~~~~~
1602
1603 - Bump pytest from 8.3.1 to 8.3.2 (#9153)
1604 - Remove setuptools deprecated test command from setup.py (#9159)
1605 - Pin pre-commit to latest version 3.8.0 from Python 3.9 (#9156)
1606 - Bump mypy from 1.11.0 to 1.11.1 (#9164)
1607 - Change "docker-compose" to "docker compose" in Makefile (#9169)
1608 - update python versions and docker compose (#9171)
1609 - Add support for Pydantic model validation/serialization (fixes #8751) (#9023)
1610 - Allow local dynamodb to be installed on another host than localhost (#8965)
1611 - Terminate job implementation for gevent concurrency backend (#9083)
1612 - Bump Kombu to v5.4.0 (#9177)
1613 - Add check for soft_time_limit and time_limit values (#9173)
1614 - Prepare for (pre) release: v5.5.0b2 (#9178)
1615
1616 .. _version-5.5.0b1:
1617
1618 5.5.0b1
1619 =======
1620
1621 :release-date: 2024-07-24
1622 :release-by: Tomer Nosrati
1623
1624 Celery v5.5.0 Beta 1 is now available for testing.
1625 Please help us test this version and report any issues.
1626
1627 Key Highlights
1628 ~~~~~~~~~~~~~~
1629
1630 Redis Broker Stability Improvements
1631 -----------------------------------
1632 The root cause of the Redis broker instability issue has been `identified and resolved <https://github.com/celery/kombu/pull/2007>`_
1633 in the release-candidate for Kombu v5.4.0. This beta release has been upgraded to use the new
1634 Kombu RC version, which should resolve the disconnections bug and offer additional improvements.
1635
1636 After upgrading to this version, please share your feedback on the Redis broker stability.
1637
1638 Relevant Issues:
1639 `#7276 <https://github.com/celery/celery/discussions/7276>`_,
1640 `#8091 <https://github.com/celery/celery/discussions/8091>`_,
1641 `#8030 <https://github.com/celery/celery/discussions/8030>`_,
1642 `#8384 <https://github.com/celery/celery/discussions/8384>`_
1643
1644 Quorum Queues Initial Support
1645 -----------------------------
1646 This release introduces the initial support for Quorum Queues with Celery.
1647
1648 See new configuration options for more details:
1649
1650 - :setting:`task_default_queue_type`
1651 - :setting:`worker_detect_quorum_queues`
1652
1653 After upgrading to this version, please share your feedback on the Quorum Queues support.
1654
1655 Relevant Issues:
1656 `#6067 <https://github.com/celery/celery/discussions/6067>`_,
1657 `#9121 <https://github.com/celery/celery/discussions/9121>`_
1658
1659 What's Changed
1660 ~~~~~~~~~~~~~~
1661
1662 - (docs): use correct version celery v.5.4.x (#8975)
1663 - Update mypy to 1.10.0 (#8977)
1664 - Limit pymongo<4.7 when Python <= 3.10 due to breaking changes in 4.7 (#8988)
1665 - Bump pytest from 8.1.1 to 8.2.0 (#8987)
1666 - Update README to Include FastAPI in Framework Integration Section (#8978)
1667 - Clarify return values of ..._on_commit methods (#8984)
1668 - add kafka broker docs (#8935)
1669 - Limit pymongo<4.7 regardless of Python version (#8999)
1670 - Update pymongo[srv] requirement from <4.7,>=4.0.2 to >=4.0.2,<4.8 (#9000)
1671 - Update elasticsearch requirement from <=8.13.0 to <=8.13.1 (#9004)
1672 - security: SecureSerializer: support generic low-level serializers (#8982)
1673 - don't kill if pid same as file (#8997) (#8998)
1674 - Update cryptography to 42.0.6 (#9005)
1675 - Bump cryptography from 42.0.6 to 42.0.7 (#9009)
1676 - Added -vv to unit, integration and smoke tests (#9014)
1677 - SecuritySerializer: ensure pack separator will not be conflicted with serialized fields (#9010)
1678 - Update sphinx-click to 5.2.2 (#9025)
1679 - Bump sphinx-click from 5.2.2 to 6.0.0 (#9029)
1680 - Fix a typo to display the help message in first-steps-with-django (#9036)
1681 - Pinned requests to v2.31.0 due to docker-py bug #3256 (#9039)
1682 - Fix certificate validity check (#9037)
1683 - Revert "Pinned requests to v2.31.0 due to docker-py bug #3256" (#9043)
1684 - Bump pytest from 8.2.0 to 8.2.1 (#9035)
1685 - Update elasticsearch requirement from <=8.13.1 to <=8.13.2 (#9045)
1686 - Fix detection of custom task set as class attribute with Django (#9038)
1687 - Update elastic-transport requirement from <=8.13.0 to <=8.13.1 (#9050)
1688 - Bump pycouchdb from 1.14.2 to 1.16.0 (#9052)
1689 - Update pytest to 8.2.2 (#9060)
1690 - Bump cryptography from 42.0.7 to 42.0.8 (#9061)
1691 - Update elasticsearch requirement from <=8.13.2 to <=8.14.0 (#9069)
1692 - [enhance feature] Crontab schedule: allow using month names (#9068)
1693 - Enhance tox environment: [testenv:clean] (#9072)
1694 - Clarify docs about Reserve one task at a time (#9073)
1695 - GCS docs fixes (#9075)
1696 - Use hub.remove_writer instead of hub.remove for write fds (#4185) (#9055)
1697 - Class method to process crontab string (#9079)
1698 - Fixed smoke tests env bug when using integration tasks that rely on Redis (#9090)
1699 - Bugfix - a task will run multiple times when chaining chains with groups (#9021)
1700 - Bump mypy from 1.10.0 to 1.10.1 (#9096)
1701 - Don't add a separator to global_keyprefix if it already has one (#9080)
1702 - Update pymongo[srv] requirement from <4.8,>=4.0.2 to >=4.0.2,<4.9 (#9111)
1703 - Added missing import in examples for Django (#9099)
1704 - Bump Kombu to v5.4.0rc1 (#9117)
1705 - Removed skipping Redis in t/smoke/tests/test_consumer.py tests (#9118)
1706 - Update pytest-subtests to 0.13.0 (#9120)
1707 - Increased smoke tests CI timeout (#9122)
1708 - Bump Kombu to v5.4.0rc2 (#9127)
1709 - Update zstandard to 0.23.0 (#9129)
1710 - Update pytest-subtests to 0.13.1 (#9130)
1711 - Changed retry to tenacity in smoke tests (#9133)
1712 - Bump mypy from 1.10.1 to 1.11.0 (#9135)
1713 - Update cryptography to 43.0.0 (#9138)
1714 - Update pytest to 8.3.1 (#9137)
1715 - Added support for Quorum Queues (#9121)
1716 - Bump Kombu to v5.4.0rc3 (#9139)
1717 - Cleanup in Changelog.rst (#9141)
1718 - Update Django docs for CELERY_CACHE_BACKEND (#9143)
1719 - Added missing docs to previous releases (#9144)
1720 - Fixed a few documentation build warnings (#9145)
1721 - docs(README): link invalid (#9148)
1722 - Prepare for (pre) release: v5.5.0b1 (#9146)