Changelog 47 KB

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