changelog-3.0.rst 79 KB

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