changelog-3.1.rst 48 KB

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