changelog-3.0.rst 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788
  1. .. _changelog-3.0:
  2. ================
  3. Change history
  4. ================
  5. .. contents::
  6. :local:
  7. If you're looking for versions prior to 3.0.x you should go to :ref:`history`.
  8. .. _version-3.0.24:
  9. 3.0.24
  10. ======
  11. :release-date: 2013-10-11 04:40 P.M BST
  12. - Now depends on :ref:`Kombu 2.5.15 <kombu:version-2.5.15>`.
  13. - Now depends on :mod:`billiard` version 2.7.3.34.
  14. - AMQP Result backend: No longer caches queue declarations.
  15. The queues created by the AMQP result backend are always unique,
  16. so caching the declarations caused a slow memory leak.
  17. - Worker: Fixed crash when hostname contained Unicode characters.
  18. Contributed by Daodao.
  19. - The worker would no longer start if the `-P solo` pool was selected
  20. (Issue #1548).
  21. - Redis/Cache result backends would not complete chords
  22. if any of the tasks were retried (Issue #1401).
  23. - Task decorator is no longer lazy if app is finalized.
  24. - AsyncResult: Fixed bug with ``copy(AsyncResult)`` when no
  25. ``current_app`` available.
  26. - ResultSet: Now properly propagates app when passed string id's.
  27. - Loader now ignores :envvar:`CELERY_CONFIG_MODULE` if value is empty string.
  28. - Fixed race condition in Proxy object where it tried to
  29. delete an attribute twice, resulting in :exc:`AttributeError`.
  30. - Task methods now works with the :setting:`CELERY_ALWAYS_EAGER` setting
  31. (Issue #1478).
  32. - :class:`~kombu.common.Broadcast` queues were accidentally declared
  33. when publishing tasks (Issue #1540).
  34. - New :envvar:`C_FAKEFORK` environment variable can be used to
  35. debug the init scripts.
  36. Setting this will skip the daemonization step so that errors
  37. printed to stderr after standard outs are closed can be seen::
  38. $ C_FAKEFORK /etc/init.d/celeryd start
  39. This works with the `celery multi` command in general.
  40. - ``get_pickleable_etype`` did not always return a value (Issue #1556).
  41. - Fixed bug where ``app.GroupResult.restore`` would fall back to the default
  42. app.
  43. - Fixed rare bug where built-in tasks would use the current_app.
  44. - :func:`~celery.platforms.maybe_fileno` now handles :exc:`ValueError`.
  45. .. _version-3.0.23:
  46. 3.0.23
  47. ======
  48. :release-date: 2013-09-02 01:00 P.M BST
  49. - Now depends on :ref:`Kombu 2.5.14 <kombu:version-2.5.14>`.
  50. - ``send_task`` did not honor ``link`` and ``link_error`` arguments.
  51. This had the side effect of chains not calling unregistered tasks,
  52. silently discarding them.
  53. Fix contributed by Taylor Nelson.
  54. - :mod:`celery.state`: Optimized precedence lookup.
  55. Contributed by Matt Robenolt.
  56. - Posix: Daemonization did not redirect ``sys.stdin`` to ``/dev/null``.
  57. Fix contributed by Alexander Smirnov.
  58. - Canvas: group bug caused fallback to default app when ``.apply_async`` used
  59. (Issue #1516)
  60. - Canvas: generator arguments was not always pickleable.
  61. .. _version-3.0.22:
  62. 3.0.22
  63. ======
  64. :release-date: 2013-08-16 16:30 P.M BST
  65. - Now depends on :ref:`Kombu 2.5.13 <kombu:version-2.5.13>`.
  66. - Now depends on :mod:`billiard` 2.7.3.32
  67. - Fixed bug with monthly and yearly crontabs (Issue #1465).
  68. Fix contributed by Guillaume Gauvrit.
  69. - Fixed memory leak caused by time limits (Issue #1129, Issue #1427)
  70. - Worker will now sleep if being restarted more than 5 times
  71. in one second to avoid spamming with ``worker-online`` events.
  72. - Includes documentation fixes
  73. Contributed by: Ken Fromm, Andreas Savvides, Alex Kiriukha,
  74. Michael Fladischer.
  75. .. _version-3.0.21:
  76. 3.0.21
  77. ======
  78. :release-date: 2013-07-05 16:30 P.M BST
  79. - Now depends on :mod:`billiard` 2.7.3.31.
  80. This version fixed a bug when running without the billiard C extension.
  81. - 3.0.20 broke eventlet/gevent support (worker not starting).
  82. - Fixed memory leak problem when MongoDB result backend was used with the
  83. gevent pool.
  84. Fix contributed by Ross Lawley.
  85. .. _version-3.0.20:
  86. 3.0.20
  87. ======
  88. :release-date: 2013-06-26 16:00 P.M BST
  89. - Now depends on :ref:`Kombu 2.5.11 <kombu:version-2.5.11>`.
  90. - ``--loader`` argument no longer supported importing loaders from the
  91. current directory.
  92. - [Worker] Fixed memory leak when restarting after connection lost
  93. (Issue #1325).
  94. - [Worker] Fixed unicode decode error at startup (Issue #1373).
  95. Fix contributed by Jessica Tallon.
  96. - [Worker] Now properly rewrites unpickleable exceptions again.
  97. - Fixed possible race condition when evicting items from the revoked task set.
  98. - [generic-init.d] Fixed compatibility with Ubuntu's minimal Dash
  99. shell (Issue #1387).
  100. Fix contributed by monkut.
  101. - ``Task.apply``/``ALWAYS_EAGER`` now also executes callbacks and errbacks
  102. (Issue #1336).
  103. - [Worker] The :signal:`worker-shutdown` signal was no longer being dispatched
  104. (Issue #1339).
  105. - [Python 3] Fixed problem with threading.Event.
  106. Fix contributed by Xavier Ordoquy.
  107. - [Python 3] Now handles ``io.UnsupportedOperation`` that may be raised
  108. by ``file.fileno()`` in Python 3.
  109. - [MongoDB backend] No longer uses deprecated ``safe`` parameter.
  110. Fix contributed by rfkrocktk
  111. - [Canvas] Fixed regression where immutable chord members may receive
  112. arguments (Issue #1340).
  113. Fix contributed by Peter Brook.
  114. - [Canvas] chain now accepts generator argument again (Issue #1319).
  115. - ``celery.migrate`` command now consumes from all queues if no queues
  116. specified.
  117. Fix contributed by John Watson.
  118. .. _version-3.0.19:
  119. 3.0.19
  120. ======
  121. :release-date: 2013-04-17 04:30:00 P.M BST
  122. - Now depends on :mod:`billiard` 2.7.3.28
  123. - A Python 3 related fix managed to disable the deadlock fix
  124. announced in 3.0.18.
  125. Tests have been added to make sure this does not happen again.
  126. - Task retry policy: Default max_retries is now 3.
  127. This ensures clients will not be hanging while the broker is down.
  128. .. note::
  129. You can set a longer retry for the worker by
  130. using the :signal:`celeryd_after_setup` signal:
  131. .. code-block:: python
  132. from celery.signals import celeryd_after_setup
  133. @celeryd_after_setup.connect
  134. def configure_worker(instance, conf, **kwargs):
  135. conf.CELERY_TASK_PUBLISH_RETRY_POLICY = {
  136. 'max_retries': 100,
  137. 'interval_start': 0,
  138. 'interval_max': 1,
  139. 'interval_step': 0.2,
  140. }
  141. - Worker: Will now properly display message body in error messages
  142. even if the body is a buffer instance.
  143. - 3.0.18 broke the MongoDB result backend (Issue #1303).
  144. .. _version-3.0.18:
  145. 3.0.18
  146. ======
  147. :release-date: 2013-04-12 05:00:00 P.M BST
  148. - Now depends on :mod:`kombu` 2.5.10.
  149. See the :ref:`kombu changelog <kombu:version-2.5.10>`.
  150. - Now depends on :mod:`billiard` 2.7.3.26.
  151. - Can now specify a whitelist of accepted serializers using
  152. the new :setting:`CELERY_ACCEPT_CONTENT` setting.
  153. This means that you can force the worker to discard messages
  154. serialized with pickle and other untrusted serializers.
  155. For example to only allow JSON serialized messages use::
  156. CELERY_ACCEPT_CONTENT = ['json']
  157. you can also specify MIME types in the whitelist::
  158. CELERY_ACCEPT_CONTENT = ['application/json']
  159. - Fixed deadlock in multiprocessing's pool caused by the
  160. semaphore not being released when terminated by signal.
  161. - Processes Pool: It's now possible to debug pool processes using GDB.
  162. - ``celery report`` now censors possibly secret settings, like passwords
  163. and secret tokens.
  164. You should still check the output before pasting anything
  165. on the internet.
  166. - Connection URLs now ignore multiple '+' tokens.
  167. - Worker/statedb: Now uses pickle protocol 2 (Py2.5+)
  168. - Fixed Python 3 compatibility issues.
  169. - Worker: A warning is now given if a worker is started with the
  170. same node name as an existing worker.
  171. - Worker: Fixed a deadlock that could occur while revoking tasks (Issue #1297).
  172. - Worker: The :sig:`HUP` handler now closes all open file descriptors
  173. before restarting to ensure file descriptors does not leak (Issue #1270).
  174. - Worker: Optimized storing/loading the revoked tasks list (Issue #1289).
  175. After this change the ``--statedb`` file will take up more disk space,
  176. but loading from and storing the revoked tasks will be considerably
  177. faster (what before took 5 minutes will now take less than a second).
  178. - Celery will now suggest alternatives if there's a typo in the
  179. broker transport name (e.g. ``ampq`` -> ``amqp``).
  180. - Worker: The auto-reloader would cause a crash if a monitored file
  181. was unlinked.
  182. Fix contributed by Agris Ameriks.
  183. - Fixed AsyncResult pickling error.
  184. Fix contributed by Thomas Minor.
  185. - Fixed handling of Unicode in logging output when using log colors
  186. (Issue #427).
  187. - :class:`~celery.app.utils.ConfigurationView` is now a ``MutableMapping``.
  188. Contributed by Aaron Harnly.
  189. - Fixed memory leak in LRU cache implementation.
  190. Fix contributed by Romuald Brunet.
  191. - ``celery.contrib.rdb``: Now works when sockets are in non-blocking mode.
  192. Fix contributed by Theo Spears.
  193. - The `inspect reserved` remote control command included active (started) tasks
  194. with the reserved tasks (Issue #1030).
  195. - The :signal:`task_failure` signal received a modified traceback object
  196. meant for pickling purposes, this has been fixed so that it now
  197. receives the real traceback instead.
  198. - The ``@task`` decorator silently ignored positional arguments,
  199. it now raises the expected :exc:`TypeError` instead (Issue #1125).
  200. - The worker will now properly handle messages with invalid
  201. eta/expires fields (Issue #1232).
  202. - The ``pool_restart`` remote control command now reports
  203. an error if the :setting:`CELERYD_POOL_RESTARTS` setting is not set.
  204. - ``celery.conf.add_defaults`` can now be used with non-dict objects.
  205. - Fixed compatibility problems in the Proxy class (Issue #1087).
  206. The class attributes ``__module__``, ``__name__`` and ``__doc__``
  207. are now meaningful string objects.
  208. Thanks to Marius Gedminas.
  209. - MongoDB Backend: The :setting:`MONGODB_BACKEND_SETTINGS` setting
  210. now accepts a ``option`` key that lets you forward arbitrary kwargs
  211. to the underlying ``pymongo.Connection`` object (Issue #1015).
  212. - Beat: The daily backend cleanup task is no longer enabled
  213. for result backends that support automatic result expiration (Issue #1031).
  214. - Canvas list operations now takes application instance from the first
  215. task in the list, instead of depending on the ``current_app`` (Issue #1249).
  216. - Worker: Message decoding error log message now includes traceback
  217. information.
  218. - Worker: The startup banner now includes system platform.
  219. - ``celery inspect|status|control`` now gives an error if used
  220. with an SQL based broker transport.
  221. .. _version-3.0.17:
  222. 3.0.17
  223. ======
  224. :release-date: 2013-03-22 04:00:00 P.M UTC
  225. - Now depends on kombu 2.5.8
  226. - Now depends on billiard 2.7.3.23
  227. - RabbitMQ/Redis: thread-less and lock-free rate-limit implementation.
  228. This means that rate limits pose minimal overhead when used with
  229. RabbitMQ/Redis or future transports using the eventloop,
  230. and that the rate-limit implementation is now thread-less and lock-free.
  231. The thread-based transports will still use the old implementation for
  232. now, but the plan is to use the timer also for other
  233. broker transports in Celery 3.1.
  234. - Rate limits now works with eventlet/gevent if using RabbitMQ/Redis as the
  235. broker.
  236. - A regression caused ``task.retry`` to ignore additional keyword arguments.
  237. Extra keyword arguments are now used as execution options again.
  238. Fix contributed by Simon Engledew.
  239. - Windows: Fixed problem with the worker trying to pickle the Django settings
  240. module at worker startup.
  241. - generic-init.d: No longer double quotes ``$CELERYD_CHDIR`` (Issue #1235).
  242. - generic-init.d: Removes bash-specific syntax.
  243. Fix contributed by Pär Wieslander.
  244. - Cassandra Result Backend: Now handles the
  245. :exc:`~pycassa.AllServersUnavailable` error (Issue #1010).
  246. Fix contributed by Jared Biel.
  247. - Result: Now properly forwards apps to GroupResults when deserializing
  248. (Issue #1249).
  249. Fix contributed by Charles-Axel Dein.
  250. - ``GroupResult.revoke`` now supports the ``terminate`` and ``signal``
  251. keyword arguments.
  252. - Worker: Multiprocessing pool workers now import task modules/configuration
  253. before setting up the logging system so that logging signals can be
  254. connected before they're dispatched.
  255. - chord: The ``AsyncResult`` instance returned now has its ``parent``
  256. attribute set to the header ``GroupResult``.
  257. This is consistent with how ``chain`` works.
  258. .. _version-3.0.16:
  259. 3.0.16
  260. ======
  261. :release-date: 2013-03-07 04:00:00 P.M UTC
  262. - Happy International Women's Day!
  263. We have a long way to go, so this is a chance for you to get involved in one
  264. of the organizations working for making our communities more
  265. diverse.
  266. - PyLadies — http://pyladies.com
  267. - Girls Who Code — http://www.girlswhocode.com
  268. - Women Who Code — http://www.meetup.com/Women-Who-Code-SF/
  269. - Now depends on :mod:`kombu` version 2.5.7
  270. - Now depends on :mod:`billiard` version 2.7.3.22
  271. - AMQP heartbeats are now disabled by default.
  272. Some users experiences issues with heartbeats enabled,
  273. and it's not strictly necessary to use them.
  274. If you're experiencing problems detecting connection failures,
  275. you can re-enable heartbeats by configuring the :setting:`BROKER_HEARTBEAT`
  276. setting.
  277. - Worker: Now propagates connection errors occurring in multiprocessing
  278. callbacks, so that the connection can be reset (Issue #1226).
  279. - Worker: Now propagates connection errors occurring in timer callbacks,
  280. so that the connection can be reset.
  281. - The modules in :setting:`CELERY_IMPORTS` and :setting:`CELERY_INCLUDE`
  282. are now imported in the original order (Issue #1161).
  283. The modules in :setting:`CELERY_IMPORTS` will be imported first,
  284. then continued by :setting:`CELERY_INCLUDE`.
  285. Thanks to Joey Wilhelm.
  286. - New bash completion for ``celery`` available in the git repository:
  287. https://github.com/celery/celery/tree/3.0/extra/bash-completion
  288. You can source this file or put it in ``bash_completion.d`` to
  289. get auto-completion for the ``celery`` command-line utility.
  290. - The node name of a worker can now include unicode characters (Issue #1186).
  291. - The repr of a ``crontab`` object now displays correctly (Issue #972).
  292. - ``events.State`` no longer modifies the original event dictionary.
  293. - No longer uses ``Logger.warn`` deprecated in Python 3.
  294. - Cache Backend: Now works with chords again (Issue #1094).
  295. - Chord unlock now handles errors occurring while calling the callback.
  296. - Generic worker init.d script: Status check is now performed by
  297. querying the pid of the instance instead of sending messages.
  298. Contributed by Milen Pavlov.
  299. - Improved init scripts for CentOS.
  300. - Updated to support celery 3.x conventions.
  301. - Now uses CentOS built-in ``status`` and ``killproc``
  302. - Support for multi-node / multi-pid worker services.
  303. - Standard color-coded CentOS service-init output.
  304. - A test suite.
  305. Contributed by Milen Pavlov.
  306. - ``ResultSet.join`` now always works with empty result set (Issue #1219).
  307. - A ``group`` consisting of a single task is now supported (Issue #1219).
  308. - Now supports the ``pycallgraph`` program (Issue #1051).
  309. - Fixed Jython compatibility problems.
  310. - Django tutorial: Now mentions that the example app must be added to
  311. ``INSTALLED_APPS`` (Issue #1192).
  312. .. _version-3.0.15:
  313. 3.0.15
  314. ======
  315. :release-date: 2013-02-11 04:30:00 P.M UTC
  316. - Now depends on billiard 2.7.3.21 which fixed a syntax error crash.
  317. - Fixed bug with :setting:`CELERY_SEND_TASK_SENT_EVENT`.
  318. .. _version-3.0.14:
  319. 3.0.14
  320. ======
  321. :release-date: 2013-02-08 05:00:00 P.M UTC
  322. - Now depends on Kombu 2.5.6
  323. - Now depends on billiard 2.7.3.20
  324. - ``execv`` is now disabled by default.
  325. It was causing too many problems for users, you can still enable
  326. it using the :setting:`CELERYD_FORCE_EXECV` setting.
  327. execv was only enabled when transports other than amqp/redis was used,
  328. and it's there to prevent deadlocks caused by mutexes not being released
  329. before the process forks. Sadly it also changes the environment
  330. introducing many corner case bugs that is hard to fix without adding
  331. horrible hacks. Deadlock issues are reported far less often than the
  332. bugs that execv are causing, so we now disable it by default.
  333. Work is in motion to create non-blocking versions of these transports
  334. so that execv is not necessary (which is the situation with the amqp
  335. and redis broker transports)
  336. - Chord exception behavior defined (Issue #1172).
  337. From Celery 3.1 the chord callback will change state to FAILURE
  338. when a task part of a chord raises an exception.
  339. It was never documented what happens in this case,
  340. and the actual behavior was very unsatisfactory, indeed
  341. it will just forward the exception value to the chord callback.
  342. For backward compatibility reasons we do not change to the new
  343. behavior in a bugfix release, even if the current behavior was
  344. never documented. Instead you can enable the
  345. :setting:`CELERY_CHORD_PROPAGATES` setting to get the new behavior
  346. that will be default from Celery 3.1.
  347. See more at :ref:`chord-errors`.
  348. - worker: Fixes bug with ignored and retried tasks.
  349. The ``on_chord_part_return`` and ``Task.after_return`` callbacks,
  350. nor the ``task_postrun`` signal should be called when the task was
  351. retried/ignored.
  352. Fix contributed by Vlad.
  353. - ``GroupResult.join_native`` now respects the ``propagate`` argument.
  354. - ``subtask.id`` added as an alias to ``subtask['options'].id``
  355. .. code-block:: python
  356. >>> s = add.s(2, 2)
  357. >>> s.id = 'my-id'
  358. >>> s['options']
  359. {'task_id': 'my-id'}
  360. >>> s.id
  361. 'my-id'
  362. - worker: Fixed error `Could not start worker processes` occurring
  363. when restarting after connection failure (Issue #1118).
  364. - Adds new signal :signal:`task-retried` (Issue #1169).
  365. - `celery events --dumper` now handles connection loss.
  366. - Will now retry sending the task-sent event in case of connection failure.
  367. - amqp backend: Now uses ``Message.requeue`` instead of republishing
  368. the message after poll.
  369. - New :setting:`BROKER_HEARTBEAT_CHECKRATE` setting introduced to modify the
  370. rate at which broker connection heartbeats are monitored.
  371. The default value was also changed from 3.0 to 2.0.
  372. - :class:`celery.events.state.State` is now pickleable.
  373. Fix contributed by Mher Movsisyan.
  374. - :class:`celery.datastructures.LRUCache` is now pickleable.
  375. Fix contributed by Mher Movsisyan.
  376. - The stats broadcast command now includes the workers pid.
  377. Contributed by Mher Movsisyan.
  378. - New ``conf`` remote control command to get a workers current configuration.
  379. Contributed by Mher Movsisyan.
  380. - Adds the ability to modify the chord unlock task's countdown
  381. argument (Issue #1146).
  382. Contributed by Jun Sakai
  383. - beat: The scheduler now uses the `now()`` method of the schedule,
  384. so that schedules can provide a custom way to get the current date and time.
  385. Contributed by Raphaël Slinckx
  386. - Fixed pickling of configuration modules on Windows or when execv is used
  387. (Issue #1126).
  388. - Multiprocessing logger is now configured with loglevel ``ERROR``
  389. by default.
  390. Since 3.0 the multiprocessing loggers were disabled by default
  391. (only configured when the :envvar:`MP_LOG` environment variable was set).
  392. .. _version-3.0.13:
  393. 3.0.13
  394. ======
  395. :release-date: 2013-01-07 04:00:00 P.M UTC
  396. - Now depends on Kombu 2.5
  397. - py-amqp has replaced amqplib as the default transport,
  398. gaining support for AMQP 0.9, and the RabbitMQ extensions
  399. including Consumer Cancel Notifications and heartbeats.
  400. - support for multiple connection URLs for failover.
  401. - Read more in the `Kombu 2.5 changelog`_.
  402. .. _`Kombu 2.5 changelog`:
  403. http://kombu.readthedocs.org/en/latest/changelog.html#version-2-5-0
  404. - Now depends on billiard 2.7.3.19
  405. - Fixed a deadlock issue that could occur when the producer pool
  406. inherited the connection pool instance of the parent process.
  407. - The :option:`--loader` option now works again (Issue #1066).
  408. - :program:`celery` umbrella command: All subcommands now supports
  409. the :option:`--workdir` option (Issue #1063).
  410. - Groups included in chains now give GroupResults (Issue #1057)
  411. Previously it would incorrectly add a regular result instead of a group
  412. result, but now this works:
  413. .. code-block:: python
  414. # [4 + 4, 4 + 8, 16 + 8]
  415. >>> res = (add.s(2, 2) | group(add.s(4), add.s(8), add.s(16)))()
  416. >>> res
  417. <GroupResult: a0acf905-c704-499e-b03a-8d445e6398f7 [
  418. 4346501c-cb99-4ad8-8577-12256c7a22b1,
  419. b12ead10-a622-4d44-86e9-3193a778f345,
  420. 26c7a420-11f3-4b33-8fac-66cd3b62abfd]>
  421. - Chains can now chain other chains and use partial arguments (Issue #1057).
  422. Example:
  423. .. code-block:: python
  424. >>> c1 = (add.s(2) | add.s(4))
  425. >>> c2 = (add.s(8) | add.s(16))
  426. >>> c3 = (c1 | c2)
  427. # 8 + 2 + 4 + 8 + 16
  428. >>> assert c3(8).get() == 38
  429. - Subtasks can now be used with unregistered tasks.
  430. You can specify subtasks even if you just have the name::
  431. >>> s = subtask(task_name, args=(), kwargs=())
  432. >>> s.delay()
  433. - The :program:`celery shell` command now always adds the current
  434. directory to the module path.
  435. - The worker will now properly handle the :exc:`pytz.AmbiguousTimeError`
  436. exception raised when an ETA/countdown is prepared while being in DST
  437. transition (Issue #1061).
  438. - force_execv: Now makes sure that task symbols in the original
  439. task modules will always use the correct app instance (Issue #1072).
  440. - AMQP Backend: Now republishes result messages that have been polled
  441. (using ``result.ready()`` and friends, ``result.get()`` will not do this
  442. in this version).
  443. - Crontab schedule values can now "wrap around"
  444. This means that values like ``11-1`` translates to ``[11, 12, 1]``.
  445. Contributed by Loren Abrams.
  446. - multi stopwait command now shows the pid of processes.
  447. Contributed by Loren Abrams.
  448. - Handling of ETA/countdown fixed when the :setting:`CELERY_ENABLE_UTC`
  449. setting is disabled (Issue #1065).
  450. - A number of uneeded properties were included in messages,
  451. caused by accidentally passing ``Queue.as_dict`` as message properties.
  452. - Rate limit values can now be float
  453. This also extends the string format so that values like ``"0.5/s"`` works.
  454. Contributed by Christoph Krybus
  455. - Fixed a typo in the broadcast routing documentation (Issue #1026).
  456. - Rewrote confusing section about idempotence in the task user guide.
  457. - Fixed typo in the daemonization tutorial (Issue #1055).
  458. - Fixed several typos in the documentation.
  459. Contributed by Marius Gedminas.
  460. - Batches: Now works when using the eventlet pool.
  461. Fix contributed by Thomas Grainger.
  462. - Batches: Added example sending results to :mod:`celery.contrib.batches`.
  463. Contributed by Thomas Grainger.
  464. - Mongodb backend: Connection ``max_pool_size`` can now be set in
  465. :setting:`CELERY_MONGODB_BACKEND_SETTINGS`.
  466. Contributed by Craig Younkins.
  467. - Fixed problem when using earlier versions of :mod:`pytz`.
  468. Fix contributed by Vlad.
  469. - Docs updated to include the default value for the
  470. :setting:`CELERY_TASK_RESULT_EXPIRES` setting.
  471. - Improvements to the django-celery tutorial.
  472. Contributed by Locker537.
  473. - The ``add_consumer`` control command did not properly persist
  474. the addition of new queues so that they survived connection failure
  475. (Issue #1079).
  476. 3.0.12
  477. ======
  478. :release-date: 2012-11-06 02:00 P.M UTC
  479. - Now depends on kombu 2.4.8
  480. - [Redis] New and improved fair queue cycle algorithm (Kevin McCarthy).
  481. - [Redis] Now uses a Redis-based mutex when restoring messages.
  482. - [Redis] Number of messages that can be restored in one interval is no
  483. longer limited (but can be set using the
  484. ``unacked_restore_limit``
  485. :setting:`transport option <BROKER_TRANSPORT_OPTIONS>`.)
  486. - Heartbeat value can be specified in broker URLs (Mher Movsisyan).
  487. - Fixed problem with msgpack on Python 3 (Jasper Bryant-Greene).
  488. - Now depends on billiard 2.7.3.18
  489. - Celery can now be used with static analysis tools like PyDev/PyCharm/pylint
  490. etc.
  491. - Development documentation has moved to Read The Docs.
  492. The new URL is: http://docs.celeryproject.org/en/master
  493. - New :setting:`CELERY_QUEUE_HA_POLICY` setting used to set the default
  494. HA policy for queues when using RabbitMQ.
  495. - New method ``Task.subtask_from_request`` returns a subtask using the current
  496. request.
  497. - Results get_many method did not respect timeout argument.
  498. Fix contributed by Remigiusz Modrzejewski
  499. - generic_init.d scripts now support setting :envvar:`CELERY_CREATE_DIRS` to
  500. always create log and pid directories (Issue #1045).
  501. This can be set in your :file:`/etc/default/celeryd`.
  502. - Fixed strange kombu import problem on Python 3.2 (Issue #1034).
  503. - Worker: ETA scheduler now uses millisecond precision (Issue #1040).
  504. - The ``--config`` argument to programs is now supported by all loaders.
  505. - The :setting:`CASSANDRA_OPTIONS` setting has now been documented.
  506. Contributed by Jared Biel.
  507. - Task methods (:mod:`celery.contrib.methods`) cannot be used with the old
  508. task base class, the task decorator in that module now inherits from the new.
  509. - An optimization was too eager and caused some logging messages to never emit.
  510. - :mod:`celery.contrib.batches` now works again.
  511. - Fixed missing whitespace in ``bdist_rpm`` requirements (Issue #1046).
  512. - Event state's ``tasks_by_name`` applied limit before filtering by name.
  513. Fix contributed by Alexander A. Sosnovskiy.
  514. .. _version-3.0.11:
  515. 3.0.11
  516. ======
  517. :release-date: 2012-09-26 04:00 P.M UTC
  518. - [security:low] generic-init.d scripts changed permissions of /var/log & /var/run
  519. In the daemonization tutorial the recommended directories were as follows:
  520. .. code-block:: bash
  521. CELERYD_LOG_FILE="/var/log/celery/%n.log"
  522. CELERYD_PID_FILE="/var/run/celery/%n.pid"
  523. But in the scripts themselves the default files were ``/var/log/celery%n.log``
  524. and ``/var/run/celery%n.pid``, so if the user did not change the location
  525. by configuration, the directories ``/var/log`` and ``/var/run`` would be
  526. created - and worse have their permissions and owners changed.
  527. This change means that:
  528. - Default pid file is ``/var/run/celery/%n.pid``
  529. - Default log file is ``/var/log/celery/%n.log``
  530. - The directories are only created and have their permissions
  531. changed if *no custom locations are set*.
  532. Users can force paths to be created by calling the ``create-paths``
  533. subcommand:
  534. .. code-block:: bash
  535. $ sudo /etc/init.d/celeryd create-paths
  536. .. admonition:: Upgrading Celery will not update init scripts
  537. To update the init scripts you have to re-download
  538. the files from source control and update them manually.
  539. You can find the init scripts for version 3.0.x at:
  540. http://github.com/celery/celery/tree/3.0/extra/generic-init.d
  541. - Now depends on billiard 2.7.3.17
  542. - Fixes request stack protection when app is initialized more than
  543. once (Issue #1003).
  544. - ETA tasks now properly works when system timezone is not the same
  545. as the configured timezone (Issue #1004).
  546. - Terminating a task now works if the task has been sent to the
  547. pool but not yet acknowledged by a pool process (Issue #1007).
  548. Fix contributed by Alexey Zatelepin
  549. - Terminating a task now properly updates the state of the task to revoked,
  550. and sends a ``task-revoked`` event.
  551. - Generic worker init script now waits for workers to shutdown by default.
  552. - Multi: No longer parses --app option (Issue #1008).
  553. - Multi: stop_verify command renamed to stopwait.
  554. - Daemonization: Now delays trying to create pidfile/logfile until after
  555. the working directory has been changed into.
  556. - :program:`celery worker` and :program:`celery beat` commands now respects
  557. the :option:`--no-color` option (Issue #999).
  558. - Fixed typos in eventlet examples (Issue #1000)
  559. Fix contributed by Bryan Bishop.
  560. Congratulations on opening bug #1000!
  561. - Tasks that raise :exc:`~@Ignore` are now acknowledged.
  562. - Beat: Now shows the name of the entry in ``sending due task`` logs.
  563. .. _version-3.0.10:
  564. 3.0.10
  565. ======
  566. :release-date: 2012-09-20 05:30 P.M BST
  567. - Now depends on kombu 2.4.7
  568. - Now depends on billiard 2.7.3.14
  569. - Fixes crash at startup when using Django and pre-1.4 projects
  570. (setup_environ).
  571. - Hard time limits now sends the KILL signal shortly after TERM,
  572. to terminate processes that have signal handlers blocked by C extensions.
  573. - Billiard now installs even if the C extension cannot be built.
  574. It's still recommended to build the C extension if you are using
  575. a transport other than rabbitmq/redis (or use forced execv for some
  576. other reason).
  577. - Pool now sets a ``current_process().index`` attribute that can be used to create
  578. as many log files as there are processes in the pool.
  579. - Canvas: chord/group/chain no longer modifies the state when called
  580. Previously calling a chord/group/chain would modify the ids of subtasks
  581. so that:
  582. .. code-block:: python
  583. >>> c = chord([add.s(2, 2), add.s(4, 4)], xsum.s())
  584. >>> c()
  585. >>> c() <-- call again
  586. at the second time the ids for the tasks would be the same as in the
  587. previous invocation. This is now fixed, so that calling a subtask
  588. won't mutate any options.
  589. - Canvas: Chaining a chord to another task now works (Issue #965).
  590. - Worker: Fixed a bug where the request stack could be corrupted if
  591. relative imports are used.
  592. Problem usually manifested itself as an exception while trying to
  593. send a failed task result (``NoneType does not have id attribute``).
  594. Fix contributed by Sam Cooke.
  595. - Tasks can now raise :exc:`~@Ignore` to skip updating states
  596. or events after return.
  597. Example:
  598. .. code-block:: python
  599. from celery.exceptions import Ignore
  600. @task
  601. def custom_revokes():
  602. if redis.sismember('tasks.revoked', custom_revokes.request.id):
  603. raise Ignore()
  604. - The worker now makes sure the request/task stacks are not modified
  605. by the initial ``Task.__call__``.
  606. This would previously be a problem if a custom task class defined
  607. ``__call__`` and also called ``super()``.
  608. - Because of problems the fast local optimization has been disabled,
  609. and can only be enabled by setting the :envvar:`USE_FAST_LOCALS` attribute.
  610. - Worker: Now sets a default socket timeout of 5 seconds at shutdown
  611. so that broken socket reads do not hinder proper shutdown (Issue #975).
  612. - More fixes related to late eventlet/gevent patching.
  613. - Documentation for settings out of sync with reality:
  614. - :setting:`CELERY_TASK_PUBLISH_RETRY`
  615. Documented as disabled by default, but it was enabled by default
  616. since 2.5 as stated by the 2.5 changelog.
  617. - :setting:`CELERY_TASK_PUBLISH_RETRY_POLICY`
  618. The default max_retries had been set to 100, but documented as being
  619. 3, and the interval_max was set to 1 but documented as 0.2.
  620. The default setting are now set to 3 and 0.2 as it was originally
  621. documented.
  622. Fix contributed by Matt Long.
  623. - Worker: Log messages when connection established and lost have been improved.
  624. - The repr of a crontab schedule value of '0' should be '*' (Issue #972).
  625. - Revoked tasks are now removed from reserved/active state in the worker
  626. (Issue #969)
  627. Fix contributed by Alexey Zatelepin.
  628. - gevent: Now supports hard time limits using ``gevent.Timeout``.
  629. - Documentation: Links to init scripts now point to the 3.0 branch instead
  630. of the development branch (master).
  631. - Documentation: Fixed typo in signals user guide (Issue #986).
  632. ``instance.app.queues`` -> ``instance.app.amqp.queues``.
  633. - Eventlet/gevent: The worker did not properly set the custom app
  634. for new greenlets.
  635. - Eventlet/gevent: Fixed a bug where the worker could not recover
  636. from connection loss (Issue #959).
  637. Also, because of a suspected bug in gevent the
  638. :setting:`BROKER_CONNECTION_TIMEOUT` setting has been disabled
  639. when using gevent
  640. 3.0.9
  641. =====
  642. :release-date: 2012-08-31 06:00 P.M BST
  643. - Important note for users of Django and the database scheduler!
  644. Recently a timezone issue has been fixed for periodic tasks,
  645. but erroneous timezones could have already been stored in the
  646. database, so for the fix to work you need to reset
  647. the ``last_run_at`` fields.
  648. You can do this by executing the following command:
  649. .. code-block:: bash
  650. $ python manage.py shell
  651. >>> from djcelery.models import PeriodicTask
  652. >>> PeriodicTask.objects.update(last_run_at=None)
  653. You also have to do this if you change the timezone or
  654. :setting:`CELERY_ENABLE_UTC` setting.
  655. - Note about the :setting:`CELERY_ENABLE_UTC` setting.
  656. If you previously disabled this just to force periodic tasks to work with
  657. your timezone, then you are now *encouraged to re-enable it*.
  658. - Now depends on Kombu 2.4.5 which fixes PyPy + Jython installation.
  659. - Fixed bug with timezones when :setting:`CELERY_ENABLE_UTC` is disabled
  660. (Issue #952).
  661. - Fixed a typo in the celerybeat upgrade mechanism (Issue #951).
  662. - Make sure the `exc_info` argument to logging is resolved (Issue #899).
  663. - Fixed problem with Python 3.2 and thread join timeout overflow (Issue #796).
  664. - A test case was occasionally broken for Python 2.5.
  665. - Unit test suite now passes for PyPy 1.9.
  666. - App instances now supports the with statement.
  667. This calls the new :meth:`~celery.Celery.close` method at exit, which
  668. cleans up after the app like closing pool connections.
  669. Note that this is only necessary when dynamically creating apps,
  670. e.g. for "temporary" apps.
  671. - Support for piping a subtask to a chain.
  672. For example:
  673. .. code-block:: python
  674. pipe = sometask.s() | othertask.s()
  675. new_pipe = mytask.s() | pipe
  676. Contributed by Steve Morin.
  677. - Fixed problem with group results on non-pickle serializers.
  678. Fix contributed by Steeve Morin.
  679. .. _version-3.0.8:
  680. 3.0.8
  681. =====
  682. :release-date: 2012-08-29 05:00 P.M BST
  683. - Now depends on Kombu 2.4.4
  684. - Fixed problem with amqplib and receiving larger message payloads
  685. (Issue #922).
  686. The problem would manifest itself as either the worker hanging,
  687. or occasionally a ``Framing error`` exception appearing.
  688. Users of the new ``pyamqp://`` transport must upgrade to
  689. :mod:`amqp` 0.9.3.
  690. - Beat: Fixed another timezone bug with interval and crontab schedules
  691. (Issue #943).
  692. - Beat: The schedule file is now automatically cleared if the timezone
  693. is changed.
  694. The schedule is also cleared when you upgrade to 3.0.8 from an earlier
  695. version, this to register the initial timezone info.
  696. - Events: The :event:`worker-heartbeat` event now include processed and active
  697. count fields.
  698. Contributed by Mher Movsisyan.
  699. - Fixed error with error email and new task classes (Issue #931).
  700. - ``BaseTask.__call__`` is no longer optimized away if it has been monkey
  701. patched.
  702. - Fixed shutdown issue when using gevent (Issue #911 & Issue #936).
  703. Fix contributed by Thomas Meson.
  704. .. _version-3.0.7:
  705. 3.0.7
  706. =====
  707. :release-date: 2012-08-24 05:00 P.M BST
  708. - Fixes several problems with periodic tasks and timezones (Issue #937).
  709. - Now depends on kombu 2.4.2
  710. - Redis: Fixes a race condition crash
  711. - Fixes an infinite loop that could happen when retrying establishing
  712. the broker connection.
  713. - Daemons now redirect standard file descriptors to :file:`/dev/null`
  714. Though by default the standard outs are also redirected
  715. to the logger instead, but you can disable this by changing
  716. the :setting:`CELERY_REDIRECT_STDOUTS` setting.
  717. - Fixes possible problems when eventlet/gevent is patched too late.
  718. - ``LoggingProxy`` no longer defines ``fileno()`` (Issue #928).
  719. - Results are now ignored for the chord unlock task.
  720. Fix contributed by Steeve Morin.
  721. - Cassandra backend now works if result expiry is disabled.
  722. Fix contributed by Steeve Morin.
  723. - The traceback object is now passed to signal handlers instead
  724. of the string representation.
  725. Fix contributed by Adam DePue.
  726. - Celery command: Extensions are now sorted by name.
  727. - A regression caused the :event:`task-failed` event to be sent
  728. with the exception object instead of its string representation.
  729. - The worker daemon would try to create the pid file before daemonizing
  730. to catch errors, but this file was not immediately released (Issue #923).
  731. - Fixes Jython compatibility.
  732. - ``billiard.forking_enable`` was called by all pools not just the
  733. processes pool, which would result in a useless warning if the billiard
  734. C extensions were not installed.
  735. .. _version-3.0.6:
  736. 3.0.6
  737. =====
  738. :release-date: 2012-08-17 11:00 P.M BST
  739. - Now depends on kombu 2.4.0
  740. - Now depends on billiard 2.7.3.12
  741. - Redis: Celery now tries to restore messages whenever there are no messages
  742. in the queue.
  743. - Crontab schedules now properly respects :setting:`CELERY_TIMEZONE` setting.
  744. It's important to note that crontab schedules uses UTC time by default
  745. unless this setting is set.
  746. Issue #904 and django-celery #150.
  747. - ``billiard.enable_forking`` is now only set by the processes pool.
  748. - The transport is now properly shown by :program:`celery report`
  749. (Issue #913).
  750. - The `--app` argument now works if the last part is a module name
  751. (Issue #921).
  752. - Fixed problem with unpickleable exceptions (billiard #12).
  753. - Adds ``task_name`` attribute to ``EagerResult`` which is always
  754. :const:`None` (Issue #907).
  755. - Old Task class in :mod:`celery.task` no longer accepts magic kwargs by
  756. default (Issue #918).
  757. A regression long ago disabled magic kwargs for these, and since
  758. no one has complained about it we don't have any incentive to fix it now.
  759. - The ``inspect reserved`` control command did not work properly.
  760. - Should now play better with static analyzation tools by explicitly
  761. specifying dynamically created attributes in the :mod:`celery` and
  762. :mod:`celery.task` modules.
  763. - Terminating a task now results in
  764. :exc:`~@RevokedTaskError` instead of a ``WorkerLostError``.
  765. - ``AsyncResult.revoke`` now accepts ``terminate`` and ``signal`` arguments.
  766. - The :event:`task-revoked` event now includes new fields: ``terminated``,
  767. ``signum``, and ``expired``.
  768. - The argument to :class:`~@TaskRevokedError` is now one
  769. of the reasons ``revoked``, ``expired`` or ``terminated``.
  770. - Old Task class does no longer use classmethods for push_request and
  771. pop_request (Issue #912).
  772. - ``GroupResult`` now supports the ``children`` attribute (Issue #916).
  773. - ``AsyncResult.collect`` now respects the ``intermediate`` argument
  774. (Issue #917).
  775. - Fixes example task in documentation (Issue #902).
  776. - Eventlet fixed so that the environment is patched as soon as possible.
  777. - eventlet: Now warns if celery related modules that depends on threads
  778. are imported before eventlet is patched.
  779. - Improved event and camera examples in the monitoring guide.
  780. - Disables celery command setuptools entrypoints if the command can't be
  781. loaded.
  782. - Fixed broken ``dump_request`` example in the tasks guide.
  783. .. _version-3.0.5:
  784. 3.0.5
  785. =====
  786. :release-date: 2012-08-01 04:00 P.M BST
  787. - Now depends on kombu 2.3.1 + billiard 2.7.3.11
  788. - Fixed a bug with the -B option (``cannot pickle thread.lock objects``)
  789. (Issue #894 + Issue #892, + django-celery #154).
  790. - The :control:`restart_pool` control command now requires the
  791. :setting:`CELERYD_POOL_RESTARTS` setting to be enabled
  792. This change was necessary as the multiprocessing event that the restart
  793. command depends on is responsible for creating many semaphores/file
  794. descriptors, resulting in problems in some environments.
  795. - ``chain.apply`` now passes args to the first task (Issue #889).
  796. - Documented previously secret options to the Django-Celery monitor
  797. in the monitoring userguide (Issue #396).
  798. - Old changelog are now organized in separate documents for each series,
  799. see :ref:`history`.
  800. .. _version-3.0.4:
  801. 3.0.4
  802. =====
  803. :release-date: 2012-07-26 07:00 P.M BST
  804. - Now depends on Kombu 2.3
  805. - New experimental standalone Celery monitor: Flower
  806. See :ref:`monitoring-flower` to read more about it!
  807. Contributed by Mher Movsisyan.
  808. - Now supports AMQP heartbeats if using the new ``pyamqp://`` transport.
  809. - The py-amqp transport requires the :mod:`amqp` library to be installed::
  810. $ pip install amqp
  811. - Then you need to set the transport URL prefix to ``pyamqp://``.
  812. - The default heartbeat value is 10 seconds, but this can be changed using
  813. the :setting:`BROKER_HEARTBEAT` setting::
  814. BROKER_HEARTBEAT = 5.0
  815. - If the broker heartbeat is set to 10 seconds, the heartbeats will be
  816. monitored every 5 seconds (double the hertbeat rate).
  817. See the `Kombu 2.3 changelog`_ for more information.
  818. .. _`Kombu 2.3 changelog`:
  819. http://kombu.readthedocs.org/en/latest/changelog.html#version-2-3-0
  820. - Now supports RabbitMQ Consumer Cancel Notifications, using the ``pyamqp://``
  821. transport.
  822. This is essential when running RabbitMQ in a cluster.
  823. See the `Kombu 2.3 changelog`_ for more information.
  824. - Delivery info is no longer passed directly through.
  825. It was discovered that the SQS transport adds objects that can't
  826. be pickled to the delivery info mapping, so we had to go back
  827. to using the whitelist again.
  828. Fixing this bug also means that the SQS transport is now working again.
  829. - The semaphore was not properly released when a task was revoked (Issue #877).
  830. This could lead to tasks being swallowed and not released until a worker
  831. restart.
  832. Thanks to Hynek Schlawack for debugging the issue.
  833. - Retrying a task now also forwards any linked tasks.
  834. This means that if a task is part of a chain (or linked in some other
  835. way) and that even if the task is retried, then the next task in the chain
  836. will be executed when the retry succeeds.
  837. - Chords: Now supports setting the interval and other keyword arguments
  838. to the chord unlock task.
  839. - The interval can now be set as part of the chord subtasks kwargs::
  840. chord(header)(body, interval=10.0)
  841. - In addition the chord unlock task now honors the Task.default_retry_delay
  842. option, used when none is specified, which also means that the default
  843. interval can also be changed using annotations:
  844. .. code-block:: python
  845. CELERY_ANNOTATIONS = {
  846. 'celery.chord_unlock': {
  847. 'default_retry_delay': 10.0,
  848. }
  849. }
  850. - New :meth:`@Celery.add_defaults` method can add new default configuration
  851. dicts to the applications configuration.
  852. For example::
  853. config = {'FOO': 10}
  854. celery.add_defaults(config)
  855. is the same as ``celery.conf.update(config)`` except that data will not be
  856. copied, and that it will not be pickled when the worker spawns child
  857. processes.
  858. In addition the method accepts a callable::
  859. def initialize_config():
  860. # insert heavy stuff that can't be done at import time here.
  861. celery.add_defaults(initialize_config)
  862. which means the same as the above except that it will not happen
  863. until the celery configuration is actually used.
  864. As an example, Celery can lazily use the configuration of a Flask app::
  865. flask_app = Flask()
  866. celery_app = Celery()
  867. celery_app.add_defaults(lambda: flask_app.config)
  868. - Revoked tasks were not marked as revoked in the result backend (Issue #871).
  869. Fix contributed by Hynek Schlawack.
  870. - Eventloop now properly handles the case when the epoll poller object
  871. has been closed (Issue #882).
  872. - Fixed syntax error in ``funtests/test_leak.py``
  873. Fix contributed by Catalin Iacob.
  874. - group/chunks: Now accepts empty task list (Issue #873).
  875. - New method names:
  876. - ``Celery.default_connection()`` ➠ :meth:`~@Celery.connection_or_acquire`.
  877. - ``Celery.default_producer()`` ➠ :meth:`~@Celery.producer_or_acquire`.
  878. The old names still work for backward compatibility.
  879. .. _version-3.0.3:
  880. 3.0.3
  881. =====
  882. :release-date: 2012-07-20 09:17 P.M BST
  883. :by: Ask Solem
  884. - amqplib passes the channel object as part of the delivery_info
  885. and it's not pickleable, so we now remove it.
  886. .. _version-3.0.2:
  887. 3.0.2
  888. =====
  889. :release-date: 2012-07-20 04:00 P.M BST
  890. :by: Ask Solem
  891. - A bug caused the following task options to not take defaults from the
  892. configuration (Issue #867 + Issue #858)
  893. The following settings were affected:
  894. - :setting:`CELERY_IGNORE_RESULT`
  895. - :setting:`CELERYD_SEND_TASK_ERROR_EMAILS`
  896. - :setting:`CELERY_TRACK_STARTED`
  897. - :setting:`CElERY_STORE_ERRORS_EVEN_IF_IGNORED`
  898. Fix contributed by John Watson.
  899. - Task Request: ``delivery_info`` is now passed through as-is (Issue #807).
  900. - The eta argument now supports datetime's with a timezone set (Issue #855).
  901. - The worker's banner displayed the autoscale settings in the wrong order
  902. (Issue #859).
  903. - Extension commands are now loaded after concurrency is set up
  904. so that they don't interfere with e.g. eventlet patching.
  905. - Fixed bug in the threaded pool (Issue #863)
  906. - The task failure handler mixed up the fields in :func:`sys.exc_info`.
  907. Fix contributed by Rinat Shigapov.
  908. - Fixed typos and wording in the docs.
  909. Fix contributed by Paul McMillan
  910. - New setting: :setting:`CELERY_WORKER_DIRECT`
  911. If enabled each worker will consume from their own dedicated queue
  912. which can be used to route tasks to specific workers.
  913. - Fixed several edge case bugs in the add consumer remote control command.
  914. - :mod:`~celery.contrib.migrate`: Can now filter and move tasks to specific
  915. workers if :setting:`CELERY_WORKER_DIRECT` is enabled.
  916. Among other improvements, the following functions have been added:
  917. * ``move_direct(filterfun, **opts)``
  918. * ``move_direct_by_id(task_id, worker_hostname, **opts)``
  919. * ``move_direct_by_idmap({task_id: worker_hostname, ...}, **opts)``
  920. * ``move_direct_by_taskmap({task_name: worker_hostname, ...}, **opts)``
  921. - :meth:`~celery.Celery.default_connection` now accepts a pool argument that
  922. if set to false causes a new connection to be created instead of acquiring
  923. one from the pool.
  924. - New signal: :signal:`celeryd_after_setup`.
  925. - Default loader now keeps lowercase attributes from the configuration module.
  926. .. _version-3.0.1:
  927. 3.0.1
  928. =====
  929. :release-date: 2012-07-10 06:00 P.M BST
  930. :by: Ask Solem
  931. - Now depends on kombu 2.2.5
  932. - inspect now supports limit argument::
  933. myapp.control.inspect(limit=1).ping()
  934. - Beat: now works with timezone aware datetime's.
  935. - Task classes inheriting ``from celery import Task``
  936. mistakingly enabled ``accept_magic_kwargs``.
  937. - Fixed bug in ``inspect scheduled`` (Issue #829).
  938. - Beat: Now resets the schedule to upgrade to UTC.
  939. - The :program:`celery worker` command now works with eventlet/gevent.
  940. Previously it would not patch the environment early enough.
  941. - The :program:`celery` command now supports extension commands
  942. using setuptools entry-points.
  943. Libraries can add additional commands to the :program:`celery`
  944. command by adding an entry-point like::
  945. setup(
  946. entry_points=[
  947. 'celery.commands': [
  948. 'foo = my.module:Command',
  949. ],
  950. ],
  951. ...)
  952. The command must then support the interface of
  953. :class:`celery.bin.base.Command`.
  954. - contrib.migrate: New utilities to move tasks from one queue to another.
  955. - :func:`~celery.contrib.migrate.move_tasks`
  956. - :func:`~celery.contrib.migrate.move_task_by_id`
  957. - The :event:`task-sent` event now contains ``exchange`` and ``routing_key``
  958. fields.
  959. - Fixes bug with installing on Python 3.
  960. Fix contributed by Jed Smith.
  961. .. _version-3.0.0:
  962. 3.0.0 (Chiastic Slide)
  963. ======================
  964. :release-date: 2012-07-07 01:30 P.M BST
  965. :by: Ask Solem
  966. See :ref:`whatsnew-3.0`.
  967. >>>>>>> 3.0
  968. .. _version-3.0.17:
  969. 3.0.17
  970. ======
  971. :release-date: 2013-03-22 04:00:00 P.M UTC
  972. - Now depends on kombu 2.5.8
  973. - Now depends on billiard 2.7.3.23
  974. - RabbitMQ/Redis: thread-less and lock-free rate-limit implementation.
  975. This means that rate limits pose minimal overhead when used with
  976. RabbitMQ/Redis or future transports using the eventloop,
  977. and that the rate-limit implementation is now thread-less and lock-free.
  978. The thread-based transports will still use the old implementation for
  979. now, but the plan is to use the timer also for other
  980. broker transports in Celery 3.1.
  981. - Rate limits now works with eventlet/gevent if using RabbitMQ/Redis as the
  982. broker.
  983. - A regression caused ``task.retry`` to ignore additional keyword arguments.
  984. Extra keyword arguments are now used as execution options again.
  985. Fix contributed by Simon Engledew.
  986. - Windows: Fixed problem with the worker trying to pickle the Django settings
  987. module at worker startup.
  988. - generic-init.d: No longer double quotes ``$CELERYD_CHDIR`` (Issue #1235).
  989. - generic-init.d: Removes bash-specific syntax.
  990. Fix contributed by Pär Wieslander.
  991. - Cassandra Result Backend: Now handles the
  992. :exc:`~pycassa.AllServersUnavailable` error (Issue #1010).
  993. Fix contributed by Jared Biel.
  994. - Result: Now properly forwards apps to GroupResults when deserializing
  995. (Issue #1249).
  996. Fix contributed by Charles-Axel Dein.
  997. - ``GroupResult.revoke`` now supports the ``terminate`` and ``signal``
  998. keyword arguments.
  999. - Worker: Multiprocessing pool workers now import task modules/configuration
  1000. before setting up the logging system so that logging signals can be
  1001. connected before they're dispatched.
  1002. - chord: The ``AsyncResult`` instance returned now has its ``parent``
  1003. attribute set to the header ``GroupResult``.
  1004. This is consistent with how ``chain`` works.
  1005. .. _version-3.0.16:
  1006. 3.0.16
  1007. ======
  1008. :release-date: 2013-03-07 04:00:00 P.M UTC
  1009. - Happy International Women's Day!
  1010. We have a long way to go, so this is a chance for you to get involved in one
  1011. of the organizations working for making our communities more
  1012. diverse.
  1013. - PyLadies — http://pyladies.com
  1014. - Girls Who Code — http://www.girlswhocode.com
  1015. - Women Who Code — http://www.meetup.com/Women-Who-Code-SF/
  1016. - Now depends on :mod:`kombu` version 2.5.7
  1017. - Now depends on :mod:`billiard` version 2.7.3.22
  1018. - AMQP heartbeats are now disabled by default.
  1019. Some users experiences issues with heartbeats enabled,
  1020. and it's not strictly necessary to use them.
  1021. If you're experiencing problems detecting connection failures,
  1022. you can re-enable heartbeats by configuring the :setting:`BROKER_HEARTBEAT`
  1023. setting.
  1024. - Worker: Now propagates connection errors occurring in multiprocessing
  1025. callbacks, so that the connection can be reset (Issue #1226).
  1026. - Worker: Now propagates connection errors occurring in timer callbacks,
  1027. so that the connection can be reset.
  1028. - The modules in :setting:`CELERY_IMPORTS` and :setting:`CELERY_INCLUDE`
  1029. are now imported in the original order (Issue #1161).
  1030. The modules in :setting:`CELERY_IMPORTS` will be imported first,
  1031. then continued by :setting:`CELERY_INCLUDE`.
  1032. Thanks to Joey Wilhelm.
  1033. - New bash completion for ``celery`` available in the git repository:
  1034. https://github.com/celery/celery/tree/3.0/extra/bash-completion
  1035. You can source this file or put it in ``bash_completion.d`` to
  1036. get auto-completion for the ``celery`` command-line utility.
  1037. - The node name of a worker can now include unicode characters (Issue #1186).
  1038. - The repr of a ``crontab`` object now displays correctly (Issue #972).
  1039. - ``events.State`` no longer modifies the original event dictionary.
  1040. - No longer uses ``Logger.warn`` deprecated in Python 3.
  1041. - Cache Backend: Now works with chords again (Issue #1094).
  1042. - Chord unlock now handles errors occurring while calling the callback.
  1043. - Generic worker init.d script: Status check is now performed by
  1044. querying the pid of the instance instead of sending messages.
  1045. Contributed by Milen Pavlov.
  1046. - Improved init scripts for CentOS.
  1047. - Updated to support celery 3.x conventions.
  1048. - Now uses CentOS built-in ``status`` and ``killproc``
  1049. - Support for multi-node / multi-pid worker services.
  1050. - Standard color-coded CentOS service-init output.
  1051. - A test suite.
  1052. Contributed by Milen Pavlov.
  1053. - ``ResultSet.join`` now always works with empty result set (Issue #1219).
  1054. - A ``group`` consisting of a single task is now supported (Issue #1219).
  1055. - Now supports the ``pycallgraph`` program (Issue #1051).
  1056. - Fixed Jython compatibility problems.
  1057. - Django tutorial: Now mentions that the example app must be added to
  1058. ``INSTALLED_APPS`` (Issue #1192).
  1059. .. _version-3.0.15:
  1060. 3.0.15
  1061. ======
  1062. :release-date: 2013-02-11 04:30:00 P.M UTC
  1063. - Now depends on billiard 2.7.3.21 which fixed a syntax error crash.
  1064. - Fixed bug with :setting:`CELERY_SEND_TASK_SENT_EVENT`.
  1065. .. _version-3.0.14:
  1066. 3.0.14
  1067. ======
  1068. :release-date: 2013-02-08 05:00:00 P.M UTC
  1069. - Now depends on Kombu 2.5.6
  1070. - Now depends on billiard 2.7.3.20
  1071. - ``execv`` is now disabled by default.
  1072. It was causing too many problems for users, you can still enable
  1073. it using the :setting:`CELERYD_FORCE_EXECV` setting.
  1074. execv was only enabled when transports other than amqp/redis was used,
  1075. and it's there to prevent deadlocks caused by mutexes not being released
  1076. before the process forks. Sadly it also changes the environment
  1077. introducing many corner case bugs that is hard to fix without adding
  1078. horrible hacks. Deadlock issues are reported far less often than the
  1079. bugs that execv are causing, so we now disable it by default.
  1080. Work is in motion to create non-blocking versions of these transports
  1081. so that execv is not necessary (which is the situation with the amqp
  1082. and redis broker transports)
  1083. - Chord exception behavior defined (Issue #1172).
  1084. From Celery 3.1 the chord callback will change state to FAILURE
  1085. when a task part of a chord raises an exception.
  1086. It was never documented what happens in this case,
  1087. and the actual behavior was very unsatisfactory, indeed
  1088. it will just forward the exception value to the chord callback.
  1089. For backward compatibility reasons we do not change to the new
  1090. behavior in a bugfix release, even if the current behavior was
  1091. never documented. Instead you can enable the
  1092. :setting:`CELERY_CHORD_PROPAGATES` setting to get the new behavior
  1093. that will be default from Celery 3.1.
  1094. See more at :ref:`chord-errors`.
  1095. - worker: Fixes bug with ignored and retried tasks.
  1096. The ``on_chord_part_return`` and ``Task.after_return`` callbacks,
  1097. nor the ``task_postrun`` signal should be called when the task was
  1098. retried/ignored.
  1099. Fix contributed by Vlad.
  1100. - ``GroupResult.join_native`` now respects the ``propagate`` argument.
  1101. - ``subtask.id`` added as an alias to ``subtask['options'].id``
  1102. .. code-block:: python
  1103. >>> s = add.s(2, 2)
  1104. >>> s.id = 'my-id'
  1105. >>> s['options']
  1106. {'task_id': 'my-id'}
  1107. >>> s.id
  1108. 'my-id'
  1109. - worker: Fixed error `Could not start worker processes` occurring
  1110. when restarting after connection failure (Issue #1118).
  1111. - Adds new signal :signal:`task-retried` (Issue #1169).
  1112. - `celery events --dumper` now handles connection loss.
  1113. - Will now retry sending the task-sent event in case of connection failure.
  1114. - amqp backend: Now uses ``Message.requeue`` instead of republishing
  1115. the message after poll.
  1116. - New :setting:`BROKER_HEARTBEAT_CHECKRATE` setting introduced to modify the
  1117. rate at which broker connection heartbeats are monitored.
  1118. The default value was also changed from 3.0 to 2.0.
  1119. - :class:`celery.events.state.State` is now pickleable.
  1120. Fix contributed by Mher Movsisyan.
  1121. - :class:`celery.datastructures.LRUCache` is now pickleable.
  1122. Fix contributed by Mher Movsisyan.
  1123. - The stats broadcast command now includes the workers pid.
  1124. Contributed by Mher Movsisyan.
  1125. - New ``conf`` remote control command to get a workers current configuration.
  1126. Contributed by Mher Movsisyan.
  1127. - Adds the ability to modify the chord unlock task's countdown
  1128. argument (Issue #1146).
  1129. Contributed by Jun Sakai
  1130. - beat: The scheduler now uses the `now()`` method of the schedule,
  1131. so that schedules can provide a custom way to get the current date and time.
  1132. Contributed by Raphaël Slinckx
  1133. - Fixed pickling of configuration modules on Windows or when execv is used
  1134. (Issue #1126).
  1135. - Multiprocessing logger is now configured with loglevel ``ERROR``
  1136. by default.
  1137. Since 3.0 the multiprocessing loggers were disabled by default
  1138. (only configured when the :envvar:`MP_LOG` environment variable was set).
  1139. .. _version-3.0.13:
  1140. 3.0.13
  1141. ======
  1142. :release-date: 2013-01-07 04:00:00 P.M UTC
  1143. - Now depends on Kombu 2.5
  1144. - py-amqp has replaced amqplib as the default transport,
  1145. gaining support for AMQP 0.9, and the RabbitMQ extensions
  1146. including Consumer Cancel Notifications and heartbeats.
  1147. - support for multiple connection URLs for failover.
  1148. - Read more in the `Kombu 2.5 changelog`_.
  1149. .. _`Kombu 2.5 changelog`:
  1150. http://kombu.readthedocs.org/en/latest/changelog.html#version-2-5-0
  1151. - Now depends on billiard 2.7.3.19
  1152. - Fixed a deadlock issue that could occur when the producer pool
  1153. inherited the connection pool instance of the parent process.
  1154. - The :option:`--loader` option now works again (Issue #1066).
  1155. - :program:`celery` umbrella command: All subcommands now supports
  1156. the :option:`--workdir` option (Issue #1063).
  1157. - Groups included in chains now give GroupResults (Issue #1057)
  1158. Previously it would incorrectly add a regular result instead of a group
  1159. result, but now this works:
  1160. .. code-block:: python
  1161. # [4 + 4, 4 + 8, 16 + 8]
  1162. >>> res = (add.s(2, 2) | group(add.s(4), add.s(8), add.s(16)))()
  1163. >>> res
  1164. <GroupResult: a0acf905-c704-499e-b03a-8d445e6398f7 [
  1165. 4346501c-cb99-4ad8-8577-12256c7a22b1,
  1166. b12ead10-a622-4d44-86e9-3193a778f345,
  1167. 26c7a420-11f3-4b33-8fac-66cd3b62abfd]>
  1168. - Chains can now chain other chains and use partial arguments (Issue #1057).
  1169. Example:
  1170. .. code-block:: python
  1171. >>> c1 = (add.s(2) | add.s(4))
  1172. >>> c2 = (add.s(8) | add.s(16))
  1173. >>> c3 = (c1 | c2)
  1174. # 8 + 2 + 4 + 8 + 16
  1175. >>> assert c3(8).get() == 38
  1176. - Subtasks can now be used with unregistered tasks.
  1177. You can specify subtasks even if you just have the name::
  1178. >>> s = subtask(task_name, args=(), kwargs=())
  1179. >>> s.delay()
  1180. - The :program:`celery shell` command now always adds the current
  1181. directory to the module path.
  1182. - The worker will now properly handle the :exc:`pytz.AmbiguousTimeError`
  1183. exception raised when an ETA/countdown is prepared while being in DST
  1184. transition (Issue #1061).
  1185. - force_execv: Now makes sure that task symbols in the original
  1186. task modules will always use the correct app instance (Issue #1072).
  1187. - AMQP Backend: Now republishes result messages that have been polled
  1188. (using ``result.ready()`` and friends, ``result.get()`` will not do this
  1189. in this version).
  1190. - Crontab schedule values can now "wrap around"
  1191. This means that values like ``11-1`` translates to ``[11, 12, 1]``.
  1192. Contributed by Loren Abrams.
  1193. - multi stopwait command now shows the pid of processes.
  1194. Contributed by Loren Abrams.
  1195. - Handling of ETA/countdown fixed when the :setting:`CELERY_ENABLE_UTC`
  1196. setting is disabled (Issue #1065).
  1197. - A number of uneeded properties were included in messages,
  1198. caused by accidentally passing ``Queue.as_dict`` as message properties.
  1199. - Rate limit values can now be float
  1200. This also extends the string format so that values like ``"0.5/s"`` works.
  1201. Contributed by Christoph Krybus
  1202. - Fixed a typo in the broadcast routing documentation (Issue #1026).
  1203. - Rewrote confusing section about idempotence in the task user guide.
  1204. - Fixed typo in the daemonization tutorial (Issue #1055).
  1205. - Fixed several typos in the documentation.
  1206. Contributed by Marius Gedminas.
  1207. - Batches: Now works when using the eventlet pool.
  1208. Fix contributed by Thomas Grainger.
  1209. - Batches: Added example sending results to :mod:`celery.contrib.batches`.
  1210. Contributed by Thomas Grainger.
  1211. - Mongodb backend: Connection ``max_pool_size`` can now be set in
  1212. :setting:`CELERY_MONGODB_BACKEND_SETTINGS`.
  1213. Contributed by Craig Younkins.
  1214. - Fixed problem when using earlier versions of :mod:`pytz`.
  1215. Fix contributed by Vlad.
  1216. - Docs updated to include the default value for the
  1217. :setting:`CELERY_TASK_RESULT_EXPIRES` setting.
  1218. - Improvements to the django-celery tutorial.
  1219. Contributed by Locker537.
  1220. - The ``add_consumer`` control command did not properly persist
  1221. the addition of new queues so that they survived connection failure
  1222. (Issue #1079).
  1223. 3.0.12
  1224. ======
  1225. :release-date: 2012-11-06 02:00 P.M UTC
  1226. - Now depends on kombu 2.4.8
  1227. - [Redis] New and improved fair queue cycle algorithm (Kevin McCarthy).
  1228. - [Redis] Now uses a Redis-based mutex when restoring messages.
  1229. - [Redis] Number of messages that can be restored in one interval is no
  1230. longer limited (but can be set using the
  1231. ``unacked_restore_limit``
  1232. :setting:`transport option <BROKER_TRANSPORT_OPTIONS>`.)
  1233. - Heartbeat value can be specified in broker URLs (Mher Movsisyan).
  1234. - Fixed problem with msgpack on Python 3 (Jasper Bryant-Greene).
  1235. - Now depends on billiard 2.7.3.18
  1236. - Celery can now be used with static analysis tools like PyDev/PyCharm/pylint
  1237. etc.
  1238. - Development documentation has moved to Read The Docs.
  1239. The new URL is: http://docs.celeryproject.org/en/master
  1240. - New :setting:`CELERY_QUEUE_HA_POLICY` setting used to set the default
  1241. HA policy for queues when using RabbitMQ.
  1242. - New method ``Task.subtask_from_request`` returns a subtask using the current
  1243. request.
  1244. - Results get_many method did not respect timeout argument.
  1245. Fix contributed by Remigiusz Modrzejewski
  1246. - generic_init.d scripts now support setting :envvar:`CELERY_CREATE_DIRS` to
  1247. always create log and pid directories (Issue #1045).
  1248. This can be set in your :file:`/etc/default/celeryd`.
  1249. - Fixed strange kombu import problem on Python 3.2 (Issue #1034).
  1250. - Worker: ETA scheduler now uses millisecond precision (Issue #1040).
  1251. - The ``--config`` argument to programs is now supported by all loaders.
  1252. - The :setting:`CASSANDRA_OPTIONS` setting has now been documented.
  1253. Contributed by Jared Biel.
  1254. - Task methods (:mod:`celery.contrib.methods`) cannot be used with the old
  1255. task base class, the task decorator in that module now inherits from the new.
  1256. - An optimization was too eager and caused some logging messages to never emit.
  1257. - :mod:`celery.contrib.batches` now works again.
  1258. - Fixed missing whitespace in ``bdist_rpm`` requirements (Issue #1046).
  1259. - Event state's ``tasks_by_name`` applied limit before filtering by name.
  1260. Fix contributed by Alexander A. Sosnovskiy.
  1261. .. _version-3.0.11:
  1262. 3.0.11
  1263. ======
  1264. :release-date: 2012-09-26 04:00 P.M UTC
  1265. - [security:low] generic-init.d scripts changed permissions of /var/log & /var/run
  1266. In the daemonization tutorial the recommended directories were as follows:
  1267. .. code-block:: bash
  1268. CELERYD_LOG_FILE="/var/log/celery/%n.log"
  1269. CELERYD_PID_FILE="/var/run/celery/%n.pid"
  1270. But in the scripts themselves the default files were ``/var/log/celery%n.log``
  1271. and ``/var/run/celery%n.pid``, so if the user did not change the location
  1272. by configuration, the directories ``/var/log`` and ``/var/run`` would be
  1273. created - and worse have their permissions and owners changed.
  1274. This change means that:
  1275. - Default pid file is ``/var/run/celery/%n.pid``
  1276. - Default log file is ``/var/log/celery/%n.log``
  1277. - The directories are only created and have their permissions
  1278. changed if *no custom locations are set*.
  1279. Users can force paths to be created by calling the ``create-paths``
  1280. subcommand:
  1281. .. code-block:: bash
  1282. $ sudo /etc/init.d/celeryd create-paths
  1283. .. admonition:: Upgrading Celery will not update init scripts
  1284. To update the init scripts you have to re-download
  1285. the files from source control and update them manually.
  1286. You can find the init scripts for version 3.0.x at:
  1287. http://github.com/celery/celery/tree/3.0/extra/generic-init.d
  1288. - Now depends on billiard 2.7.3.17
  1289. - Fixes request stack protection when app is initialized more than
  1290. once (Issue #1003).
  1291. - ETA tasks now properly works when system timezone is not the same
  1292. as the configured timezone (Issue #1004).
  1293. - Terminating a task now works if the task has been sent to the
  1294. pool but not yet acknowledged by a pool process (Issue #1007).
  1295. Fix contributed by Alexey Zatelepin
  1296. - Terminating a task now properly updates the state of the task to revoked,
  1297. and sends a ``task-revoked`` event.
  1298. - Generic worker init script now waits for workers to shutdown by default.
  1299. - Multi: No longer parses --app option (Issue #1008).
  1300. - Multi: stop_verify command renamed to stopwait.
  1301. - Daemonization: Now delays trying to create pidfile/logfile until after
  1302. the working directory has been changed into.
  1303. - :program:`celery worker` and :program:`celery beat` commands now respects
  1304. the :option:`--no-color` option (Issue #999).
  1305. - Fixed typos in eventlet examples (Issue #1000)
  1306. Fix contributed by Bryan Bishop.
  1307. Congratulations on opening bug #1000!
  1308. - Tasks that raise :exc:`~@Ignore` are now acknowledged.
  1309. - Beat: Now shows the name of the entry in ``sending due task`` logs.
  1310. .. _version-3.0.10:
  1311. 3.0.10
  1312. ======
  1313. :release-date: 2012-09-20 05:30 P.M BST
  1314. - Now depends on kombu 2.4.7
  1315. - Now depends on billiard 2.7.3.14
  1316. - Fixes crash at startup when using Django and pre-1.4 projects
  1317. (setup_environ).
  1318. - Hard time limits now sends the KILL signal shortly after TERM,
  1319. to terminate processes that have signal handlers blocked by C extensions.
  1320. - Billiard now installs even if the C extension cannot be built.
  1321. It's still recommended to build the C extension if you are using
  1322. a transport other than rabbitmq/redis (or use forced execv for some
  1323. other reason).
  1324. - Pool now sets a ``current_process().index`` attribute that can be used to create
  1325. as many log files as there are processes in the pool.
  1326. - Canvas: chord/group/chain no longer modifies the state when called
  1327. Previously calling a chord/group/chain would modify the ids of subtasks
  1328. so that:
  1329. .. code-block:: python
  1330. >>> c = chord([add.s(2, 2), add.s(4, 4)], xsum.s())
  1331. >>> c()
  1332. >>> c() <-- call again
  1333. at the second time the ids for the tasks would be the same as in the
  1334. previous invocation. This is now fixed, so that calling a subtask
  1335. won't mutate any options.
  1336. - Canvas: Chaining a chord to another task now works (Issue #965).
  1337. - Worker: Fixed a bug where the request stack could be corrupted if
  1338. relative imports are used.
  1339. Problem usually manifested itself as an exception while trying to
  1340. send a failed task result (``NoneType does not have id attribute``).
  1341. Fix contributed by Sam Cooke.
  1342. - Tasks can now raise :exc:`~@Ignore` to skip updating states
  1343. or events after return.
  1344. Example:
  1345. .. code-block:: python
  1346. from celery.exceptions import Ignore
  1347. @task
  1348. def custom_revokes():
  1349. if redis.sismember('tasks.revoked', custom_revokes.request.id):
  1350. raise Ignore()
  1351. - The worker now makes sure the request/task stacks are not modified
  1352. by the initial ``Task.__call__``.
  1353. This would previously be a problem if a custom task class defined
  1354. ``__call__`` and also called ``super()``.
  1355. - Because of problems the fast local optimization has been disabled,
  1356. and can only be enabled by setting the :envvar:`USE_FAST_LOCALS` attribute.
  1357. - Worker: Now sets a default socket timeout of 5 seconds at shutdown
  1358. so that broken socket reads do not hinder proper shutdown (Issue #975).
  1359. - More fixes related to late eventlet/gevent patching.
  1360. - Documentation for settings out of sync with reality:
  1361. - :setting:`CELERY_TASK_PUBLISH_RETRY`
  1362. Documented as disabled by default, but it was enabled by default
  1363. since 2.5 as stated by the 2.5 changelog.
  1364. - :setting:`CELERY_TASK_PUBLISH_RETRY_POLICY`
  1365. The default max_retries had been set to 100, but documented as being
  1366. 3, and the interval_max was set to 1 but documented as 0.2.
  1367. The default setting are now set to 3 and 0.2 as it was originally
  1368. documented.
  1369. Fix contributed by Matt Long.
  1370. - Worker: Log messages when connection established and lost have been improved.
  1371. - The repr of a crontab schedule value of '0' should be '*' (Issue #972).
  1372. - Revoked tasks are now removed from reserved/active state in the worker
  1373. (Issue #969)
  1374. Fix contributed by Alexey Zatelepin.
  1375. - gevent: Now supports hard time limits using ``gevent.Timeout``.
  1376. - Documentation: Links to init scripts now point to the 3.0 branch instead
  1377. of the development branch (master).
  1378. - Documentation: Fixed typo in signals user guide (Issue #986).
  1379. ``instance.app.queues`` -> ``instance.app.amqp.queues``.
  1380. - Eventlet/gevent: The worker did not properly set the custom app
  1381. for new greenlets.
  1382. - Eventlet/gevent: Fixed a bug where the worker could not recover
  1383. from connection loss (Issue #959).
  1384. Also, because of a suspected bug in gevent the
  1385. :setting:`BROKER_CONNECTION_TIMEOUT` setting has been disabled
  1386. when using gevent
  1387. 3.0.9
  1388. =====
  1389. :release-date: 2012-08-31 06:00 P.M BST
  1390. - Important note for users of Django and the database scheduler!
  1391. Recently a timezone issue has been fixed for periodic tasks,
  1392. but erroneous timezones could have already been stored in the
  1393. database, so for the fix to work you need to reset
  1394. the ``last_run_at`` fields.
  1395. You can do this by executing the following command:
  1396. .. code-block:: bash
  1397. $ python manage.py shell
  1398. >>> from djcelery.models import PeriodicTask
  1399. >>> PeriodicTask.objects.update(last_run_at=None)
  1400. You also have to do this if you change the timezone or
  1401. :setting:`CELERY_ENABLE_UTC` setting.
  1402. - Note about the :setting:`CELERY_ENABLE_UTC` setting.
  1403. If you previously disabled this just to force periodic tasks to work with
  1404. your timezone, then you are now *encouraged to re-enable it*.
  1405. - Now depends on Kombu 2.4.5 which fixes PyPy + Jython installation.
  1406. - Fixed bug with timezones when :setting:`CELERY_ENABLE_UTC` is disabled
  1407. (Issue #952).
  1408. - Fixed a typo in the celerybeat upgrade mechanism (Issue #951).
  1409. - Make sure the `exc_info` argument to logging is resolved (Issue #899).
  1410. - Fixed problem with Python 3.2 and thread join timeout overflow (Issue #796).
  1411. - A test case was occasionally broken for Python 2.5.
  1412. - Unit test suite now passes for PyPy 1.9.
  1413. - App instances now supports the with statement.
  1414. This calls the new :meth:`~celery.Celery.close` method at exit, which
  1415. cleans up after the app like closing pool connections.
  1416. Note that this is only necessary when dynamically creating apps,
  1417. e.g. for "temporary" apps.
  1418. - Support for piping a subtask to a chain.
  1419. For example:
  1420. .. code-block:: python
  1421. pipe = sometask.s() | othertask.s()
  1422. new_pipe = mytask.s() | pipe
  1423. Contributed by Steve Morin.
  1424. - Fixed problem with group results on non-pickle serializers.
  1425. Fix contributed by Steeve Morin.
  1426. .. _version-3.0.8:
  1427. 3.0.8
  1428. =====
  1429. :release-date: 2012-08-29 05:00 P.M BST
  1430. - Now depends on Kombu 2.4.4
  1431. - Fixed problem with amqplib and receiving larger message payloads
  1432. (Issue #922).
  1433. The problem would manifest itself as either the worker hanging,
  1434. or occasionally a ``Framing error`` exception appearing.
  1435. Users of the new ``pyamqp://`` transport must upgrade to
  1436. :mod:`amqp` 0.9.3.
  1437. - Beat: Fixed another timezone bug with interval and crontab schedules
  1438. (Issue #943).
  1439. - Beat: The schedule file is now automatically cleared if the timezone
  1440. is changed.
  1441. The schedule is also cleared when you upgrade to 3.0.8 from an earlier
  1442. version, this to register the initial timezone info.
  1443. - Events: The :event:`worker-heartbeat` event now include processed and active
  1444. count fields.
  1445. Contributed by Mher Movsisyan.
  1446. - Fixed error with error email and new task classes (Issue #931).
  1447. - ``BaseTask.__call__`` is no longer optimized away if it has been monkey
  1448. patched.
  1449. - Fixed shutdown issue when using gevent (Issue #911 & Issue #936).
  1450. Fix contributed by Thomas Meson.
  1451. .. _version-3.0.7:
  1452. 3.0.7
  1453. =====
  1454. :release-date: 2012-08-24 05:00 P.M BST
  1455. - Fixes several problems with periodic tasks and timezones (Issue #937).
  1456. - Now depends on kombu 2.4.2
  1457. - Redis: Fixes a race condition crash
  1458. - Fixes an infinite loop that could happen when retrying establishing
  1459. the broker connection.
  1460. - Daemons now redirect standard file descriptors to :file:`/dev/null`
  1461. Though by default the standard outs are also redirected
  1462. to the logger instead, but you can disable this by changing
  1463. the :setting:`CELERY_REDIRECT_STDOUTS` setting.
  1464. - Fixes possible problems when eventlet/gevent is patched too late.
  1465. - ``LoggingProxy`` no longer defines ``fileno()`` (Issue #928).
  1466. - Results are now ignored for the chord unlock task.
  1467. Fix contributed by Steeve Morin.
  1468. - Cassandra backend now works if result expiry is disabled.
  1469. Fix contributed by Steeve Morin.
  1470. - The traceback object is now passed to signal handlers instead
  1471. of the string representation.
  1472. Fix contributed by Adam DePue.
  1473. - Celery command: Extensions are now sorted by name.
  1474. - A regression caused the :event:`task-failed` event to be sent
  1475. with the exception object instead of its string representation.
  1476. - The worker daemon would try to create the pid file before daemonizing
  1477. to catch errors, but this file was not immediately released (Issue #923).
  1478. - Fixes Jython compatibility.
  1479. - ``billiard.forking_enable`` was called by all pools not just the
  1480. processes pool, which would result in a useless warning if the billiard
  1481. C extensions were not installed.
  1482. .. _version-3.0.6:
  1483. 3.0.6
  1484. =====
  1485. :release-date: 2012-08-17 11:00 P.M BST
  1486. - Now depends on kombu 2.4.0
  1487. - Now depends on billiard 2.7.3.12
  1488. - Redis: Celery now tries to restore messages whenever there are no messages
  1489. in the queue.
  1490. - Crontab schedules now properly respects :setting:`CELERY_TIMEZONE` setting.
  1491. It's important to note that crontab schedules uses UTC time by default
  1492. unless this setting is set.
  1493. Issue #904 and django-celery #150.
  1494. - ``billiard.enable_forking`` is now only set by the processes pool.
  1495. - The transport is now properly shown by :program:`celery report`
  1496. (Issue #913).
  1497. - The `--app` argument now works if the last part is a module name
  1498. (Issue #921).
  1499. - Fixed problem with unpickleable exceptions (billiard #12).
  1500. - Adds ``task_name`` attribute to ``EagerResult`` which is always
  1501. :const:`None` (Issue #907).
  1502. - Old Task class in :mod:`celery.task` no longer accepts magic kwargs by
  1503. default (Issue #918).
  1504. A regression long ago disabled magic kwargs for these, and since
  1505. no one has complained about it we don't have any incentive to fix it now.
  1506. - The ``inspect reserved`` control command did not work properly.
  1507. - Should now play better with static analyzation tools by explicitly
  1508. specifying dynamically created attributes in the :mod:`celery` and
  1509. :mod:`celery.task` modules.
  1510. - Terminating a task now results in
  1511. :exc:`~@RevokedTaskError` instead of a ``WorkerLostError``.
  1512. - ``AsyncResult.revoke`` now accepts ``terminate`` and ``signal`` arguments.
  1513. - The :event:`task-revoked` event now includes new fields: ``terminated``,
  1514. ``signum``, and ``expired``.
  1515. - The argument to :class:`~@TaskRevokedError` is now one
  1516. of the reasons ``revoked``, ``expired`` or ``terminated``.
  1517. - Old Task class does no longer use classmethods for push_request and
  1518. pop_request (Issue #912).
  1519. - ``GroupResult`` now supports the ``children`` attribute (Issue #916).
  1520. - ``AsyncResult.collect`` now respects the ``intermediate`` argument
  1521. (Issue #917).
  1522. - Fixes example task in documentation (Issue #902).
  1523. - Eventlet fixed so that the environment is patched as soon as possible.
  1524. - eventlet: Now warns if celery related modules that depends on threads
  1525. are imported before eventlet is patched.
  1526. - Improved event and camera examples in the monitoring guide.
  1527. - Disables celery command setuptools entrypoints if the command can't be
  1528. loaded.
  1529. - Fixed broken ``dump_request`` example in the tasks guide.
  1530. .. _version-3.0.5:
  1531. 3.0.5
  1532. =====
  1533. :release-date: 2012-08-01 04:00 P.M BST
  1534. - Now depends on kombu 2.3.1 + billiard 2.7.3.11
  1535. - Fixed a bug with the -B option (``cannot pickle thread.lock objects``)
  1536. (Issue #894 + Issue #892, + django-celery #154).
  1537. - The :control:`restart_pool` control command now requires the
  1538. :setting:`CELERYD_POOL_RESTARTS` setting to be enabled
  1539. This change was necessary as the multiprocessing event that the restart
  1540. command depends on is responsible for creating many semaphores/file
  1541. descriptors, resulting in problems in some environments.
  1542. - ``chain.apply`` now passes args to the first task (Issue #889).
  1543. - Documented previously secret options to the Django-Celery monitor
  1544. in the monitoring userguide (Issue #396).
  1545. - Old changelog are now organized in separate documents for each series,
  1546. see :ref:`history`.
  1547. .. _version-3.0.4:
  1548. 3.0.4
  1549. =====
  1550. :release-date: 2012-07-26 07:00 P.M BST
  1551. - Now depends on Kombu 2.3
  1552. - New experimental standalone Celery monitor: Flower
  1553. See :ref:`monitoring-flower` to read more about it!
  1554. Contributed by Mher Movsisyan.
  1555. - Now supports AMQP heartbeats if using the new ``pyamqp://`` transport.
  1556. - The py-amqp transport requires the :mod:`amqp` library to be installed::
  1557. $ pip install amqp
  1558. - Then you need to set the transport URL prefix to ``pyamqp://``.
  1559. - The default heartbeat value is 10 seconds, but this can be changed using
  1560. the :setting:`BROKER_HEARTBEAT` setting::
  1561. BROKER_HEARTBEAT = 5.0
  1562. - If the broker heartbeat is set to 10 seconds, the heartbeats will be
  1563. monitored every 5 seconds (double the hertbeat rate).
  1564. See the `Kombu 2.3 changelog`_ for more information.
  1565. .. _`Kombu 2.3 changelog`:
  1566. http://kombu.readthedocs.org/en/latest/changelog.html#version-2-3-0
  1567. - Now supports RabbitMQ Consumer Cancel Notifications, using the ``pyamqp://``
  1568. transport.
  1569. This is essential when running RabbitMQ in a cluster.
  1570. See the `Kombu 2.3 changelog`_ for more information.
  1571. - Delivery info is no longer passed directly through.
  1572. It was discovered that the SQS transport adds objects that can't
  1573. be pickled to the delivery info mapping, so we had to go back
  1574. to using the whitelist again.
  1575. Fixing this bug also means that the SQS transport is now working again.
  1576. - The semaphore was not properly released when a task was revoked (Issue #877).
  1577. This could lead to tasks being swallowed and not released until a worker
  1578. restart.
  1579. Thanks to Hynek Schlawack for debugging the issue.
  1580. - Retrying a task now also forwards any linked tasks.
  1581. This means that if a task is part of a chain (or linked in some other
  1582. way) and that even if the task is retried, then the next task in the chain
  1583. will be executed when the retry succeeds.
  1584. - Chords: Now supports setting the interval and other keyword arguments
  1585. to the chord unlock task.
  1586. - The interval can now be set as part of the chord subtasks kwargs::
  1587. chord(header)(body, interval=10.0)
  1588. - In addition the chord unlock task now honors the Task.default_retry_delay
  1589. option, used when none is specified, which also means that the default
  1590. interval can also be changed using annotations:
  1591. .. code-block:: python
  1592. CELERY_ANNOTATIONS = {
  1593. 'celery.chord_unlock': {
  1594. 'default_retry_delay': 10.0,
  1595. }
  1596. }
  1597. - New :meth:`@Celery.add_defaults` method can add new default configuration
  1598. dicts to the applications configuration.
  1599. For example::
  1600. config = {'FOO': 10}
  1601. celery.add_defaults(config)
  1602. is the same as ``celery.conf.update(config)`` except that data will not be
  1603. copied, and that it will not be pickled when the worker spawns child
  1604. processes.
  1605. In addition the method accepts a callable::
  1606. def initialize_config():
  1607. # insert heavy stuff that can't be done at import time here.
  1608. celery.add_defaults(initialize_config)
  1609. which means the same as the above except that it will not happen
  1610. until the celery configuration is actually used.
  1611. As an example, Celery can lazily use the configuration of a Flask app::
  1612. flask_app = Flask()
  1613. celery_app = Celery()
  1614. celery_app.add_defaults(lambda: flask_app.config)
  1615. - Revoked tasks were not marked as revoked in the result backend (Issue #871).
  1616. Fix contributed by Hynek Schlawack.
  1617. - Eventloop now properly handles the case when the epoll poller object
  1618. has been closed (Issue #882).
  1619. - Fixed syntax error in ``funtests/test_leak.py``
  1620. Fix contributed by Catalin Iacob.
  1621. - group/chunks: Now accepts empty task list (Issue #873).
  1622. - New method names:
  1623. - ``Celery.default_connection()`` ➠ :meth:`~@Celery.connection_or_acquire`.
  1624. - ``Celery.default_producer()`` ➠ :meth:`~@Celery.producer_or_acquire`.
  1625. The old names still work for backward compatibility.
  1626. .. _version-3.0.3:
  1627. 3.0.3
  1628. =====
  1629. :release-date: 2012-07-20 09:17 P.M BST
  1630. :by: Ask Solem
  1631. - amqplib passes the channel object as part of the delivery_info
  1632. and it's not pickleable, so we now remove it.
  1633. .. _version-3.0.2:
  1634. 3.0.2
  1635. =====
  1636. :release-date: 2012-07-20 04:00 P.M BST
  1637. :by: Ask Solem
  1638. - A bug caused the following task options to not take defaults from the
  1639. configuration (Issue #867 + Issue #858)
  1640. The following settings were affected:
  1641. - :setting:`CELERY_IGNORE_RESULT`
  1642. - :setting:`CELERYD_SEND_TASK_ERROR_EMAILS`
  1643. - :setting:`CELERY_TRACK_STARTED`
  1644. - :setting:`CElERY_STORE_ERRORS_EVEN_IF_IGNORED`
  1645. Fix contributed by John Watson.
  1646. - Task Request: ``delivery_info`` is now passed through as-is (Issue #807).
  1647. - The eta argument now supports datetime's with a timezone set (Issue #855).
  1648. - The worker's banner displayed the autoscale settings in the wrong order
  1649. (Issue #859).
  1650. - Extension commands are now loaded after concurrency is set up
  1651. so that they don't interfere with e.g. eventlet patching.
  1652. - Fixed bug in the threaded pool (Issue #863)
  1653. - The task failure handler mixed up the fields in :func:`sys.exc_info`.
  1654. Fix contributed by Rinat Shigapov.
  1655. - Fixed typos and wording in the docs.
  1656. Fix contributed by Paul McMillan
  1657. - New setting: :setting:`CELERY_WORKER_DIRECT`
  1658. If enabled each worker will consume from their own dedicated queue
  1659. which can be used to route tasks to specific workers.
  1660. - Fixed several edge case bugs in the add consumer remote control command.
  1661. - :mod:`~celery.contrib.migrate`: Can now filter and move tasks to specific
  1662. workers if :setting:`CELERY_WORKER_DIRECT` is enabled.
  1663. Among other improvements, the following functions have been added:
  1664. * ``move_direct(filterfun, **opts)``
  1665. * ``move_direct_by_id(task_id, worker_hostname, **opts)``
  1666. * ``move_direct_by_idmap({task_id: worker_hostname, ...}, **opts)``
  1667. * ``move_direct_by_taskmap({task_name: worker_hostname, ...}, **opts)``
  1668. - :meth:`~celery.Celery.default_connection` now accepts a pool argument that
  1669. if set to false causes a new connection to be created instead of acquiring
  1670. one from the pool.
  1671. - New signal: :signal:`celeryd_after_setup`.
  1672. - Default loader now keeps lowercase attributes from the configuration module.
  1673. .. _version-3.0.1:
  1674. 3.0.1
  1675. =====
  1676. :release-date: 2012-07-10 06:00 P.M BST
  1677. :by: Ask Solem
  1678. - Now depends on kombu 2.2.5
  1679. - inspect now supports limit argument::
  1680. myapp.control.inspect(limit=1).ping()
  1681. - Beat: now works with timezone aware datetime's.
  1682. - Task classes inheriting ``from celery import Task``
  1683. mistakingly enabled ``accept_magic_kwargs``.
  1684. - Fixed bug in ``inspect scheduled`` (Issue #829).
  1685. - Beat: Now resets the schedule to upgrade to UTC.
  1686. - The :program:`celery worker` command now works with eventlet/gevent.
  1687. Previously it would not patch the environment early enough.
  1688. - The :program:`celery` command now supports extension commands
  1689. using setuptools entry-points.
  1690. Libraries can add additional commands to the :program:`celery`
  1691. command by adding an entry-point like::
  1692. setup(
  1693. entry_points=[
  1694. 'celery.commands': [
  1695. 'foo = my.module:Command',
  1696. ],
  1697. ],
  1698. ...)
  1699. The command must then support the interface of
  1700. :class:`celery.bin.base.Command`.
  1701. - contrib.migrate: New utilities to move tasks from one queue to another.
  1702. - :func:`~celery.contrib.migrate.move_tasks`
  1703. - :func:`~celery.contrib.migrate.move_task_by_id`
  1704. - The :event:`task-sent` event now contains ``exchange`` and ``routing_key``
  1705. fields.
  1706. - Fixes bug with installing on Python 3.
  1707. Fix contributed by Jed Smith.
  1708. .. _version-3.0.0:
  1709. 3.0.0 (Chiastic Slide)
  1710. ======================
  1711. :release-date: 2012-07-07 01:30 P.M BST
  1712. :by: Ask Solem
  1713. See :ref:`whatsnew-3.0`.