changelog-3.1.rst 47 KB

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