Changelog 50 KB

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