Changelog 46 KB

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