Changelog 46 KB

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