Changelog 42 KB

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