Changelog 46 KB

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