whatsnew-4.0.rst 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313
  1. .. _whatsnew-4.0:
  2. ===========================================
  3. What's new in Celery 4.0 (0Today8)
  4. ===========================================
  5. :Author: Ask Solem (``ask at celeryproject.org``)
  6. .. sidebar:: Change history
  7. What's new documents describe the changes in major versions,
  8. we also have a :ref:`changelog` that lists the changes in bugfix
  9. releases (0.0.x), while older series are archived under the :ref:`history`
  10. section.
  11. Celery is a simple, flexible and reliable distributed system to
  12. process vast amounts of messages, while providing operations with
  13. the tools required to maintain such a system.
  14. It's a task queue with focus on real-time processing, while also
  15. supporting task scheduling.
  16. Celery has a large and diverse community of users and contributors,
  17. you should come join us :ref:`on IRC <irc-channel>`
  18. or :ref:`our mailing-list <mailing-list>`.
  19. To read more about Celery you should go read the :ref:`introduction <intro>`.
  20. While this version is backward compatible with previous versions
  21. it's important that you read the following section.
  22. This version is officially supported on CPython 2.7, 3.4 and 3.5.
  23. and also supported on PyPy.
  24. .. _`website`: http://celeryproject.org/
  25. .. topic:: Table of Contents
  26. Make sure you read the important notes before upgrading to this version.
  27. .. contents::
  28. :local:
  29. :depth: 2
  30. Preface
  31. =======
  32. Wall of Contributors
  33. --------------------
  34. Aaron McMillin, Adam Renberg, Adrien Guinet, Ahmet Demir, Aitor Gómez-Goiri,
  35. Albert Wang, Alex Koshelev, Alex Rattray, Alex Williams, Alexander Koshelev,
  36. Alexander Lebedev, Alexander Oblovatniy, Alexey Kotlyarov, Ali Bozorgkhan,
  37. Alice Zoë Bevan–McGregor, Allard Hoeve, Alman One, Andrea Rabbaglietti,
  38. Andrea Rosa, Andrei Fokau, Andrew Rodionoff, Andriy Yurchuk,
  39. Aneil Mallavarapu, Areski Belaid, Artyom Koval, Ask Solem, Balthazar Rouberol,
  40. Berker Peksag, Bert Vanderbauwhede, Brian Bouterse, Chris Duryee, Chris Erway,
  41. Chris Harris, Chris Martin, Corey Farwell, Craig Jellick, Cullen Rhodes,
  42. Dallas Marlow, Daniel Wallace, Danilo Bargen, Davanum Srinivas, Dave Smith,
  43. David Baumgold, David Harrigan, David Pravec, Dennis Brakhane, Derek Anderson,
  44. Dmitry Malinovsky, Dudás Ádám, Dustin J. Mitchell, Ed Morley, Fatih Sucu,
  45. Feanil Patel, Felix Schwarz, Fernando Rocha, Flavio Grossi, Frantisek Holop,
  46. Gao Jiangmiao, Gerald Manipon, Gilles Dartiguelongue, Gino Ledesma,
  47. Hank John, Hogni Gylfason, Ilya Georgievsky, Ionel Cristian Mărieș,
  48. James Pulec, Jared Lewis, Jason Veatch, Jasper Bryant-Greene, Jeremy Tillman,
  49. Jocelyn Delalande, Joe Jevnik, John Anderson, John Kirkham, John Whitlock,
  50. Joshua Harlow, Juan Rossi, Justin Patrin, Kai Groner, Kevin Harvey,
  51. Konstantinos Koukopoulos, Kouhei Maeda, Kracekumar Ramaraju,
  52. Krzysztof Bujniewicz, Latitia M. Haskins, Len Buckens, Lorenzo Mancini,
  53. Lucas Wiman, Luke Pomfrey, Marcio Ribeiro, Marin Atanasov Nikolov,
  54. Mark Parncutt, Maxime Vdb, Mher Movsisyan, Michael (:github_user:`michael-k`),
  55. Michael Duane Mooring, Michael Permana, Mickaël Penhard, Mike Attwood,
  56. Morton Fox, Môshe van der Sterre, Nat Williams, Nathan Van Gheem, Nik Nyby,
  57. Omer Katz, Omer Korner, Ori Hoch, Paul Pearce, Paulo Bu, Philip Garnero,
  58. Piotr Maślanka, Radek Czajka, Raghuram Srinivasan, Randy Barlow,
  59. Rodolfo Carvalho, Roger Hu, Rongze Zhu, Ross Deane, Ryan Luckie,
  60. Rémy Greinhofer, Samuel Jaillet, Sergey Azovskov, Sergey Tikhonov,
  61. Seungha Kim, Steve Peak, Sukrit Khera, Tadej Janež, Tewfik Sadaoui,
  62. Thomas French, Thomas Grainger, Tobias Schottdorf, Tocho Tochev,
  63. Valentyn Klindukh, Vic Kumar, Vladimir Bolshakov, Vladimir Gorbunov,
  64. Wayne Chang, Wil Langford, Will Thompson, William King, Yury Selivanov,
  65. Zoran Pavlovic, 許邱翔, :github_user:`allenling`, :github_user:`bee-keeper`,
  66. :github_user:`ffeast`, :github_user:`flyingfoxlee`, :github_user:`gdw2`,
  67. :github_user:`gitaarik`, :github_user:`hankjin`, :github_user:`m-vdb`,
  68. :github_user:`mdk`, :github_user:`nokrik`, :github_user:`ocean1`,
  69. :github_user:`orlo666`, :github_user:`raducc`, :github_user:`wanglei`,
  70. :github_user:`worldexception`.
  71. .. _v400-important:
  72. Important Notes
  73. ===============
  74. Dropped support for Python 2.6
  75. ------------------------------
  76. Celery now requires Python 2.7 or later,
  77. and also drops support for Python 3.3 so supported versions are:
  78. - CPython 2.7
  79. - CPython 3.4
  80. - CPython 3.5
  81. - PyPy 4.0 (``pypy2``)
  82. - PyPy 2.4 (``pypy3``)
  83. - Jython 2.7.0
  84. Last major version to support Python 2
  85. --------------------------------------
  86. Starting from Celery 5.0 only Python 3.6+ will be supported.
  87. To make sure you're not affected by this change you should pin
  88. the Celery version in your requirements file, either to a specific
  89. version: ``celery==4.0.0``, or a range: ``celery>=4.0,<5.0``.
  90. Dropping support for Python 2 will enable us to remove massive
  91. amounts of compatibility code, and going with Python 3.6 allows
  92. us to take advantage of typing, async/await, asyncio, ++, for which
  93. there are no convenient alternatives in older versions.
  94. Celery 4.x will continue to work on Python 2.7, 3.4, 3.5; just as Celery 3.x
  95. still works on Python 2.6.
  96. Support for Redis as a broker is deprecated
  97. -------------------------------------------
  98. The Redis transport will no longer be supported going forward.
  99. It is with a heavy heart, and the decision was not taken lightly but
  100. there are several open issues related to this transport and as a project
  101. without a budget we don't have the resources to resolve them.
  102. The issues have been open for a very long time, and we are doing our
  103. users a disservice by keeping them open with no resolution in sight.
  104. As Redis is such a huge part of Celery development
  105. time, this is time we can spend on moving the project
  106. forward into the asyncio era of Python 3.6.
  107. The transport is still active, so you can still use it, but it has been
  108. undocumented so that new users will not find it. Unless the situation
  109. changes the transport will be removed completely starting with Celery 5.0.
  110. .. note::
  111. Using Redis as a result backend is still supported, and has some
  112. really nice improvements in this version. Read on for the good news :-)
  113. Lowercase setting names
  114. -----------------------
  115. In the pursuit of beauty all settings have been renamed to be in all
  116. lowercase, and some setting names have been renamed for naming consistency.
  117. This change is fully backwards compatible so you can still use the uppercase
  118. setting names, but we would like you to upgrade as soon as possible and
  119. you can even do so automatically using the :program:`celery upgrade settings`
  120. command:
  121. .. code-block:: console
  122. $ celery upgrade settings proj/settings.py
  123. This command will modify your module in-place to use the new lower-case
  124. names (if you want uppercase with a celery prefix see block below),
  125. and save a backup in :file:`proj/settings.py.orig`.
  126. .. admonition:: For Django users and others who want to keep uppercase names
  127. If you're loading Celery configuration from the Django settings module
  128. then you will want to keep using the uppercase names.
  129. You will also want to use a ``CELERY_`` prefix so that no Celery settings
  130. collide with Django settings used by other apps.
  131. To do this, you will first need to convert your settings file
  132. to use the new consistent naming scheme, and add the prefix to all
  133. Celery related settings:
  134. .. code-block:: console
  135. $ celery upgrade settings --django proj/settings.py
  136. After upgrading the settings file, you need to set the prefix explicitly
  137. in your ``proj/celery.py`` module:
  138. .. code-block:: python
  139. app.config_from_object('django.conf:settings', namespace='CELERY')
  140. You can find the most up to date Django celery integration example
  141. here: :ref:`django-first-steps`.
  142. Note that this will also add a prefix to settings that didn't previously
  143. have one, like ``BROKER_URL``.
  144. Luckily you don't have to manually change the files, as
  145. the :program:`celery upgrade settings --django` program should do the
  146. right thing.
  147. The loader will try to detect if your configuration is using the new format,
  148. and act accordingly, but this also means that you are not allowed to mix and
  149. match new and old setting names, that is unless you provide a value for both
  150. alternatives.
  151. The major difference between previous versions, apart from the lower case
  152. names, are the renaming of some prefixes, like ``celerybeat_`` to ``beat_``,
  153. ``celeryd_`` to ``worker_``.
  154. The ``celery_`` prefix has also been removed, and task related settings
  155. from this name-space is now prefixed by ``task_``, worker related settings
  156. with ``worker_``.
  157. Apart from this most of the settings will be the same in lowercase, apart from
  158. a few special ones:
  159. ===================================== ==========================================================
  160. **Setting name** **Replace with**
  161. ===================================== ==========================================================
  162. ``CELERY_MAX_CACHED_RESULTS`` :setting:`result_cache_max`
  163. ``CELERY_MESSAGE_COMPRESSION`` :setting:`result_compression`/:setting:`task_compression`.
  164. ``CELERY_TASK_RESULT_EXPIRES`` :setting:`result_expires`
  165. ``CELERY_RESULT_DBURI`` :setting:`sqlalchemy_dburi`
  166. ``CELERY_RESULT_ENGINE_OPTIONS`` :setting:`sqlalchemy_engine_options`
  167. ``-*-_DB_SHORT_LIVED_SESSIONS`` :setting:`sqlalchemy_short_lived_sessions`
  168. ``CELERY_RESULT_DB_TABLE_NAMES`` :setting:`sqlalchemy_db_names`
  169. ``CELERY_ACKS_LATE`` :setting:`task_acks_late`
  170. ``CELERY_ALWAYS_EAGER`` :setting:`task_always_eager`
  171. ``CELERY_ANNOTATIONS`` :setting:`task_annotations`
  172. ``CELERY_MESSAGE_COMPRESSION`` :setting:`task_compression`
  173. ``CELERY_CREATE_MISSING_QUEUES`` :setting:`task_create_missing_queues`
  174. ``CELERY_DEFAULT_DELIVERY_MODE`` :setting:`task_default_delivery_mode`
  175. ``CELERY_DEFAULT_EXCHANGE`` :setting:`task_default_exchange`
  176. ``CELERY_DEFAULT_EXCHANGE_TYPE`` :setting:`task_default_exchange_type`
  177. ``CELERY_DEFAULT_QUEUE`` :setting:`task_default_queue`
  178. ``CELERY_DEFAULT_RATE_LIMIT`` :setting:`task_default_rate_limit`
  179. ``CELERY_DEFAULT_ROUTING_KEY`` :setting:`task_default_routing_key`
  180. ``-"-_EAGER_PROPAGATES_EXCEPTIONS`` :setting:`task_eager_propagates`
  181. ``CELERY_IGNORE_RESULT`` :setting:`task_ignore_result`
  182. ``CELERY_TASK_PUBLISH_RETRY`` :setting:`task_publish_retry`
  183. ``CELERY_TASK_PUBLISH_RETRY_POLICY`` :setting:`task_publish_retry_policy`
  184. ``CELERY_QUEUES`` :setting:`task_queues`
  185. ``CELERY_ROUTES`` :setting:`task_routes`
  186. ``CELERY_SEND_TASK_SENT_EVENT`` :setting:`task_send_sent_event`
  187. ``CELERY_TASK_SERIALIZER`` :setting:`task_serializer`
  188. ``CELERYD_TASK_SOFT_TIME_LIMIT`` :setting:`task_soft_time_limit`
  189. ``CELERYD_TASK_TIME_LIMIT`` :setting:`task_time_limit`
  190. ``CELERY_TRACK_STARTED`` :setting:`task_track_started`
  191. ``CELERY_DISABLE_RATE_LIMITS`` :setting:`worker_disable_rate_limits`
  192. ``CELERY_ENABLE_REMOTE_CONTROL`` :setting:`worker_enable_remote_control`
  193. ``CELERYD_SEND_EVENTS`` :setting:`worker_send_task_events`
  194. ===================================== ==========================================================
  195. You can see a full table of the changes in :ref:`conf-old-settings-map`.
  196. JSON is now the default serializer
  197. ----------------------------------
  198. The time has finally come to end the reign of :mod:`pickle` as the default
  199. serialization mechanism, and json is the default serializer starting from this
  200. version.
  201. This change was :ref:`announced with the release of Celery 3.1
  202. <last-version-to-enable-pickle>`.
  203. If you're still depending on :mod:`pickle` being the default serializer,
  204. then you have to configure your app before upgrading to 4.0:
  205. .. code-block:: python
  206. task_serializer = 'pickle'
  207. result_serializer = 'pickle'
  208. accept_content = {'pickle'}
  209. The Task base class no longer automatically register tasks
  210. ----------------------------------------------------------
  211. The :class:`~@Task` class is no longer using a special meta-class
  212. that automatically registers the task in the task registry.
  213. Instead this is now handled by the :class:`@task` decorators.
  214. If you're still using class based tasks, then you need to register
  215. these manually:
  216. .. code-block:: python
  217. class CustomTask(Task):
  218. def run(self):
  219. print('running')
  220. app.tasks.register(CustomTask())
  221. The best practice is to use custom task classes only for overriding
  222. general behavior, and then using the task decorator to realize the task:
  223. .. code-block:: python
  224. @app.task(bind=True, base=CustomTask)
  225. def custom(self):
  226. print('running')
  227. This change also means the ``abstract`` attribute of the task
  228. no longer has any effect.
  229. Task argument checking
  230. ----------------------
  231. The arguments of the task is now verified when calling the task,
  232. even asynchronously:
  233. .. code-block:: pycon
  234. >>> @app.task
  235. ... def add(x, y):
  236. ... return x + y
  237. >>> add.delay(8, 8)
  238. <AsyncResult: f59d71ca-1549-43e0-be41-4e8821a83c0c>
  239. >>> add.delay(8)
  240. Traceback (most recent call last):
  241. File "<stdin>", line 1, in <module>
  242. File "celery/app/task.py", line 376, in delay
  243. return self.apply_async(args, kwargs)
  244. File "celery/app/task.py", line 485, in apply_async
  245. check_arguments(*(args or ()), **(kwargs or {}))
  246. TypeError: add() takes exactly 2 arguments (1 given)
  247. Django: Auto-discover now supports Django app configurations
  248. ------------------------------------------------------------
  249. The :meth:`@autodiscover` function can now be called without arguments,
  250. and the Django handler will automatically find your installed apps:
  251. .. code-block:: python
  252. app.autodiscover()
  253. The Django integration :ref:`example in the documentation
  254. <django-first-steps>` has been updated to use the argument-less call.
  255. Worker direct queues no longer use auto-delete.
  256. ===============================================
  257. Workers/clients running 4.0 will no longer be able to send
  258. worker direct messages to worker running older versions, and vice versa.
  259. If you're relying on worker direct messages you should upgrade
  260. your 3.x workers and clients to use the new routing settings first,
  261. by replacing :func:`celery.utils.worker_direct` with this implementation:
  262. .. code-block:: python
  263. from kombu import Exchange, Queue
  264. worker_direct_exchange = Exchange('C.dq2')
  265. def worker_direct(hostname):
  266. return Queue(
  267. '{hostname}.dq2'.format(hostname),
  268. exchange=worker_direct_exchange,
  269. routing_key=hostname,
  270. )
  271. (This feature closed Issue #2492.)
  272. Old command-line programs removed
  273. ---------------------------------
  274. Installing Celery will no longer install the ``celeryd``,
  275. ``celerybeat`` and ``celeryd-multi`` programs.
  276. This was announced with the release of Celery 3.1, but you may still
  277. have scripts pointing to the old names so make sure you update these
  278. to use the new umbrella command:
  279. +-------------------+--------------+-------------------------------------+
  280. | Program | New Status | Replacement |
  281. +===================+==============+=====================================+
  282. | ``celeryd`` | **REMOVED** | :program:`celery worker` |
  283. +-------------------+--------------+-------------------------------------+
  284. | ``celerybeat`` | **REMOVED** | :program:`celery beat` |
  285. +-------------------+--------------+-------------------------------------+
  286. | ``celeryd-multi`` | **REMOVED** | :program:`celery multi` |
  287. +-------------------+--------------+-------------------------------------+
  288. .. _v400-news:
  289. News
  290. ====
  291. New Task Message Protocol
  292. =========================
  293. .. :sha:`e71652d384b1b5df2a4e6145df9f0efb456bc71c`
  294. This version introduces a brand new task message protocol,
  295. the first major change to the protocol since the beginning of the project.
  296. The new protocol is backwards incompatible, so you need to set
  297. the :setting:`task_protocol` configuration option to ``2`` to take advantage:
  298. .. code-block:: python
  299. app = Celery()
  300. app.conf.task_protocol = 2
  301. Using the new protocol is recommended for everybody who don't
  302. need backwards compatibility.
  303. Once enabled task messages sent is unreadable to older versions of Celery.
  304. New protocol highlights
  305. -----------------------
  306. The new protocol fixes many problems with the old one, and enables
  307. some long-requested features:
  308. - Most of the data are now sent as message headers, instead of being
  309. serialized with the message body.
  310. In version 1 of the protocol the worker always had to deserialize
  311. the message to be able to read task meta-data like the task id,
  312. name, etc. This also meant that the worker was forced to double-decode
  313. the data, first deserializing the message on receipt, serializing
  314. the message again to send to child process, then finally the child process
  315. deserializes the message again.
  316. Keeping the meta-data fields in the message headers means the worker
  317. does not actually have to decode the payload before delivering
  318. the task to the child process, and also that it's now possible
  319. for the worker to reroute a task written in a language different
  320. from Python to a different worker.
  321. - A new ``lang`` message header can be used to specify the programming
  322. language the task is written in.
  323. - Worker stores results for internal errors like ``ContentDisallowed``,
  324. and other deserialization errors.
  325. - Worker stores results and sends monitoring events for unregistered
  326. task errors.
  327. - Worker calls callbacks/errbacks even when the result is sent by the
  328. parent process (e.g. :exc:`WorkerLostError` when a child process
  329. terminates, deserialization errors, unregistered tasks).
  330. - A new ``origin`` header contains information about the process sending
  331. the task (worker node-name, or PID and host-name information).
  332. - A new ``shadow`` header allows you to modify the task name used in logs.
  333. This is useful for dispatch like patterns, like a task that calls
  334. any function using pickle (don't do this at home):
  335. .. code-block:: python
  336. from celery import Task
  337. from celery.utils.imports import qualname
  338. class call_as_task(Task):
  339. def shadow_name(self, args, kwargs, options):
  340. return 'call_as_task:{0}'.format(qualname(args[0]))
  341. def run(self, fun, *args, **kwargs):
  342. return fun(*args, **kwargs)
  343. call_as_task = app.tasks.register(call_as_task())
  344. - New ``argsrepr`` and ``kwargsrepr`` fields contain textual representations
  345. of the task arguments (possibly truncated) for use in logs, monitors, etc.
  346. This means the worker does not have to deserialize the message payload
  347. to display the task arguments for informational purposes.
  348. - Chains now use a dedicated ``chain`` field enabling support for chains
  349. of thousands and more tasks.
  350. - New ``parent_id`` and ``root_id`` headers adds information about
  351. a tasks relationship with other tasks.
  352. - ``parent_id`` is the task id of the task that called this task
  353. - ``root_id`` is the first task in the work-flow.
  354. These fields can be used to improve monitors like flower to group
  355. related messages together (like chains, groups, chords, complete
  356. work-flows, etc).
  357. - ``app.TaskProducer`` replaced by :meth:`@amqp.create_task_message`` and
  358. :meth:`@amqp.send_task_message``.
  359. Dividing the responsibilities into creating and sending means that
  360. people who want to send messages using a Python AMQP client directly,
  361. does not have to implement the protocol.
  362. The :meth:`@amqp.create_task_message` method calls either
  363. :meth:`@amqp.as_task_v2`, or :meth:`@amqp.as_task_v1` depending
  364. on the configured task protocol, and returns a special
  365. :class:`~celery.app.amqp.task_message` tuple containing the
  366. headers, properties and body of the task message.
  367. .. seealso::
  368. The new task protocol is documented in full here:
  369. :ref:`message-protocol-task-v2`.
  370. Prefork: Tasks now log from the child process
  371. =============================================
  372. Logging of task success/failure now happens from the child process
  373. actually executing the task, which means that logging utilities
  374. like Sentry can get full information about tasks that fail, including
  375. variables in the traceback.
  376. Prefork: One log-file per child process
  377. =======================================
  378. Init-scrips and :program:`celery multi` now uses the `%I` log file format
  379. option (e.g. :file:`/var/log/celery/%n%I.log`).
  380. This change was necessary to ensure each child
  381. process has a separate log file after moving task logging
  382. to the child process, as multiple processes writing to the same
  383. log file can cause corruption.
  384. You are encouraged to upgrade your init-scripts and
  385. :program:`celery multi` arguments to use this new option.
  386. Configure broker URL for read/write separately.
  387. ===============================================
  388. New :setting:`broker_read_url` and :setting:`broker_write_url` settings
  389. have been added so that separate broker URLs can be provided
  390. for connections used for consuming/publishing.
  391. In addition to the configuration options, two new methods have been
  392. added the app API:
  393. - ``app.connection_for_read()``
  394. - ``app.connection_for_write()``
  395. These should now be used in place of ``app.connection()`` to specify
  396. the intent of the required connection.
  397. .. note::
  398. Two connection pools are available: ``app.pool`` (read), and
  399. ``app.producer_pool`` (write). The latter does not actually give connections
  400. but full :class:`kombu.Producer` instances.
  401. .. code-block:: python
  402. def publish_some_message(app, producer=None):
  403. with app.producer_or_acquire(producer) as producer:
  404. ...
  405. def consume_messages(app, connection=None):
  406. with app.connection_or_acquire(connection) as connection:
  407. ...
  408. Canvas Refactor
  409. ===============
  410. The canvas/work-flow implementation have been heavily refactored
  411. to fix some long outstanding issues.
  412. .. :sha:`d79dcd8e82c5e41f39abd07ffed81ca58052bcd2`
  413. .. :sha:`1e9dd26592eb2b93f1cb16deb771cfc65ab79612`
  414. .. :sha:`e442df61b2ff1fe855881c1e2ff9acc970090f54`
  415. .. :sha:`0673da5c09ac22bdd49ba811c470b73a036ee776`
  416. - Now unrolls groups within groups into a single group (Issue #1509).
  417. - chunks/map/starmap tasks now routes based on the target task
  418. - chords and chains can now be immutable.
  419. - Fixed bug where serialized signatures were not converted back into
  420. signatures (Issue #2078)
  421. Fix contributed by Ross Deane.
  422. - Fixed problem where chains and groups did not work when using JSON
  423. serialization (Issue #2076).
  424. Fix contributed by Ross Deane.
  425. - Creating a chord no longer results in multiple values for keyword
  426. argument 'task_id' (Issue #2225).
  427. Fix contributed by Aneil Mallavarapu
  428. - Fixed issue where the wrong result is returned when a chain
  429. contains a chord as the penultimate task.
  430. Fix contributed by Aneil Mallavarapu
  431. - Special case of ``group(A.s() | group(B.s() | C.s()))`` now works.
  432. - Chain: Fixed bug with incorrect id set when a subtask is also a chain.
  433. - ``group | group`` is now flattened into a single group (Issue #2573).
  434. - Fixed issue where ``group | task`` was not upgrading correctly
  435. to chord (Issue #2922).
  436. Amazon SQS transport now officially supported.
  437. ==============================================
  438. The SQS broker transport has been rewritten to use async I/O and as such
  439. joins RabbitMQ and Qpid as officially supported transports.
  440. The new implementation also takes advantage of long polling,
  441. and closes several issues related to using SQS as a broker.
  442. This work was sponsored by Nextdoor.
  443. Schedule tasks based on sunrise, sunset, dawn and dusk.
  444. =======================================================
  445. See :ref:`beat-solar` for more information.
  446. Contributed by Mark Parncutt.
  447. New API for configuring periodic tasks
  448. ======================================
  449. This new API enables you to use signatures when defining periodic tasks,
  450. removing the chance of mistyping task names.
  451. An example of the new API is :ref:`here <beat-entries>`.
  452. .. :sha:`bc18d0859c1570f5eb59f5a969d1d32c63af764b`
  453. .. :sha:`132d8d94d38f4050db876f56a841d5a5e487b25b`
  454. RabbitMQ Priority queue support
  455. ===============================
  456. See :ref:`routing-options-rabbitmq-priorities` for more information.
  457. Contributed by Gerald Manipon.
  458. Prefork: Limit child process resident memory size.
  459. ==================================================
  460. .. :sha:`5cae0e754128750a893524dcba4ae030c414de33`
  461. You can now limit the maximum amount of memory allocated per prefork
  462. pool child process by setting the worker
  463. :option:`--maxmemperchild <celery worker --maxmemperchild>` option,
  464. or the :setting:`worker_max_memory_per_child` setting.
  465. The limit is for RSS/resident memory size and is specified in kilobytes.
  466. A child process having exceeded the limit will be terminated and replaced
  467. with a new process after the currently executing task returns.
  468. See :ref:`worker-maxmemperchild` for more information.
  469. Contributed by Dave Smith.
  470. Redis: Result backend optimizations
  471. ===================================
  472. RPC is now using pub/sub for streaming task results.
  473. ----------------------------------------------------
  474. Calling ``result.get()`` when using the Redis result backend
  475. used to be extremely expensive as it was using polling to wait
  476. for the result to become available. A default polling
  477. interval of 0.5 seconds did not help performance, but was
  478. necessary to avoid a spin loop.
  479. The new implementation is using Redis Pub/Sub mechanisms to
  480. publish and retrieve results immediately, greatly improving
  481. task round-trip times.
  482. Contributed by Yaroslav Zhavoronkov and Ask Solem.
  483. New optimized chord join implementation.
  484. ----------------------------------------
  485. This was an experimental feature introduced in Celery 3.1,
  486. that could only be enabled by adding ``?new_join=1`` to the
  487. result backend URL configuration.
  488. We feel that the implementation has been tested thoroughly enough
  489. to be considered stable and enabled by default.
  490. The new implementation greatly reduces the overhead of chords,
  491. and especially with larger chords the performance benefit can be massive.
  492. New Riak result backend Introduced.
  493. ===================================
  494. See :ref:`conf-riak-result-backend` for more information.
  495. Contributed by Gilles Dartiguelongue, Alman One and NoKriK.
  496. New CouchDB result backend introduced.
  497. ======================================
  498. See :ref:`conf-couchdb-result-backend` for more information.
  499. Contributed by Nathan Van Gheem
  500. Brand new Cassandra result backend.
  501. ===================================
  502. A brand new Cassandra backend utilizing the new :pypi:`cassandra-driver`
  503. library is replacing the old result backend which was using the older
  504. :pypi:`pycassa` library.
  505. See :ref:`conf-cassandra-result-backend` for more information.
  506. .. # XXX What changed?
  507. New Elasticsearch result backend introduced.
  508. ============================================
  509. See :ref:`conf-elasticsearch-result-backend` for more information.
  510. Contributed by Ahmet Demir.
  511. New File-system result backend introduced.
  512. ==========================================
  513. See :ref:`conf-filesystem-result-backend` for more information.
  514. Contributed by Môshe van der Sterre.
  515. Event Batching
  516. ==============
  517. Events are now buffered in the worker and sent as a list which reduces
  518. the overhead required to send monitoring events.
  519. For authors of custom event monitors there will be no action
  520. required as long as you're using the Python celery
  521. helpers (:class:`~@events.Receiver`) to implement your monitor.
  522. However, if you're manually receiving event messages you must now account
  523. for batched event messages which differ from normal event messages
  524. in the following way:
  525. - The routing key for a batch of event messages will be set to
  526. ``<event-group>.multi`` where the only batched event group
  527. is currently ``task`` (giving a routing key of ``task.multi``).
  528. - The message body will be a serialized list-of-dictionaries instead
  529. of a dictionary. Each item in the list can be regarded
  530. as a normal event message body.
  531. .. :sha:`03399b4d7c26fb593e61acf34f111b66b340ba4e`
  532. Task.replace
  533. ============
  534. Task.replace changed, removes Task.replace_in_chord.
  535. The two methods had almost the same functionality, but the old
  536. ``Task.replace`` would force the new task to inherit the
  537. callbacks/errbacks of the existing task.
  538. If you replace a node in a tree, then you would not expect the new node to
  539. inherit the children of the old node, so this seems like unexpected
  540. behavior.
  541. So ``self.replace(sig)`` now works for any task, in addition ``sig`` can now
  542. be a group.
  543. Groups are automatically converted to a chord, where the callback
  544. will "accumulate" the results of the group tasks.
  545. A new built-in task (`celery.accumulate` was added for this purpose)
  546. Closes #817
  547. Optimized Beat implementation
  548. =============================
  549. The :program:`celery beat` implementation has been optimized
  550. for millions of periodic tasks by using a heap to schedule entries.
  551. Contributed by Ask Solem and Alexander Koshelev.
  552. Task Auto-retry Decorator
  553. =========================
  554. Writing custom retry handling for exception events is so common
  555. that we now have built-in support for it.
  556. For this a new ``autoretry_for`` argument is now supported by
  557. the task decorators, where you can specify a tuple of exceptions
  558. to automatically retry for.
  559. See :ref:`task-autoretry` for more information.
  560. Contributed by Dmitry Malinovsky.
  561. .. :sha:`75246714dd11e6c463b9dc67f4311690643bff24`
  562. Remote Task Tracebacks
  563. ======================
  564. The new :setting:`task_remote_tracebacks` will make task tracebacks more
  565. useful by injecting the stack of the remote worker.
  566. This feature requires the additional :pypi:`tblib` library.
  567. Contributed by Ionel Cristian Mărieș.
  568. Async Result API
  569. ================
  570. eventlet/gevent drainers, promises, BLA BLA
  571. Closed issue #2529.
  572. In Other News
  573. -------------
  574. - **Requirements**:
  575. - Now depends on :ref:`Kombu 4.0 <kombu:version-4.0>`.
  576. - Now depends on :pypi:`billiard` version 3.5.
  577. - No longer depends on :pypi:`anyjson` :(
  578. - **Tasks**: The "anon-exchange" is now used for simple name-name direct routing.
  579. This increases performance as it completely bypasses the routing table.
  580. - **Tasks**: :setting:`task_routes` can now contain glob patterns and
  581. regexes.
  582. See new examples in :setting:`task_routes` and :ref:`routing-automatic`.
  583. - **Eventlet/Gevent**: Fixed race condition leading to "simultaneous read"
  584. errors (Issue #2812).
  585. - **Programs**: ``%n`` format for :program:`celery multi` is now synonym with
  586. ``%N`` to be consistent with :program:`celery worker`.
  587. - **Programs**: celery inspect/control now supports a new
  588. :option:`--json <celery inspect --json>` option to give output in json format.
  589. - **Programs**: :program:`celery inspect registered` now ignores built-in
  590. tasks.
  591. - **Programs**: New :program:`celery logtool`: Utility for filtering and parsing
  592. celery worker log-files
  593. - **Worker**: Worker now only starts the remote control command consumer if the
  594. broker transport used actually supports them.
  595. - **Worker**: Gossip now sets ``x-message-ttl`` for event queue to heartbeat_interval s.
  596. (Issue #2005).
  597. - **Worker**: Now preserves exit code (Issue #2024).
  598. - **Worker**: Log--level for unrecoverable errors changed from ``error`` to
  599. ``critical``.
  600. - **Worker**: Improved rate limiting accuracy.
  601. - **Worker**: Account for missing timezone information in task expires field.
  602. Fix contributed by Albert Wang.
  603. - **Worker**: The worker no longer has a ``Queues`` bootsteps, as it is now
  604. superfluous.
  605. - **Tasks**: New :setting:`task_reject_on_worker_lost` setting, and
  606. :attr:`~@Task.reject_on_worker_lost` task attribute decides what happens
  607. when the child worker process executing a late ack task is terminated.
  608. Contributed by Michael Permana.
  609. - **Worker**: Improvements and fixes for LimitedSet
  610. Getting rid of leaking memory + adding ``minlen`` size of the set:
  611. the minimal residual size of the set after operating for some time.
  612. ``minlen`` items are kept, even if they should have been expired.
  613. Problems with older and even more old code:
  614. #. Heap would tend to grow in some scenarios
  615. (like adding an item multiple times).
  616. #. Adding many items fast would not clean them soon enough (if ever).
  617. #. When talking to other workers, revoked._data was sent, but
  618. it was processed on the other side as iterable.
  619. That means giving those keys new (current)
  620. time-stamp. By doing this workers could recycle
  621. items forever. Combined with 1) and 2), this means that in
  622. large set of workers, you are getting out of memory soon.
  623. All those problems should be fixed now.
  624. This should fix issues #3095, #3086.
  625. Contributed by David Pravec.
  626. - **App**: New signals for app configuration/finalization:
  627. - :data:`app.on_configure <@on_configure>`
  628. - :data:`app.on_after_configure <@on_after_configure>`
  629. - :data:`app.on_after_finalize <@on_after_finalize>`
  630. - **Task**: New task signals for rejected task messages:
  631. - :data:`celery.signals.task_rejected`.
  632. - :data:`celery.signals.task_unknown`.
  633. - **Events**: Event messages now uses the RabbitMQ ``x-message-ttl`` option
  634. to ensure older event messages are discarded.
  635. The default is 5 seconds, but can be changed using the
  636. :setting:`event_queue_ttl` setting.
  637. - **Events**: New :setting:`event_queue_prefix` setting can now be used
  638. to change the default ``celeryev`` queue prefix for event receiver queues.
  639. Contributed by Takeshi Kanemoto.
  640. - **Events**: Event monitors now sets the :setting:`event_queue_expires`
  641. setting by default.
  642. The queues will now expire after 60 seconds after the monitor stops
  643. consuming from it.
  644. - **Canvas**: ``chunks``/``map``/``starmap`` are now routed based on the target task.
  645. - **Canvas**: ``Signature.link`` now works when argument is scalar (not a list)
  646. (Issue #2019).
  647. - **App**: The application can now change how task names are generated using
  648. the :meth:`~@gen_task_name` method.
  649. Contributed by Dmitry Malinovsky.
  650. - **App**: App has new ``app.current_worker_task`` property that
  651. returns the task that is currently being worked on (or :const:`None`).
  652. (Issue #2100).
  653. - **Tasks**: ``Task.subtask`` renamed to ``Task.signature`` with alias.
  654. - **Tasks**: ``Task.subtask_from_request`` renamed to
  655. ``Task.signature_from_request`` with alias.
  656. - **Tasks**: The ``delivery_mode`` attribute for :class:`kombu.Queue` is now
  657. respected (Issue #1953).
  658. - **Tasks**: Routes in :setting:`task-routes` can now specify a
  659. :class:`~kombu.Queue` instance directly.
  660. Example:
  661. .. code-block:: python
  662. task_routes = {'proj.tasks.add': {'queue': Queue('add')}}
  663. - **Tasks**: ``AsyncResult`` now raises :exc:`ValueError` if task_id is None.
  664. (Issue #1996).
  665. - **Tasks**: ``result.get()`` now supports an ``on_message`` argument to set a
  666. callback to be called for every message received.
  667. - **Tasks**: New abstract classes added:
  668. - :class:`~celery.utils.abstract.CallableTask`
  669. Looks like a task.
  670. - :class:`~celery.utils.abstract.CallableSignature`
  671. Looks like a task signature.
  672. - **Programs**: :program:`celery multi` now passes through `%i` and `%I` log
  673. file formats.
  674. - **Programs**: ``%p`` can now be used to expand to the full worker node-name
  675. in log-file/pid-file arguments.
  676. - **Programs**: A new command line option
  677. :option:`--executable <celery worker --executable>` is now
  678. available for daemonizing programs (:program:`celery worker` and
  679. :program:`celery beat`).
  680. Contributed by Bert Vanderbauwhede.
  681. - **Programs**: :program:`celery worker` supports new
  682. :option:`--prefetch-multiplier <celery worker --prefetch-multiplier>` option.
  683. Contributed by Mickaël Penhard.
  684. - **Deployment**: Generic init-scripts now support
  685. :envvar:`CELERY_SU`` and :envvar:`CELERYD_SU_ARGS` environment variables
  686. to set the path and arguments for :command:`su` (:manpage:`su(1)`).
  687. - **Prefork**: Prefork pool now uses ``poll`` instead of ``select`` where
  688. available (Issue #2373).
  689. - **Eventlet**: Now returns pool size in :program:`celery inspect stats`
  690. command.
  691. Contributed by Alexander Oblovatniy.
  692. - **Worker**: Now respects :setting:`broker_connection_retry` setting.
  693. Fix contributed by Nat Williams.
  694. - **Worker**: Auto-scale did not always update keep-alive when scaling down.
  695. Fix contributed by Philip Garnero.
  696. - **General**: Dates are now always timezone aware even if
  697. :setting:`enable_utc` is disabled (Issue #943).
  698. Fix contributed by Omer Katz.
  699. - **Result Backends**: The redis result backend now has a default socket
  700. timeout of 5 seconds.
  701. The default can be changed using the new :setting:`redis_socket_timeout`
  702. setting.
  703. Contributed by Raghuram Srinivasan.
  704. - **Result Backends**: RPC Backend result queues are now auto delete by
  705. default (Issue #2001).
  706. - **Result Backends**: MongoDB now supports setting the
  707. :setting:`result_serialzier` setting to ``bson`` to use the MongoDB
  708. libraries own serializer.
  709. Contributed by Davide Quarta.
  710. - **Result Backends**: SQLAlchemy result backend now ignores all result
  711. engine options when using NullPool (Issue #1930).
  712. - **Result Backends**: MongoDB URI handling has been improved to use
  713. database name, user and password from the URI if provided.
  714. Contributed by Samuel Jaillet.
  715. - **Result Backends**: Fix problem with RPC backend where exception
  716. was not deserialized properly with the json serializer (Issue #2518).
  717. Fix contributed by Allard Hoeve.
  718. - **Result Backends**: Database backend now sets max char size to 155 to deal
  719. with brain damaged MySQL unicode implementation (Issue #1748).
  720. - **General**: All Celery exceptions/warnings now inherit from common
  721. :class:`~celery.exceptions.CeleryException`/:class:`~celery.exceptions.CeleryWarning`.
  722. (Issue #2643).
  723. - **Tasks**: Task retry now also throws in eager mode.
  724. Fix contributed by Feanil Patel.
  725. - Apps can now define how tasks are named (:meth:`@gen_task_name`).
  726. Contributed by Dmitry Malinovsky
  727. - Module ``celery.worker.job`` renamed to :mod:`celery.worker.request`.
  728. - Beat: ``Scheduler.Publisher``/``.publisher`` renamed to
  729. ``.Producer``/``.producer``.
  730. Incompatible changes
  731. ====================
  732. - Prefork: Calling ``result.get()`` or joining any result from within a task
  733. now raises :exc:`RuntimeError`.
  734. In previous versions this would emit a warning.
  735. - :mod:`celery.worker.consumer` is now a package, not a module.
  736. - Result: The task_name argument/attribute of :class:`@AsyncResult` was
  737. removed.
  738. This was historically a field used for :mod:`pickle` compatibility,
  739. but is no longer needed.
  740. - Backends: Arguments named ``status`` renamed to ``state``.
  741. - Backends: ``backend.get_status()`` renamed to ``backend.get_state()``.
  742. Unscheduled Removals
  743. ====================
  744. - The experimental :mod:`celery.contrib.methods` feature has been removed,
  745. as there were far many bugs in the implementation to be useful.
  746. - The CentOS init-scripts have been removed.
  747. These did not really add any features over the generic init-scripts,
  748. so you are encouraged to use them instead, or something like
  749. :pypi:`supervisor`.
  750. .. _v400-removals:
  751. Scheduled Removals
  752. ==================
  753. Modules
  754. -------
  755. - Module ``celery.worker.job`` has been renamed to :mod:`celery.worker.request`.
  756. This was an internal module so should not have any effect.
  757. It is now part of the public API so should not change again.
  758. - Module ``celery.task.trace`` has been renamed to ``celery.app.trace``
  759. as the ``celery.task`` package is being phased out. The module
  760. will be removed in version 5.0 so please change any import from::
  761. from celery.task.trace import X
  762. to::
  763. from celery.app.trace import X
  764. - Old compatibility aliases in the :mod:`celery.loaders` module
  765. has been removed.
  766. - Removed ``celery.loaders.current_loader()``, use: ``current_app.loader``
  767. - Removed ``celery.loaders.load_settings()``, use: ``current_app.conf``
  768. Result
  769. ------
  770. - ``AsyncResult.serializable()`` and ``celery.result.from_serializable``
  771. has been removed:
  772. Use instead:
  773. .. code-block:: pycon
  774. >>> tup = result.as_tuple()
  775. >>> from celery.result import result_from_tuple
  776. >>> result = result_from_tuple(tup)
  777. - Removed ``BaseAsyncResult``, use ``AsyncResult`` for instance checks
  778. instead.
  779. - Removed ``TaskSetResult``, use ``GroupResult`` instead.
  780. - ``TaskSetResult.total`` -> ``len(GroupResult)``
  781. - ``TaskSetResult.taskset_id`` -> ``GroupResult.id``
  782. - Removed ``ResultSet.subtasks``, use ``ResultSet.results`` instead.
  783. TaskSet
  784. -------
  785. TaskSet has been renamed to group and TaskSet will be removed in version 4.0.
  786. Old::
  787. >>> from celery.task import TaskSet
  788. >>> TaskSet(add.subtask((i, i)) for i in xrange(10)).apply_async()
  789. New::
  790. >>> from celery import group
  791. >>> group(add.s(i, i) for i in xrange(10))()
  792. Events
  793. ------
  794. - Removals for class :class:`celery.events.state.Worker`:
  795. - ``Worker._defaults`` attribute.
  796. Use ``{k: getattr(worker, k) for k in worker._fields}``.
  797. - ``Worker.update_heartbeat``
  798. Use ``Worker.event(None, timestamp, received)``
  799. - ``Worker.on_online``
  800. Use ``Worker.event('online', timestamp, received, fields)``
  801. - ``Worker.on_offline``
  802. Use ``Worker.event('offline', timestamp, received, fields)``
  803. - ``Worker.on_heartbeat``
  804. Use ``Worker.event('heartbeat', timestamp, received, fields)``
  805. - Removals for class :class:`celery.events.state.Task`:
  806. - ``Task._defaults`` attribute.
  807. Use ``{k: getattr(task, k) for k in task._fields}``.
  808. - ``Task.on_sent``
  809. Use ``Worker.event('sent', timestamp, received, fields)``
  810. - ``Task.on_received``
  811. Use ``Task.event('received', timestamp, received, fields)``
  812. - ``Task.on_started``
  813. Use ``Task.event('started', timestamp, received, fields)``
  814. - ``Task.on_failed``
  815. Use ``Task.event('failed', timestamp, received, fields)``
  816. - ``Task.on_retried``
  817. Use ``Task.event('retried', timestamp, received, fields)``
  818. - ``Task.on_succeeded``
  819. Use ``Task.event('succeeded', timestamp, received, fields)``
  820. - ``Task.on_revoked``
  821. Use ``Task.event('revoked', timestamp, received, fields)``
  822. - ``Task.on_unknown_event``
  823. Use ``Task.event(short_type, timestamp, received, fields)``
  824. - ``Task.update``
  825. Use ``Task.event(short_type, timestamp, received, fields)``
  826. - ``Task.merge``
  827. Contact us if you need this.
  828. Magic keyword arguments
  829. -----------------------
  830. Support for the very old magic keyword arguments accepted by tasks is
  831. finally removed in this version.
  832. If you are still using these you have to rewrite any task still
  833. using the old ``celery.decorators`` module and depending
  834. on keyword arguments being passed to the task,
  835. for example::
  836. from celery.decorators import task
  837. @task()
  838. def add(x, y, task_id=None):
  839. print('My task id is %r' % (task_id,))
  840. should be rewritten into::
  841. from celery import task
  842. @task(bind=True)
  843. def add(self, x, y):
  844. print('My task id is {0.request.id}'.format(self))
  845. Settings
  846. --------
  847. The following settings have been removed, and is no longer supported:
  848. Logging Settings
  849. ~~~~~~~~~~~~~~~~
  850. ===================================== =====================================
  851. **Setting name** **Replace with**
  852. ===================================== =====================================
  853. ``CELERYD_LOG_LEVEL`` :option:`celery worker --loglevel`
  854. ``CELERYD_LOG_FILE`` :option:`celery worker --logfile`
  855. ``CELERYBEAT_LOG_LEVEL`` :option:`celery beat --loglevel`
  856. ``CELERYBEAT_LOG_FILE`` :option:`celery beat --loglevel`
  857. ``CELERYMON_LOG_LEVEL`` celerymon is deprecated, use flower.
  858. ``CELERYMON_LOG_FILE`` celerymon is deprecated, use flower.
  859. ``CELERYMON_LOG_FORMAT`` celerymon is deprecated, use flower.
  860. ===================================== =====================================
  861. Task Settings
  862. ~~~~~~~~~~~~~~
  863. ===================================== =====================================
  864. **Setting name** **Replace with**
  865. ===================================== =====================================
  866. ``CELERY_CHORD_PROPAGATES`` N/A
  867. ===================================== =====================================
  868. .. _v400-deprecations:
  869. Deprecation Time-line Changes
  870. =============================
  871. See the :ref:`deprecation-timeline`.
  872. .. _v400-fixes:
  873. Fixes
  874. =====