Changelog 46 KB

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