Changelog 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722
  1. .. _changelog:
  2. ================
  3. Change history
  4. ================
  5. This document contains change notes for bugfix releases in the 3.1.x series
  6. (Cipater), please see :ref:`whatsnew-3.1` for an overview of what's
  7. new in Celery 3.1.
  8. .. _version-3.1.26:
  9. 3.1.26
  10. ======
  11. :release-date: 2018-23-03 16:00 PM IST
  12. :release-by: Omer Katz
  13. - Fixed a crash caused by tasks cycling between Celery 3 and Celery 4 workers.
  14. .. _version-3.1.25:
  15. 3.1.25
  16. ======
  17. :release-date: 2016-10-10 12:00 PM PDT
  18. :release-by: Ask Solem
  19. - **Requirements**
  20. - Now depends on :ref:`Kombu 3.0.37 <kombu:version-3.0.37>`
  21. - Fixed problem with chords in group introduced in 3.1.24 (Issue #3504).
  22. .. _version-3.1.24:
  23. 3.1.24
  24. ======
  25. :release-date: 2016-09-30 04:21 PM PDT
  26. :release-by: Ask Solem
  27. - **Requirements**
  28. - Now depends on :ref:`Kombu 3.0.36 <kombu:version-3.0.36>`.
  29. - Now supports Task protocol 2 from the future 4.0 release.
  30. Workers running 3.1.24 are now able to process messages
  31. sent using the `new task message protocol`_ to be introduced
  32. in Celery 4.0.
  33. Users upgrading to Celery 4.0 when this is released are encouraged
  34. to upgrade to this version as an intermediate step, as this
  35. means workers not yet upgraded will be able to process
  36. messages from clients/workers running 4.0.
  37. .. _`new task message protocol`:
  38. http://docs.celeryproject.org/en/master/internals/protocol.html#version-2
  39. - ``Task.send_events`` can now be set to disable sending of events
  40. for that task only.
  41. Example when defining the task:
  42. .. code-block:: python
  43. @app.task(send_events=False)
  44. def add(x, y):
  45. return x + y
  46. - **Utils**: Fixed compatibility with recent :pypi:`psutil` versions
  47. (Issue #3262).
  48. - **Canvas**: Chord now forwards partial arguments to its subtasks.
  49. Fix contributed by Tayfun Sen.
  50. - **App**: Arguments to app such as ``backend``, ``broker``, etc
  51. are now pickled and sent to the child processes on Windows.
  52. Fix contributed by Jeremy Zafran.
  53. - **Deployment**: Generic init scripts now supports being symlinked
  54. in runlevel directories (Issue #3208).
  55. - **Deployment**: Updated CentOS scripts to work with CentOS 7.
  56. Contributed by Joe Sanford.
  57. - **Events**: The curses monitor no longer crashes when the
  58. result of a task is empty.
  59. Fix contributed by Dongweiming.
  60. - **Worker**: ``repr(worker)`` would crash when called early
  61. in the startup process (Issue #2514).
  62. - **Tasks**: GroupResult now defines __bool__ and __nonzero__.
  63. This is to fix an issue where a ResultSet or GroupResult with an empty
  64. result list are not properly tupled with the as_tuple() method when it is
  65. a parent result. This is due to the as_tuple() method performing a logical
  66. and operation on the ResultSet.
  67. Fix contributed by Colin McIntosh.
  68. - **Worker**: Fixed wrong values in autoscale related logging message.
  69. Fix contributed by ``@raducc``.
  70. - Documentation improvements by
  71. * Alexandru Chirila
  72. * Michael Aquilina
  73. * Mikko Ekström
  74. * Mitchel Humpherys
  75. * Thomas A. Neil
  76. * Tiago Moreira Vieira
  77. * Yuriy Syrovetskiy
  78. * ``@dessant``
  79. .. _version-3.1.23:
  80. 3.1.23
  81. ======
  82. :release-date: 2016-03-09 06:00 P.M PST
  83. :release-by: Ask Solem
  84. - **Programs**: Last release broke support for the ``--hostnmame`` argument
  85. to :program:`celery multi` and :program:`celery worker --detach`
  86. (Issue #3103).
  87. - **Results**: MongoDB result backend could crash the worker at startup
  88. if not configured using an URL.
  89. .. _version-3.1.22:
  90. 3.1.22
  91. ======
  92. :release-date: 2016-03-07 01:30 P.M PST
  93. :release-by: Ask Solem
  94. - **Programs**: The worker would crash immediately on startup on
  95. ``backend.as_uri()`` when using some result backends (Issue #3094).
  96. - **Programs**: :program:`celery multi`/:program:`celery worker --detach`
  97. would create an extraneous logfile including literal formats (e.g. ``%I``)
  98. in the filename (Issue #3096).
  99. .. _version-3.1.21:
  100. 3.1.21
  101. ======
  102. :release-date: 2016-03-04 11:16 A.M PST
  103. :release-by: Ask Solem
  104. - **Requirements**
  105. - Now depends on :ref:`Kombu 3.0.34 <kombu:version-3.0.34>`.
  106. - Now depends on :mod:`billiard` 3.3.0.23.
  107. - **Prefork pool**: Fixes 100% CPU loop on Linux epoll (Issue #1845).
  108. Also potential fix for: Issue #2142, Issue #2606
  109. - **Prefork pool**: Fixes memory leak related to processes exiting
  110. (Issue #2927).
  111. - **Worker**: Fixes crash at startup when trying to censor passwords
  112. in MongoDB and Cache result backend URLs (Issue #3079, Issue #3045,
  113. Issue #3049, Issue #3068, Issue #3073).
  114. Fix contributed by Maxime Verger.
  115. - **Task**: An exception is now raised if countdown/expires is less
  116. than -2147483648 (Issue #3078).
  117. - **Programs**: :program:`celery shell --ipython` now compatible with newer
  118. IPython versions.
  119. - **Programs**: The DuplicateNodeName warning emitted by inspect/control
  120. now includes a list of the node names returned.
  121. Contributed by Sebastian Kalinowski.
  122. - **Utils**: The ``.discard(item)`` method of
  123. :class:`~celery.datastructures.LimitedSet` did not actually remove the item
  124. (Issue #3087).
  125. Fix contributed by Dave Smith.
  126. - **Worker**: Node name formatting now emits less confusing error message
  127. for unmatched format keys (Issue #3016).
  128. - **Results**: amqp/rpc backends: Fixed deserialization of JSON exceptions
  129. (Issue #2518).
  130. Fix contributed by Allard Hoeve.
  131. - **Prefork pool**: The `process inqueue damaged` error message now includes
  132. the original exception raised.
  133. - **Documentation**: Includes improvements by:
  134. - Jeff Widman.
  135. .. _version-3.1.20:
  136. 3.1.20
  137. ======
  138. :release-date: 2016-01-22 06:50 P.M UTC
  139. :release-by: Ask Solem
  140. - **Requirements**
  141. - Now depends on :ref:`Kombu 3.0.33 <kombu:version-3.0.33>`.
  142. - Now depends on :mod:`billiard` 3.3.0.22.
  143. Includes binary wheels for Microsoft Windows x86 and x86_64!
  144. - **Task**: Error emails now uses ``utf-8`` charset by default (Issue #2737).
  145. - **Task**: Retry now forwards original message headers (Issue #3017).
  146. - **Worker**: Bootsteps can now hook into ``on_node_join``/``leave``/``lost``.
  147. See :ref:`extending-consumer-gossip` for an example.
  148. - **Events**: Fixed handling of DST timezones (Issue #2983).
  149. - **Results**: Redis backend stopped respecting certain settings.
  150. Contributed by Jeremy Llewellyn.
  151. - **Results**: Database backend now properly supports JSON exceptions
  152. (Issue #2441).
  153. - **Results**: Redis ``new_join`` did not properly call task errbacks on chord
  154. error (Issue #2796).
  155. - **Results**: Restores Redis compatibility with redis-py < 2.10.0
  156. (Issue #2903).
  157. - **Results**: Fixed rare issue with chord error handling (Issue #2409).
  158. - **Tasks**: Using queue-name values in :setting:`CELERY_ROUTES` now works
  159. again (Issue #2987).
  160. - **General**: Result backend password now sanitized in report output
  161. (Issue #2812, Issue #2004).
  162. - **Configuration**: Now gives helpful error message when the result backend
  163. configuration points to a module, and not a class (Issue #2945).
  164. - **Results**: Exceptions sent by JSON serialized workers are now properly
  165. handled by pickle configured workers.
  166. - **Programs**: ``celery control autoscale`` now works (Issue #2950).
  167. - **Programs**: ``celery beat --detached`` now runs after fork callbacks.
  168. - **General**: Fix for LRU cache implementation on Python 3.5 (Issue #2897).
  169. Contributed by Dennis Brakhane.
  170. Python 3.5's ``OrderedDict`` does not allow mutation while it is being
  171. iterated over. This breaks "update" if it is called with a dict
  172. larger than the maximum size.
  173. This commit changes the code to a version that does not iterate over
  174. the dict, and should also be a little bit faster.
  175. - **Init scripts**: The beat init script now properly reports service as down
  176. when no pid file can be found.
  177. Eric Zarowny
  178. - **Beat**: Added cleaning of corrupted scheduler files for some storage
  179. backend errors (Issue #2985).
  180. Fix contributed by Aleksandr Kuznetsov.
  181. - **Beat**: Now syncs the schedule even if the schedule is empty.
  182. Fix contributed by Colin McIntosh.
  183. - **Supervisord**: Set higher process priority in supervisord example.
  184. Contributed by George Tantiras.
  185. - **Documentation**: Includes improvements by:
  186. - Bryson
  187. - Caleb Mingle
  188. - Christopher Martin
  189. - Dieter Adriaenssens
  190. - Jason Veatch
  191. - Jeremy Cline
  192. - Juan Rossi
  193. - Kevin Harvey
  194. - Kevin McCarthy
  195. - Kirill Pavlov
  196. - Marco Buttu
  197. - Mayflower
  198. - Mher Movsisyan
  199. - Michael Floering
  200. - michael-k
  201. - Nathaniel Varona
  202. - Rudy Attias
  203. - Ryan Luckie
  204. - Steven Parker
  205. - squfrans
  206. - Tadej Janež
  207. - TakesxiSximada
  208. - Tom S
  209. .. _version-3.1.19:
  210. 3.1.19
  211. ======
  212. :release-date: 2015-10-26 01:00 P.M UTC
  213. :release-by: Ask Solem
  214. - **Requirements**
  215. - Now depends on :ref:`Kombu 3.0.29 <kombu:version-3.0.29>`.
  216. - Now depends on :mod:`billiard` 3.3.0.21.
  217. - **Results**: Fixed MongoDB result backend URL parsing problem
  218. (Issue celery/kombu#375).
  219. - **Worker**: Task request now properly sets ``priority`` in delivery_info.
  220. Fix contributed by Gerald Manipon.
  221. - **Beat**: PyPy shelve may raise ``KeyError`` when setting keys
  222. (Issue #2862).
  223. - **Programs**: :program:`celery beat --deatched` now working on PyPy.
  224. Fix contributed by Krzysztof Bujniewicz.
  225. - **Results**: Redis result backend now ensures all pipelines are cleaned up.
  226. Contributed by Justin Patrin.
  227. - **Results**: Redis result backend now allows for timeout to be set in the
  228. query portion of the result backend URL.
  229. E.g. ``CELERY_RESULT_BACKEND = 'redis://?timeout=10'``
  230. Contributed by Justin Patrin.
  231. - **Results**: ``result.get`` now properly handles failures where the
  232. exception value is set to :const:`None` (Issue #2560).
  233. - **Prefork pool**: Fixed attribute error ``proc.dead``.
  234. - **Worker**: Fixed worker hanging when gossip/heartbeat disabled
  235. (Issue #1847).
  236. Fix contributed by Aaron Webber and Bryan Helmig.
  237. - **Results**: MongoDB result backend now supports pymongo 3.x
  238. (Issue #2744).
  239. Fix contributed by Sukrit Khera.
  240. - **Results**: RPC/amqp backends did not deserialize exceptions properly
  241. (Issue #2691).
  242. Fix contributed by Sukrit Khera.
  243. - **Programs**: Fixed problem with :program:`celery amqp`'s
  244. ``basic_publish`` (Issue #2013).
  245. - **Worker**: Embedded beat now properly sets app for thread/process
  246. (Issue #2594).
  247. - **Documentation**: Many improvements and typos fixed.
  248. Contributions by:
  249. Carlos Garcia-Dubus
  250. D. Yu
  251. jerry
  252. Jocelyn Delalande
  253. Josh Kupershmidt
  254. Juan Rossi
  255. kanemra
  256. Paul Pearce
  257. Pavel Savchenko
  258. Sean Wang
  259. Seungha Kim
  260. Zhaorong Ma
  261. .. _version-3.1.18:
  262. 3.1.18
  263. ======
  264. :release-date: 2015-04-22 05:30 P.M UTC
  265. :release-by: Ask Solem
  266. - **Requirements**
  267. - Now depends on :ref:`Kombu 3.0.25 <kombu:version-3.0.25>`.
  268. - Now depends on :mod:`billiard` 3.3.0.20.
  269. - **Django**: Now supports Django 1.8 (Issue #2536).
  270. Fix contributed by Bence Tamas and Mickaël Penhard.
  271. - **Results**: MongoDB result backend now compatible with pymongo 3.0.
  272. Fix contributed by Fatih Sucu.
  273. - **Tasks**: Fixed bug only happening when a task has multiple callbacks
  274. (Issue #2515).
  275. Fix contributed by NotSqrt.
  276. - **Commands**: Preload options now support ``--arg value`` syntax.
  277. Fix contributed by John Anderson.
  278. - **Compat**: A typo caused ``celery.log.setup_logging_subsystem`` to be
  279. undefined.
  280. Fix contributed by Gunnlaugur Thor Briem.
  281. - **init scripts**: The celerybeat generic init script now uses
  282. ``/bin/sh`` instead of bash (Issue #2496).
  283. Fix contributed by Jelle Verstraaten.
  284. - **Django**: Fixed a :exc:`TypeError` sometimes occurring in logging
  285. when validating models.
  286. Fix contributed by Alexander.
  287. - **Commands**: Worker now supports new ``--executable`` argument that can
  288. be used with ``--detach``.
  289. Contributed by Bert Vanderbauwhede.
  290. - **Canvas**: Fixed crash in chord unlock fallback task (Issue #2404).
  291. - **Worker**: Fixed rare crash occurring with ``--autoscale`` enabled
  292. (Issue #2411).
  293. - **Django**: Properly recycle worker Django database connections when the
  294. Django ``CONN_MAX_AGE`` setting is enabled (Issue #2453).
  295. Fix contributed by Luke Burden.
  296. .. _version-3.1.17:
  297. 3.1.17
  298. ======
  299. :release-date: 2014-11-19 03:30 P.M UTC
  300. :release-by: Ask Solem
  301. .. admonition:: Do not enable the :setting:`CELERYD_FORCE_EXECV` setting!
  302. Please review your configuration and disable this option if you're using the
  303. RabbitMQ or Redis transport.
  304. Keeping this option enabled after 3.1 means the async based prefork pool will
  305. be disabled, which can easily cause instability.
  306. - **Requirements**
  307. - Now depends on :ref:`Kombu 3.0.24 <kombu:version-3.0.24>`.
  308. Includes the new Qpid transport coming in Celery 3.2, backported to
  309. support those who may still require Python 2.6 compatibility.
  310. - Now depends on :mod:`billiard` 3.3.0.19.
  311. - ``celery[librabbitmq]`` now depends on librabbitmq 1.6.1.
  312. - **Task**: The timing of ETA/countdown tasks were off after the example ``LocalTimezone``
  313. implementation in the Python documentation no longer works in Python 3.4.
  314. (Issue #2306).
  315. - **Task**: Raising :exc:`~celery.exceptions.Ignore` no longer sends
  316. ``task-failed`` event (Issue #2365).
  317. - **Redis result backend**: Fixed unbound local errors.
  318. Fix contributed by Thomas French.
  319. - **Task**: Callbacks was not called properly if ``link`` was a list of
  320. signatures (Issuse #2350).
  321. - **Canvas**: chain and group now handles json serialized signatures
  322. (Issue #2076).
  323. - **Results**: ``.join_native()`` would accidentally treat the ``STARTED``
  324. state as being ready (Issue #2326).
  325. This could lead to the chord callback being called with invalid arguments
  326. when using chords with the :setting:`CELERY_TRACK_STARTED` setting
  327. enabled.
  328. - **Canvas**: The ``chord_size`` attribute is now set for all canvas primitives,
  329. making sure more combinations will work with the ``new_join`` optimization
  330. for Redis (Issue #2339).
  331. - **Task**: Fixed problem with app not being properly propagated to
  332. ``trace_task`` in all cases.
  333. Fix contributed by kristaps.
  334. - **Worker**: Expires from task message now associated with a timezone.
  335. Fix contributed by Albert Wang.
  336. - **Cassandra result backend**: Fixed problems when using detailed mode.
  337. When using the Cassandra backend in detailed mode, a regression
  338. caused errors when attempting to retrieve results.
  339. Fix contributed by Gino Ledesma.
  340. - **Mongodb Result backend**: Pickling the backend instance will now include
  341. the original url (Issue #2347).
  342. Fix contributed by Sukrit Khera.
  343. - **Task**: Exception info was not properly set for tasks raising
  344. :exc:`~celery.exceptions.Reject` (Issue #2043).
  345. - **Worker**: Duplicates are now removed when loading the set of revoked tasks
  346. from the worker state database (Issue #2336).
  347. - **celery.contrib.rdb**: Fixed problems with ``rdb.set_trace`` calling stop
  348. from the wrong frame.
  349. Fix contributed by llllllllll.
  350. - **Canvas**: ``chain`` and ``chord`` can now be immutable.
  351. - **Canvas**: ``chord.apply_async`` will now keep partial args set in
  352. ``self.args`` (Issue #2299).
  353. - **Results**: Small refactoring so that results are decoded the same way in
  354. all result backends.
  355. - **Logging**: The ``processName`` format was introduced in Py2.6.2 so for
  356. compatibility this format is now excluded when using earlier versions
  357. (Issue #1644).
  358. .. _version-3.1.16:
  359. 3.1.16
  360. ======
  361. :release-date: 2014-10-03 06:00 P.M UTC
  362. :release-by: Ask Solem
  363. - **Worker**: 3.1.15 broke ``-Ofair`` behavior (Issue #2286).
  364. This regression could result in all tasks executing
  365. in a single child process if ``-Ofair`` was enabled.
  366. - **Canvas**: ``celery.signature`` now properly forwards app argument
  367. in all cases.
  368. - **Task**: ``.retry()`` did not raise the exception correctly
  369. when called without a current exception.
  370. Fix contributed by Andrea Rabbaglietti.
  371. - **Worker**: The ``enable_events`` remote control command
  372. disabled worker-related events by mistake (Issue #2272).
  373. Fix contributed by Konstantinos Koukopoulos.
  374. - **Django**: Adds support for Django 1.7 class names in INSTALLED_APPS
  375. when using ``app.autodiscover_tasks()`` (Issue #2248).
  376. - **Sphinx**: ``celery.contrib.sphinx`` now uses ``getfullargspec``
  377. on Python 3 (Issue #2302).
  378. - **Redis/Cache Backends**: Chords will now run at most once if one or more tasks
  379. in the chord are executed multiple times for some reason.
  380. .. _version-3.1.15:
  381. 3.1.15
  382. ======
  383. :release-date: 2014-09-14 11:00 P.M UTC
  384. :release-by: Ask Solem
  385. - **Django**: Now makes sure ``django.setup()`` is called
  386. before importing any task modules (Django 1.7 compatibility, Issue #2227)
  387. - **Results**: ``result.get()`` was misbehaving by calling
  388. ``backend.get_task_meta`` in a finally call leading to
  389. AMQP result backend queues not being properly cleaned up (Issue #2245).
  390. .. _version-3.1.14:
  391. 3.1.14
  392. ======
  393. :release-date: 2014-09-08 03:00 P.M UTC
  394. :release-by: Ask Solem
  395. - **Requirements**
  396. - Now depends on :ref:`Kombu 3.0.22 <kombu:version-3.0.22>`.
  397. - **Init scripts**: The generic worker init scripts ``status`` command
  398. now gets an accurate pidfile list (Issue #1942).
  399. - **Init scripts**: The generic beat script now implements the ``status``
  400. command.
  401. Contributed by John Whitlock.
  402. - **Commands**: Multi now writes informational output to stdout instead of stderr.
  403. - **Worker**: Now ignores not implemented error for ``pool.restart``
  404. (Issue #2153).
  405. - **Task**: Retry no longer raises retry exception when executed in eager
  406. mode (Issue #2164).
  407. - **AMQP Result backend**: Now ensured ``on_interval`` is called at least
  408. every second for blocking calls to properly propagate parent errors.
  409. - **Django**: Compatibility with Django 1.7 on Windows (Issue #2126).
  410. - **Programs**: `--umask` argument can be now specified in both octal (if starting
  411. with 0) or decimal.
  412. .. _version-3.1.13:
  413. 3.1.13
  414. ======
  415. Security Fixes
  416. --------------
  417. * [Security: `CELERYSA-0002`_] Insecure default umask.
  418. The built-in utility used to daemonize the Celery worker service sets
  419. an insecure umask by default (umask 0).
  420. This means that any files or directories created by the worker will
  421. end up having world-writable permissions.
  422. Special thanks to Red Hat for originally discovering and reporting the
  423. issue!
  424. This version will no longer set a default umask by default, so if unset
  425. the umask of the parent process will be used.
  426. .. _`CELERYSA-0002`:
  427. http://github.com/celery/celery/tree/master/docs/sec/CELERYSA-0002.txt
  428. News
  429. ----
  430. - **Requirements**
  431. - Now depends on :ref:`Kombu 3.0.21 <kombu:version-3.0.21>`.
  432. - Now depends on :mod:`billiard` 3.3.0.18.
  433. - **App**: ``backend`` argument now also sets the :setting:`CELERY_RESULT_BACKEND`
  434. setting.
  435. - **Task**: ``signature_from_request`` now propagates ``reply_to`` so that
  436. the RPC backend works with retried tasks (Issue #2113).
  437. - **Task**: ``retry`` will no longer attempt to requeue the task if sending
  438. the retry message fails.
  439. Unrelated exceptions being raised could cause a message loop, so it was
  440. better to remove this behavior.
  441. - **Beat**: Accounts for standard 1ms drift by always waking up 0.010s
  442. earlier.
  443. This will adjust the latency so that the periodic tasks will not move
  444. 1ms after every invocation.
  445. - Documentation fixes
  446. Contributed by Yuval Greenfield, Lucas Wiman, nicholsonjf
  447. - **Worker**: Removed an outdated assert statement that could lead to errors
  448. being masked (Issue #2086).
  449. .. _version-3.1.12:
  450. 3.1.12
  451. ======
  452. :release-date: 2014-06-09 10:12 P.M UTC
  453. :release-by: Ask Solem
  454. - **Requirements**
  455. Now depends on :ref:`Kombu 3.0.19 <kombu:version-3.0.19>`.
  456. - **App**: Connections were not being closed after fork due to an error in the
  457. after fork handler (Issue #2055).
  458. This could manifest itself by causing framing errors when using RabbitMQ.
  459. (``Unexpected frame``).
  460. - **Django**: ``django.setup()`` was being called too late when
  461. using Django 1.7 (Issue #1802).
  462. - **Django**: Fixed problems with event timezones when using Django
  463. (``Substantial drift``).
  464. Celery did not take into account that Django modifies the
  465. ``time.timeone`` attributes and friends.
  466. - **Canvas**: ``Signature.link`` now works when the link option is a scalar
  467. value (Issue #2019).
  468. - **Prefork pool**: Fixed race conditions for when file descriptors are
  469. removed from the event loop.
  470. Fix contributed by Roger Hu.
  471. - **Prefork pool**: Improved solution for dividing tasks between child
  472. processes.
  473. This change should improve performance when there are many child
  474. processes, and also decrease the chance that two subsequent tasks are
  475. written to the same child process.
  476. - **Worker**: Now ignores unknown event types, instead of crashing.
  477. Fix contributed by Illes Solt.
  478. - **Programs**: :program:`celery worker --detach` no longer closes open file
  479. descriptors when :envvar:`C_FAKEFORK` is used so that the workers output
  480. can be seen.
  481. - **Programs**: The default working directory for :program:`celery worker
  482. --detach` is now the current working directory, not ``/``.
  483. - **Canvas**: ``signature(s, app=app)`` did not upgrade serialized signatures
  484. to their original class (``subtask_type``) when the ``app`` keyword argument
  485. was used.
  486. - **Control**: The ``duplicate nodename`` warning emitted by control commands
  487. now shows the duplicate node name.
  488. - **Tasks**: Can now call ``ResultSet.get()`` on a result set without members.
  489. Fix contributed by Alexey Kotlyarov.
  490. - **App**: Fixed strange traceback mangling issue for
  491. ``app.connection_or_acquire``.
  492. - **Programs**: The :program:`celery multi stopwait` command is now documented
  493. in usage.
  494. - **Other**: Fixed cleanup problem with ``PromiseProxy`` when an error is
  495. raised while trying to evaluate the promise.
  496. - **Other**: The utility used to censor configuration values now handles
  497. non-string keys.
  498. Fix contributed by Luke Pomfrey.
  499. - **Other**: The ``inspect conf`` command did not handle non-string keys well.
  500. Fix contributed by Jay Farrimond.
  501. - **Programs**: Fixed argument handling problem in
  502. :program:`celery worker --detach`.
  503. Fix contributed by Dmitry Malinovsky.
  504. - **Programs**: :program:`celery worker --detach` did not forward working
  505. directory option (Issue #2003).
  506. - **Programs**: :program:`celery inspect registered` no longer includes
  507. the list of built-in tasks.
  508. - **Worker**: The ``requires`` attribute for boot steps were not being handled
  509. correctly (Issue #2002).
  510. - **Eventlet**: The eventlet pool now supports the ``pool_grow`` and
  511. ``pool_shrink`` remote control commands.
  512. Contributed by Mher Movsisyan.
  513. - **Eventlet**: The eventlet pool now implements statistics for
  514. :program:``celery inspect stats``.
  515. Contributed by Mher Movsisyan.
  516. - **Documentation**: Clarified ``Task.rate_limit`` behavior.
  517. Contributed by Jonas Haag.
  518. - **Documentation**: ``AbortableTask`` examples now updated to use the new
  519. API (Issue #1993).
  520. - **Documentation**: The security documentation examples used an out of date
  521. import.
  522. Fix contributed by Ian Dees.
  523. - **Init scripts**: The CentOS init scripts did not quote
  524. :envvar:`CELERY_CHDIR`.
  525. Fix contributed by ffeast.
  526. .. _version-3.1.11:
  527. 3.1.11
  528. ======
  529. :release-date: 2014-04-16 11:00 P.M UTC
  530. :release-by: Ask Solem
  531. - **Now compatible with RabbitMQ 3.3.0**
  532. You need to run Celery 3.1.11 or later when using RabbitMQ 3.3,
  533. and if you use the ``librabbitmq`` module you also have to upgrade
  534. to librabbitmq 1.5.0:
  535. .. code-block:: bash
  536. $ pip install -U librabbitmq
  537. - **Requirements**:
  538. - Now depends on :ref:`Kombu 3.0.15 <kombu:version-3.0.15>`.
  539. - Now depends on `billiard 3.3.0.17`_.
  540. - Bundle ``celery[librabbitmq]`` now depends on :mod:`librabbitmq` 1.5.0.
  541. .. _`billiard 3.3.0.17`:
  542. https://github.com/celery/billiard/blob/master/CHANGES.txt
  543. - **Tasks**: The :setting:`CELERY_DEFAULT_DELIVERY_MODE` setting was being
  544. ignored (Issue #1953).
  545. - **Worker**: New :option:`--heartbeat-interval` can be used to change the
  546. time (in seconds) between sending event heartbeats.
  547. Contributed by Matthew Duggan and Craig Northway.
  548. - **App**: Fixed memory leaks occurring when creating lots of temporary
  549. app instances (Issue #1949).
  550. - **MongoDB**: SSL configuration with non-MongoDB transport breaks MongoDB
  551. results backend (Issue #1973).
  552. Fix contributed by Brian Bouterse.
  553. - **Logging**: The color formatter accidentally modified ``record.msg``
  554. (Issue #1939).
  555. - **Results**: Fixed problem with task trails being stored multiple times,
  556. causing ``result.collect()`` to hang (Issue #1936, Issue #1943).
  557. - **Results**: ``ResultSet`` now implements a ``.backend`` attribute for
  558. compatibility with ``AsyncResult``.
  559. - **Results**: ``.forget()`` now also clears the local cache.
  560. - **Results**: Fixed problem with multiple calls to ``result._set_cache``
  561. (Issue #1940).
  562. - **Results**: ``join_native`` populated result cache even if disabled.
  563. - **Results**: The YAML result serializer should now be able to handle storing
  564. exceptions.
  565. - **Worker**: No longer sends task error emails for expected errors (in
  566. ``@task(throws=(..., )))``.
  567. - **Canvas**: Fixed problem with exception deserialization when using
  568. the JSON serializer (Issue #1987).
  569. - **Eventlet**: Fixes crash when ``celery.contrib.batches`` attempted to
  570. cancel a non-existing timer (Issue #1984).
  571. - Can now import ``celery.version_info_t``, and ``celery.five`` (Issue #1968).
  572. .. _version-3.1.10:
  573. 3.1.10
  574. ======
  575. :release-date: 2014-03-22 09:40 P.M UTC
  576. :release-by: Ask Solem
  577. - **Requirements**:
  578. - Now depends on :ref:`Kombu 3.0.14 <kombu:version-3.0.14>`.
  579. - **Results**:
  580. Reliability improvements to the SQLAlchemy database backend. Previously the
  581. connection from the MainProcess was improperly shared with the workers.
  582. (Issue #1786)
  583. - **Redis:** Important note about events (Issue #1882).
  584. There is a new transport option for Redis that enables monitors
  585. to filter out unwanted events. Enabling this option in the workers
  586. will increase performance considerably:
  587. .. code-block:: python
  588. BROKER_TRANSPORT_OPTIONS = {'fanout_patterns': True}
  589. Enabling this option means that your workers will not be able to see
  590. workers with the option disabled (or is running an older version of
  591. Celery), so if you do enable it then make sure you do so on all
  592. nodes.
  593. See :ref:`redis-caveats`.
  594. This will be the default in Celery 3.2.
  595. - **Results**: The :class:`@AsyncResult` object now keeps a local cache
  596. of the final state of the task.
  597. This means that the global result cache can finally be disabled,
  598. and you can do so by setting :setting:`CELERY_MAX_CACHED_RESULTS` to
  599. :const:`-1`. The lifetime of the cache will then be bound to the
  600. lifetime of the result object, which will be the default behavior
  601. in Celery 3.2.
  602. - **Events**: The "Substantial drift" warning message is now logged once
  603. per node name only (Issue #1802).
  604. - **Worker**: Ability to use one log file per child process when using the
  605. prefork pool.
  606. This can be enabled by using the new ``%i`` and ``%I`` format specifiers
  607. for the log file name. See :ref:`worker-files-process-index`.
  608. - **Redis**: New experimental chord join implementation.
  609. This is an optimization for chords when using the Redis result backend,
  610. where the join operation is now considerably faster and using less
  611. resources than the previous strategy.
  612. The new option can be set in the result backend URL:
  613. CELERY_RESULT_BACKEND = 'redis://localhost?new_join=1'
  614. This must be enabled manually as it's incompatible
  615. with workers and clients not using it, so be sure to enable
  616. the option in all clients and workers if you decide to use it.
  617. - **Multi**: With ``-opt:index`` (e.g. :option:`-c:1`) the index now always refers
  618. to the position of a node in the argument list.
  619. This means that referring to a number will work when specifying a list
  620. of node names and not just for a number range:
  621. .. code-block:: bash
  622. celery multi start A B C D -c:1 4 -c:2-4 8
  623. In this example ``1`` refers to node A (as it's the first node in the
  624. list).
  625. - **Signals**: The sender argument to ``Signal.connect`` can now be a proxy
  626. object, which means that it can be used with the task decorator
  627. (Issue #1873).
  628. - **Task**: A regression caused the ``queue`` argument to ``Task.retry`` to be
  629. ignored (Issue #1892).
  630. - **App**: Fixed error message for :meth:`~@Celery.config_from_envvar`.
  631. Fix contributed by Dmitry Malinovsky.
  632. - **Canvas**: Chords can now contain a group of other chords (Issue #1921).
  633. - **Canvas**: Chords can now be combined when using the amqp result backend
  634. (a chord where the callback is also a chord).
  635. - **Canvas**: Calling ``result.get()`` for a chain task will now complete
  636. even if one of the tasks in the chain is ``ignore_result=True``
  637. (Issue #1905).
  638. - **Canvas**: Worker now also logs chord errors.
  639. - **Canvas**: A chord task raising an exception will now result in
  640. any errbacks (``link_error``) to the chord callback to also be called.
  641. - **Results**: Reliability improvements to the SQLAlchemy database backend
  642. (Issue #1786).
  643. Previously the connection from the ``MainProcess`` was improperly
  644. inherited by child processes.
  645. Fix contributed by Ionel Cristian Mărieș.
  646. - **Task**: Task callbacks and errbacks are now called using the group
  647. primitive.
  648. - **Task**: ``Task.apply`` now properly sets ``request.headers``
  649. (Issue #1874).
  650. - **Worker**: Fixed ``UnicodeEncodeError`` occuring when worker is started
  651. by `supervisord`.
  652. Fix contributed by Codeb Fan.
  653. - **Beat**: No longer attempts to upgrade a newly created database file
  654. (Issue #1923).
  655. - **Beat**: New setting :setting:``CELERYBEAT_SYNC_EVERY`` can be be used
  656. to control file sync by specifying the number of tasks to send between
  657. each sync.
  658. Contributed by Chris Clark.
  659. - **Commands**: :program:`celery inspect memdump` no longer crashes
  660. if the :mod:`psutil` module is not installed (Issue #1914).
  661. - **Worker**: Remote control commands now always accepts json serialized
  662. messages (Issue #1870).
  663. - **Worker**: Gossip will now drop any task related events it receives
  664. by mistake (Issue #1882).
  665. .. _version-3.1.9:
  666. 3.1.9
  667. =====
  668. :release-date: 2014-02-10 06:43 P.M UTC
  669. :release-by: Ask Solem
  670. - **Requirements**:
  671. - Now depends on :ref:`Kombu 3.0.12 <kombu:version-3.0.12>`.
  672. - **Prefork pool**: Better handling of exiting child processes.
  673. Fix contributed by Ionel Cristian Mărieș.
  674. - **Prefork pool**: Now makes sure all file descriptors are removed
  675. from the hub when a process is cleaned up.
  676. Fix contributed by Ionel Cristian Mărieș.
  677. - **New Sphinx extension**: for autodoc documentation of tasks:
  678. :mod:`celery.contrib.spinx` (Issue #1833).
  679. - **Django**: Now works with Django 1.7a1.
  680. - **Task**: Task.backend is now a property that forwards to ``app.backend``
  681. if no custom backend has been specified for the task (Issue #1821).
  682. - **Generic init scripts**: Fixed bug in stop command.
  683. Fix contributed by Rinat Shigapov.
  684. - **Generic init scripts**: Fixed compatibility with GNU :manpage:`stat`.
  685. Fix contributed by Paul Kilgo.
  686. - **Generic init scripts**: Fixed compatibility with the minimal
  687. :program:`dash` shell (Issue #1815).
  688. - **Commands**: The :program:`celery amqp basic.publish` command was not
  689. working properly.
  690. Fix contributed by Andrey Voronov.
  691. - **Commands**: Did no longer emit an error message if the pidfile exists
  692. and the process is still alive (Issue #1855).
  693. - **Commands**: Better error message for missing arguments to preload
  694. options (Issue #1860).
  695. - **Commands**: :program:`celery -h` did not work because of a bug in the
  696. argument parser (Issue #1849).
  697. - **Worker**: Improved error message for message decoding errors.
  698. - **Time**: Now properly parses the `Z` timezone specifier in ISO 8601 date
  699. strings.
  700. Fix contributed by Martin Davidsson.
  701. - **Worker**: Now uses the *negotiated* heartbeat value to calculate
  702. how often to run the heartbeat checks.
  703. - **Beat**: Fixed problem with beat hanging after the first schedule
  704. iteration (Issue #1822).
  705. Fix contributed by Roger Hu.
  706. - **Signals**: The header argument to :signal:`before_task_publish` is now
  707. always a dictionary instance so that signal handlers can add headers.
  708. - **Worker**: A list of message headers is now included in message related
  709. errors.
  710. .. _version-3.1.8:
  711. 3.1.8
  712. =====
  713. :release-date: 2014-01-17 10:45 P.M UTC
  714. :release-by: Ask Solem
  715. - **Requirements**:
  716. - Now depends on :ref:`Kombu 3.0.10 <kombu:version-3.0.10>`.
  717. - Now depends on `billiard 3.3.0.14`_.
  718. .. _`billiard 3.3.0.14`:
  719. https://github.com/celery/billiard/blob/master/CHANGES.txt
  720. - **Worker**: The event loop was not properly reinitialized at consumer restart
  721. which would force the worker to continue with a closed ``epoll`` instance on
  722. Linux, resulting in a crash.
  723. - **Events:** Fixed issue with both heartbeats and task events that could
  724. result in the data not being kept in sorted order.
  725. As a result this would force the worker to log "heartbeat missed"
  726. events even though the remote node was sending heartbeats in a timely manner.
  727. - **Results:** The pickle serializer no longer converts group results to tuples,
  728. and will keep the original type (*Issue #1750*).
  729. - **Results:** ``ResultSet.iterate`` is now pending deprecation.
  730. The method will be deprecated in version 3.2 and removed in version 3.3.
  731. Use ``result.get(callback=)`` (or ``result.iter_native()`` where available)
  732. instead.
  733. - **Worker**\|eventlet/gevent: A regression caused ``Ctrl+C`` to be ineffective
  734. for shutdown.
  735. - **Redis result backend:** Now using a pipeline to store state changes
  736. for improved performance.
  737. Contributed by Pepijn de Vos.
  738. - **Redis result backend:** Will now retry storing the result if disconnected.
  739. - **Worker**\|gossip: Fixed attribute error occurring when another node leaves.
  740. Fix contributed by Brodie Rao.
  741. - **Generic init scripts:** Now runs a check at startup to verify
  742. that any configuration scripts are owned by root and that they
  743. are not world/group writeable.
  744. The init script configuration is a shell script executed by root,
  745. so this is a preventive measure to ensure that users do not
  746. leave this file vulnerable to changes by unprivileged users.
  747. .. note::
  748. Note that upgrading celery will not update the init scripts,
  749. instead you need to manually copy the improved versions from the
  750. source distribution:
  751. https://github.com/celery/celery/tree/3.1/extra/generic-init.d
  752. - **Commands**: The :program:`celery purge` command now warns that the operation
  753. will delete all tasks and prompts the user for confirmation.
  754. A new :option:`-f` was added that can be used to disable
  755. interactive mode.
  756. - **Task**: ``.retry()`` did not raise the value provided in the ``exc`` argument
  757. when called outside of an error context (*Issue #1755*).
  758. - **Commands:** The :program:`celery multi` command did not forward command
  759. line configuration to the target workers.
  760. The change means that multi will forward the special ``--`` argument and
  761. configuration content at the end of the arguments line to the specified
  762. workers.
  763. Example using command-line configuration to set a broker heartbeat
  764. from :program:`celery multi`:
  765. .. code-block:: bash
  766. $ celery multi start 1 -c3 -- broker.heartbeat=30
  767. Fix contributed by Antoine Legrand.
  768. - **Canvas:** ``chain.apply_async()`` now properly forwards execution options.
  769. Fix contributed by Konstantin Podshumok.
  770. - **Redis result backend:** Now takes ``connection_pool`` argument that can be
  771. used to change the connection pool class/constructor.
  772. - **Worker:** Now truncates very long arguments and keyword arguments logged by
  773. the pool at debug severity.
  774. - **Worker:** The worker now closes all open files on :sig:`SIGHUP` (regression)
  775. (*Issue #1768*).
  776. Fix contributed by Brodie Rao
  777. - **Worker:** Will no longer accept remote control commands while the
  778. worker startup phase is incomplete (*Issue #1741*).
  779. - **Commands:** The output of the event dump utility
  780. (:program:`celery events -d`) can now be piped into other commands.
  781. - **Documentation:** The RabbitMQ installation instructions for OS X was
  782. updated to use modern homebrew practices.
  783. Contributed by Jon Chen.
  784. - **Commands:** The :program:`celery inspect conf` utility now works.
  785. - **Commands:** The :option:`-no-color` argument was not respected by
  786. all commands (*Issue #1799*).
  787. - **App:** Fixed rare bug with ``autodiscover_tasks()`` (*Issue #1797*).
  788. - **Distribution:** The sphinx docs will now always add the parent directory
  789. to path so that the current celery source code is used as a basis for
  790. API documentation (*Issue #1782*).
  791. - **Documentation:** Supervisord examples contained an extraneous '-' in a
  792. `--logfile` argument example.
  793. Fix contributed by Mohammad Almeer.
  794. .. _version-3.1.7:
  795. 3.1.7
  796. =====
  797. :release-date: 2013-12-17 06:00 P.M UTC
  798. :release-by: Ask Solem
  799. .. _v317-important:
  800. Important Notes
  801. ---------------
  802. Init script security improvements
  803. ---------------------------------
  804. Where the generic init scripts (for ``celeryd``, and ``celerybeat``) before
  805. delegated the responsibility of dropping privileges to the target application,
  806. it will now use ``su`` instead, so that the Python program is not trusted
  807. with superuser privileges.
  808. This is not in reaction to any known exploit, but it will
  809. limit the possibility of a privilege escalation bug being abused in the
  810. future.
  811. You have to upgrade the init scripts manually from this directory:
  812. https://github.com/celery/celery/tree/3.1/extra/generic-init.d
  813. AMQP result backend
  814. ~~~~~~~~~~~~~~~~~~~
  815. The 3.1 release accidentally left the amqp backend configured to be
  816. non-persistent by default.
  817. Upgrading from 3.0 would give a "not equivalent" error when attempting to
  818. set or retrieve results for a task. That is unless you manually set the
  819. persistence setting::
  820. CELERY_RESULT_PERSISTENT = True
  821. This version restores the previous value so if you already forced
  822. the upgrade by removing the existing exchange you must either
  823. keep the configuration by setting ``CELERY_RESULT_PERSISTENT = False``
  824. or delete the ``celeryresults`` exchange again.
  825. Synchronous subtasks
  826. ~~~~~~~~~~~~~~~~~~~~
  827. Tasks waiting for the result of a subtask will now emit
  828. a :exc:`RuntimeWarning` warning when using the prefork pool,
  829. and in 3.2 this will result in an exception being raised.
  830. It's not legal for tasks to block by waiting for subtasks
  831. as this is likely to lead to resource starvation and eventually
  832. deadlock when using the prefork pool (see also :ref:`task-synchronous-subtasks`).
  833. If you really know what you are doing you can avoid the warning (and
  834. the future exception being raised) by moving the operation in a whitelist
  835. block:
  836. .. code-block:: python
  837. from celery.result import allow_join_result
  838. @app.task
  839. def misbehaving():
  840. result = other_task.delay()
  841. with allow_join_result():
  842. result.get()
  843. Note also that if you wait for the result of a subtask in any form
  844. when using the prefork pool you must also disable the pool prefetching
  845. behavior with the worker :ref:`-Ofair option <prefork-pool-prefetch>`.
  846. .. _v317-fixes:
  847. Fixes
  848. -----
  849. - Now depends on :ref:`Kombu 3.0.8 <kombu:version-3.0.8>`.
  850. - Now depends on :mod:`billiard` 3.3.0.13
  851. - Events: Fixed compatibility with non-standard json libraries
  852. that sends float as :class:`decimal.Decimal` (Issue #1731)
  853. - Events: State worker objects now always defines attributes:
  854. ``active``, ``processed``, ``loadavg``, ``sw_ident``, ``sw_ver``
  855. and ``sw_sys``.
  856. - Worker: Now keeps count of the total number of tasks processed,
  857. not just by type (``all_active_count``).
  858. - Init scripts: Fixed problem with reading configuration file
  859. when the init script is symlinked to a runlevel (e.g. ``S02celeryd``).
  860. (Issue #1740).
  861. This also removed a rarely used feature where you can symlink the script
  862. to provide alternative configurations. You instead copy the script
  863. and give it a new name, but perhaps a better solution is to provide
  864. arguments to ``CELERYD_OPTS`` to separate them:
  865. .. code-block:: bash
  866. CELERYD_NODES="X1 X2 Y1 Y2"
  867. CELERYD_OPTS="-A:X1 x -A:X2 x -A:Y1 y -A:Y2 y"
  868. - Fallback chord unlock task is now always called after the chord header
  869. (Issue #1700).
  870. This means that the unlock task will not be started if there's
  871. an error sending the header.
  872. - Celery command: Fixed problem with arguments for some control commands.
  873. Fix contributed by Konstantin Podshumok.
  874. - Fixed bug in ``utcoffset`` where the offset when in DST would be
  875. completely wrong (Issue #1743).
  876. - Worker: Errors occurring while attempting to serialize the result of a
  877. task will now cause the task to be marked with failure and a
  878. :class:`kombu.exceptions.EncodingError` error.
  879. Fix contributed by Ionel Cristian Mărieș.
  880. - Worker with ``-B`` argument did not properly shut down the beat instance.
  881. - Worker: The ``%n`` and ``%h`` formats are now also supported by the
  882. :option:`--logfile`, :option:`--pidfile` and :option:`--statedb` arguments.
  883. Example:
  884. .. code-block:: bash
  885. $ celery -A proj worker -n foo@%h --logfile=%n.log --statedb=%n.db
  886. - Redis/Cache result backends: Will now timeout if keys evicted while trying
  887. to join a chord.
  888. - The fallbock unlock chord task now raises :exc:`Retry` so that the
  889. retry even is properly logged by the worker.
  890. - Multi: Will no longer apply Eventlet/gevent monkey patches (Issue #1717).
  891. - Redis result backend: Now supports UNIX sockets.
  892. Like the Redis broker transport the result backend now also supports
  893. using ``redis+socket:///tmp/redis.sock`` URLs.
  894. Contributed by Alcides Viamontes Esquivel.
  895. - Events: Events sent by clients was mistaken for worker related events
  896. (Issue #1714).
  897. For ``events.State`` the tasks now have a ``Task.client`` attribute
  898. that is set when a ``task-sent`` event is being received.
  899. Also, a clients logical clock is not in sync with the cluster so
  900. they live in a "time bubble". So for this reason monitors will no
  901. longer attempt to merge with the clock of an event sent by a client,
  902. instead it will fake the value by using the current clock with
  903. a skew of -1.
  904. - Prefork pool: The method used to find terminated processes was flawed
  905. in that it did not also take into account missing popen objects.
  906. - Canvas: ``group`` and ``chord`` now works with anon signatures as long
  907. as the group/chord object is associated with an app instance (Issue #1744).
  908. You can pass the app by using ``group(..., app=app)``.
  909. .. _version-3.1.6:
  910. 3.1.6
  911. =====
  912. :release-date: 2013-12-02 06:00 P.M UTC
  913. :release-by: Ask Solem
  914. - Now depends on :mod:`billiard` 3.3.0.10.
  915. - Now depends on :ref:`Kombu 3.0.7 <kombu:version-3.0.7>`.
  916. - Fixed problem where Mingle caused the worker to hang at startup
  917. (Issue #1686).
  918. - Beat: Would attempt to drop privileges twice (Issue #1708).
  919. - Windows: Fixed error with ``geteuid`` not being available (Issue #1676).
  920. - Tasks can now provide a list of expected error classes (Issue #1682).
  921. The list should only include errors that the task is expected to raise
  922. during normal operation::
  923. @task(throws=(KeyError, HttpNotFound))
  924. What happens when an exceptions is raised depends on the type of error:
  925. - Expected errors (included in ``Task.throws``)
  926. Will be logged using severity ``INFO``, and traceback is excluded.
  927. - Unexpected errors
  928. Will be logged using severity ``ERROR``, with traceback included.
  929. - Cache result backend now compatible with Python 3 (Issue #1697).
  930. - CentOS init script: Now compatible with sys-v style init symlinks.
  931. Fix contributed by Jonathan Jordan.
  932. - Events: Fixed problem when task name is not defined (Issue #1710).
  933. Fix contributed by Mher Movsisyan.
  934. - Task: Fixed unbound local errors (Issue #1684).
  935. Fix contributed by Markus Ullmann.
  936. - Canvas: Now unrolls groups with only one task (optimization) (Issue #1656).
  937. - Task: Fixed problem with eta and timezones.
  938. Fix contributed by Alexander Koval.
  939. - Django: Worker now performs model validation (Issue #1681).
  940. - Task decorator now emits less confusing errors when used with
  941. incorrect arguments (Issue #1692).
  942. - Task: New method ``Task.send_event`` can be used to send custom events
  943. to Flower and other monitors.
  944. - Fixed a compatibility issue with non-abstract task classes
  945. - Events from clients now uses new node name format (``gen<pid>@<hostname>``).
  946. - Fixed rare bug with Callable not being defined at interpreter shutdown
  947. (Issue #1678).
  948. Fix contributed by Nick Johnson.
  949. - Fixed Python 2.6 compatibility (Issue #1679).
  950. .. _version-3.1.5:
  951. 3.1.5
  952. =====
  953. :release-date: 2013-11-21 06:20 P.M UTC
  954. :release-by: Ask Solem
  955. - Now depends on :ref:`Kombu 3.0.6 <kombu:version-3.0.6>`.
  956. - Now depends on :mod:`billiard` 3.3.0.8
  957. - App: ``config_from_object`` is now lazy (Issue #1665).
  958. - App: ``autodiscover_tasks`` is now lazy.
  959. Django users should now wrap access to the settings object
  960. in a lambda::
  961. app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
  962. this ensures that the settings object is not prepared
  963. prematurely.
  964. - Fixed regression for ``--app`` argument experienced by
  965. some users (Issue #1653).
  966. - Worker: Now respects the ``--uid`` and ``--gid`` arguments
  967. even if ``--detach`` is not enabled.
  968. - Beat: Now respects the ``--uid`` and ``--gid`` arguments
  969. even if ``--detach`` is not enabled.
  970. - Python 3: Fixed unorderable error occuring with the worker ``-B``
  971. argument enabled.
  972. - ``celery.VERSION`` is now a named tuple.
  973. - ``maybe_signature(list)`` is now applied recursively (Issue #1645).
  974. - ``celery shell`` command: Fixed ``IPython.frontend`` deprecation warning.
  975. - The default app no longer includes the builtin fixups.
  976. This fixes a bug where ``celery multi`` would attempt
  977. to load the Django settings module before entering
  978. the target working directory.
  979. - The Django daemonization tutorial was changed.
  980. Users no longer have to explicitly export ``DJANGO_SETTINGS_MODULE``
  981. in :file:`/etc/default/celeryd` when the new project layout is used.
  982. - Redis result backend: expiry value can now be 0 (Issue #1661).
  983. - Censoring settings now accounts for non-string keys (Issue #1663).
  984. - App: New ``autofinalize`` option.
  985. Apps are automatically finalized when the task registry is accessed.
  986. You can now disable this behavior so that an exception is raised
  987. instead.
  988. Example:
  989. .. code-block:: python
  990. app = Celery(autofinalize=False)
  991. # raises RuntimeError
  992. tasks = app.tasks
  993. @app.task
  994. def add(x, y):
  995. return x + y
  996. # raises RuntimeError
  997. add.delay(2, 2)
  998. app.finalize()
  999. # no longer raises:
  1000. tasks = app.tasks
  1001. add.delay(2, 2)
  1002. - The worker did not send monitoring events during shutdown.
  1003. - Worker: Mingle and gossip is now automatically disabled when
  1004. used with an unsupported transport (Issue #1664).
  1005. - ``celery`` command: Preload options now supports
  1006. the rare ``--opt value`` format (Issue #1668).
  1007. - ``celery`` command: Accidentally removed options
  1008. appearing before the subcommand, these are now moved to the end
  1009. instead.
  1010. - Worker now properly responds to ``inspect stats`` commands
  1011. even if received before startup is complete (Issue #1659).
  1012. - :signal:`task_postrun` is now sent within a finally block, to make
  1013. sure the signal is always sent.
  1014. - Beat: Fixed syntax error in string formatting.
  1015. Contributed by nadad.
  1016. - Fixed typos in the documentation.
  1017. Fixes contributed by Loic Bistuer, sunfinite.
  1018. - Nested chains now works properly when constructed using the
  1019. ``chain`` type instead of the ``|`` operator (Issue #1656).
  1020. .. _version-3.1.4:
  1021. 3.1.4
  1022. =====
  1023. :release-date: 2013-11-15 11:40 P.M UTC
  1024. :release-by: Ask Solem
  1025. - Now depends on :ref:`Kombu 3.0.5 <kombu:version-3.0.5>`.
  1026. - Now depends on :mod:`billiard` 3.3.0.7
  1027. - Worker accidentally set a default socket timeout of 5 seconds.
  1028. - Django: Fixup now sets the default app so that threads will use
  1029. the same app instance (e.g. for manage.py runserver).
  1030. - Worker: Fixed Unicode error crash at startup experienced by some users.
  1031. - Calling ``.apply_async`` on an empty chain now works again (Issue #1650).
  1032. - The ``celery multi show`` command now generates the same arguments
  1033. as the start command does.
  1034. - The ``--app`` argument could end up using a module object instead
  1035. of an app instance (with a resulting crash).
  1036. - Fixed a syntax error problem in the celerybeat init script.
  1037. Fix contributed by Vsevolod.
  1038. - Tests now passing on PyPy 2.1 and 2.2.
  1039. .. _version-3.1.3:
  1040. 3.1.3
  1041. =====
  1042. :release-date: 2013-11-13 00:55 A.M UTC
  1043. :release-by: Ask Solem
  1044. - Fixed compatibility problem with Python 2.7.0 - 2.7.5 (Issue #1637)
  1045. ``unpack_from`` started supporting ``memoryview`` arguments
  1046. in Python 2.7.6.
  1047. - Worker: :option:`-B` argument accidentally closed files used
  1048. for logging.
  1049. - Task decorated tasks now keep their docstring (Issue #1636)
  1050. .. _version-3.1.2:
  1051. 3.1.2
  1052. =====
  1053. :release-date: 2013-11-12 08:00 P.M UTC
  1054. :release-by: Ask Solem
  1055. - Now depends on :mod:`billiard` 3.3.0.6
  1056. - No longer needs the billiard C extension to be installed.
  1057. - The worker silently ignored task errors.
  1058. - Django: Fixed ``ImproperlyConfigured`` error raised
  1059. when no database backend specified.
  1060. Fix contributed by j0hnsmith
  1061. - Prefork pool: Now using ``_multiprocessing.read`` with ``memoryview``
  1062. if available.
  1063. - ``close_open_fds`` now uses ``os.closerange`` if available.
  1064. - ``get_fdmax`` now takes value from ``sysconfig`` if possible.
  1065. .. _version-3.1.1:
  1066. 3.1.1
  1067. =====
  1068. :release-date: 2013-11-11 06:30 P.M UTC
  1069. :release-by: Ask Solem
  1070. - Now depends on :mod:`billiard` 3.3.0.4.
  1071. - Python 3: Fixed compatibility issues.
  1072. - Windows: Accidentally showed warning that the billiard C extension
  1073. was not installed (Issue #1630).
  1074. - Django: Tutorial updated with a solution that sets a default
  1075. :envvar:`DJANGO_SETTINGS_MODULE` so that it doesn't have to be typed
  1076. in with the :program:`celery` command.
  1077. Also fixed typos in the tutorial, and added the settings
  1078. required to use the Django database backend.
  1079. Thanks to Chris Ward, orarbel.
  1080. - Django: Fixed a problem when using the Django settings in Django 1.6.
  1081. - Django: Fixup should not be applied if the django loader is active.
  1082. - Worker: Fixed attribute error for ``human_write_stats`` when using the
  1083. compatibility prefork pool implementation.
  1084. - Worker: Fixed compatibility with billiard without C extension.
  1085. - Inspect.conf: Now supports a ``with_defaults`` argument.
  1086. - Group.restore: The backend argument was not respected.
  1087. .. _version-3.1.0:
  1088. 3.1.0
  1089. =======
  1090. :release-date: 2013-11-09 11:00 P.M UTC
  1091. :release-by: Ask Solem
  1092. See :ref:`whatsnew-3.1`.