Changelog 46 KB

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