1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
|
.. _whatsnew-5.4:
=========================================
What's new in Celery 5.4 (Opalescent)
=========================================
:Author: Tomer Nosrati (``tomer.nosrati at gmail.com``).
.. sidebar:: Change history
What's new documents describe the changes in major versions,
we also have a :ref:`changelog` that lists the changes in bugfix
releases (0.0.x), while older series are archived under the :ref:`history`
section.
Celery is a simple, flexible, and reliable distributed programming framework
to process vast amounts of messages, while providing operations with
the tools required to maintain a distributed system with python.
It's a task queue with focus on real-time processing, while also
supporting task scheduling.
Celery has a large and diverse community of users and contributors,
you should come join us :ref:`on IRC <irc-channel>`
or :ref:`our mailing-list <mailing-list>`.
.. note::
Following the problems with Freenode, we migrated our IRC channel to Libera Chat
as most projects did.
You can also join us using `Gitter <https://gitter.im/celery/celery>`_.
We're sometimes there to answer questions. We welcome you to join.
To read more about Celery you should go read the :ref:`introduction <intro>`.
While this version is **mostly** backward compatible with previous versions
it's important that you read the following section as this release
is a new major version.
This version is officially supported on CPython 3.8, 3.9 & 3.10
and is also supported on PyPy3.8+.
.. _`website`: https://docs.celeryq.dev/en/stable/
.. topic:: Table of Contents
Make sure you read the important notes before upgrading to this version.
.. contents::
:local:
:depth: 2
Preface
=======
.. note::
**This release contains fixes for many long standing bugs & stability issues.
We encourage our users to upgrade to this release as soon as possible.**
The 5.4.0 release is a new feature release for Celery.
Releases in the 5.x series are codenamed after songs of `Jon Hopkins <https://en.wikipedia.org/wiki/Jon_Hopkins>`_.
This release has been codenamed `Opalescent <https://www.youtube.com/watch?v=9ByfK25WsMM>`_.
From now on we only support Python 3.8 and above.
We will maintain compatibility with Python 3.8 until it's
EOL in 2024.
*— Tomer Nosrati*
Long Term Support Policy
------------------------
We no longer support Celery 4.x as we don't have the resources to do so.
If you'd like to help us, all contributions are welcome.
Celery 5.x **is not** an LTS release. We will support it until the release
of Celery 6.x.
We're in the process of defining our Long Term Support policy.
Watch the next "What's New" document for updates.
Wall of Contributors
--------------------
.. note::
This wall was automatically generated from git history,
so sadly it doesn't not include the people who help with more important
things like answering mailing-list questions.
Upgrading from Celery 4.x
=========================
Step 1: Adjust your command line invocation
-------------------------------------------
Celery 5.0 introduces a new CLI implementation which isn't completely backwards compatible.
The global options can no longer be positioned after the sub-command.
Instead, they must be positioned as an option for the `celery` command like so::
celery --app path.to.app worker
If you were using our :ref:`daemonizing` guide to deploy Celery in production,
you should revisit it for updates.
Step 2: Update your configuration with the new setting names
------------------------------------------------------------
If you haven't already updated your configuration when you migrated to Celery 4.0,
please do so now.
We elected to extend the deprecation period until 6.0 since
we did not loudly warn about using these deprecated settings.
Please refer to the :ref:`migration guide <conf-old-settings-map>` for instructions.
Step 3: Read the important notes in this document
-------------------------------------------------
Make sure you are not affected by any of the important upgrade notes
mentioned in the :ref:`following section <v500-important>`.
You should verify that none of the breaking changes in the CLI
do not affect you. Please refer to :ref:`New Command Line Interface <new_command_line_interface>` for details.
Step 4: Migrate your code to Python 3
-------------------------------------
Celery 5.x only supports Python 3. Therefore, you must ensure your code is
compatible with Python 3.
If you haven't ported your code to Python 3, you must do so before upgrading.
You can use tools like `2to3 <https://docs.python.org/3.8/library/2to3.html>`_
and `pyupgrade <https://github.com/asottile/pyupgrade>`_ to assist you with
this effort.
After the migration is done, run your test suite with Celery 4 to ensure
nothing has been broken.
Step 5: Upgrade to Celery 5.4
-----------------------------
At this point you can upgrade your workers and clients with the new version.
.. _v540-important:
Important Notes
===============
Supported Python Versions
-------------------------
The supported Python versions are:
- CPython 3.8
- CPython 3.9
- CPython 3.10
- PyPy3.8 7.3.11 (``pypy3``)
Experimental support
~~~~~~~~~~~~~~~~~~~~
Celery supports these Python versions provisionally as they are not production
ready yet:
- CPython 3.11
Quality Improvements and Stability Enhancements
-----------------------------------------------
Celery 5.4 focuses on elevating the overall quality and stability of the project.
We have dedicated significant efforts to address various bugs, enhance performance,
and make improvements based on valuable user feedback.
Better Compatibility and Upgrade Confidence
-------------------------------------------
Our goal with Celery 5.4 is to instill confidence in users who are currently
using Celery 4 or older versions. We want to assure you that upgrading to
Celery 5.4 will provide a more robust and reliable experience.
Dropped support for Python 3.7
------------------------------
Celery now requires Python 3.8 and above.
Python 3.7 will reach EOL in June, 2023.
In order to focus our efforts we have dropped support for Python 3.6 in
this version.
If you still require to run Celery using Python 3.7
you can still use Celery 5.2.
However we encourage you to upgrade to a supported Python version since
no further security patches will be applied for Python 3.7 after
the 23th of June, 2023.
Kombu
-----
Starting from v5.4.0, the minimum required version is Kombu 5.3.
Redis
-----
redis-py 4.5.x is the new minimum required version.
SQLAlchemy
---------------------
SQLAlchemy 1.4.x & 2.0.x is now supported in celery v5.4
Billiard
-------------------
Minimum required version is now 4.1.0
Deprecate pytz and use zoneinfo
-------------------------------
A switch have been made to zoneinfo for handling timezone data instead of pytz.
Django
------
Minimum django version is bumped to v2.2.28.
Also added --skip-checks flag to bypass django core checks.
|