Changelog 42 KB

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