changelog-3.0.rst 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126
  1. .. _changelog:
  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.16:
  9. 3.0.16
  10. ======
  11. :release-date: 2013-03-07 XX:XX:XX X.X UTC
  12. - AMQP heartbeats are now disabled by default.
  13. Some users experiences issues with heartbeats enabled,
  14. and it's not strictly necessary to use them.
  15. If you're experiencing problems detecting connection failures,
  16. you can re-enable heartbeats by configuring the :setting:`BROKER_HEARTBEAT`
  17. setting.
  18. - Worker: Now propagates connection errors occurring in multiprocessing
  19. callbacks, so that the connection can be reset (Issue #1226).
  20. - Worker: Now propagates connection errors occurring in timer callbacks,
  21. so that the connection can be reset.
  22. - New bash completion for ``celery`` available in the git repository:
  23. https://github.com/celery/celery/tree/3.0/extra/bash-completion
  24. You can source this file or put it in ``bash_completion.d`` to
  25. get auto-completion for the ``celery`` command-line utility.
  26. - The node name of a worker can now include unicode characters (Issue #1186).
  27. - The repr of a ``crontab`` object now displays correctly (Issue #972).
  28. - ``events.State`` no longer modifies the original event dictionary.
  29. - No longer uses ``Logger.warn`` deprecated in Python 3.
  30. - Cache Backend: Now works with chords again (Issue #1094).
  31. - Chord unlock now handles errors occurring while calling the callback.
  32. - ``ResultSet.join`` now always works with empty result set (Issue #1219).
  33. - A ``group`` consisting of a single task is now supported (Issue #1219).
  34. - Now supports the ``pycallgraph`` program (Issue #1051).
  35. - Fixed Jython compatibility problems.
  36. - Django tutorial: Now mentions that the example app must be added to
  37. ``INSTALLED_APPS`` (Issue #1192).
  38. .. _version-3.0.15:
  39. 3.0.15
  40. ======
  41. :release-date: 2013-02-11 04:30:00 P.M UTC
  42. - Now depends on billiard 2.7.3.21 which fixed a syntax error crash.
  43. - Fixed bug with :setting:`CELERY_SEND_TASK_SENT_EVENT`.
  44. .. _version-3.0.14:
  45. 3.0.14
  46. ======
  47. :release-date: 2013-02-08 05:00:00 P.M UTC
  48. - Now depends on Kombu 2.5.6
  49. - Now depends on billiard 2.7.3.20
  50. - ``execv`` is now disabled by default.
  51. It was causing too many problems for users, you can still enable
  52. it using the :setting:`CELERYD_FORCE_EXECV` setting.
  53. execv was only enabled when transports other than amqp/redis was used,
  54. and it's there to prevent deadlocks caused by mutexes not being released
  55. before the process forks. Sadly it also changes the environment
  56. introducing many corner case bugs that is hard to fix without adding
  57. horrible hacks. Deadlock issues are reported far less often than the
  58. bugs that execv are causing, so we now disable it by default.
  59. Work is in motion to create non-blocking versions of these transports
  60. so that execv is not necessary (which is the situation with the amqp
  61. and redis broker transports)
  62. - Chord exception behavior defined (Issue #1172).
  63. From Celery 3.1 the chord callback will change state to FAILURE
  64. when a task part of a chord raises an exception.
  65. It was never documented what happens in this case,
  66. and the actual behavior was very unsatisfactory, indeed
  67. it will just forward the exception value to the chord callback.
  68. For backward compatibility reasons we do not change to the new
  69. behavior in a bugfix release, even if the current behavior was
  70. never documented. Instead you can enable the
  71. :setting:`CELERY_CHORD_PROPAGATES` setting to get the new behavior
  72. that will be default from Celery 3.1.
  73. See more at :ref:`chord-errors`.
  74. - worker: Fixes bug with ignored and retried tasks.
  75. The ``on_chord_part_return`` and ``Task.after_return`` callbacks,
  76. nor the ``task_postrun`` signal should be called when the task was
  77. retried/ignored.
  78. Fix contributed by Vlad.
  79. - ``GroupResult.join_native`` now respects the ``propagate`` argument.
  80. - ``subtask.id`` added as an alias to ``subtask['options'].id``
  81. .. code-block:: python
  82. >>> s = add.s(2, 2)
  83. >>> s.id = 'my-id'
  84. >>> s['options']
  85. {'task_id': 'my-id'}
  86. >>> s.id
  87. 'my-id'
  88. - worker: Fixed error `Could not start worker processes` occurring
  89. when restarting after connection failure (Issue #1118).
  90. - Adds new signal :signal:`task-retried` (Issue #1169).
  91. - `celery events --dumper` now handles connection loss.
  92. - Will now retry sending the task-sent event in case of connection failure.
  93. - amqp backend: Now uses ``Message.requeue`` instead of republishing
  94. the message after poll.
  95. - New :setting:`BROKER_HEARTBEAT_CHECKRATE` setting introduced to modify the
  96. rate at which broker connection heartbeats are monitored.
  97. The default value was also changed from 3.0 to 2.0.
  98. - :class:`celery.events.state.State` is now pickleable.
  99. Fix contributed by Mher Movsisyan.
  100. - :class:`celery.datastructures.LRUCache` is now pickleable.
  101. Fix contributed by Mher Movsisyan.
  102. - The stats broadcast command now includes the workers pid.
  103. Contributed by Mher Movsisyan.
  104. - New ``conf`` remote control command to get a workers current configuration.
  105. Contributed by Mher Movsisyan.
  106. - Adds the ability to modify the chord unlock task's countdown
  107. argument (Issue #1146).
  108. Contributed by Jun Sakai
  109. - beat: The scheduler now uses the `now()`` method of the schedule,
  110. so that schedules can provide a custom way to get the current date and time.
  111. Contributed by Raphaël Slinckx
  112. - Fixed pickling of configuration modules on Windows or when execv is used
  113. (Issue #1126).
  114. - Multiprocessing logger is now configured with loglevel ``ERROR``
  115. by default.
  116. Since 3.0 the multiprocessing loggers were disabled by default
  117. (only configured when the :envvar:`MP_LOG` environment variable was set).
  118. .. _version-3.0.13:
  119. 3.0.13
  120. ======
  121. :release-date: 2013-01-07 04:00:00 P.M UTC
  122. - Now depends on Kombu 2.5
  123. - py-amqp has replaced amqplib as the default transport,
  124. gaining support for AMQP 0.9, and the RabbitMQ extensions
  125. including Consumer Cancel Notifications and heartbeats.
  126. - support for multiple connection URLs for failover.
  127. - Read more in the `Kombu 2.5 changelog`_.
  128. .. _`Kombu 2.5 changelog`:
  129. http://kombu.readthedocs.org/en/latest/changelog.html#version-2-5-0
  130. - Now depends on billiard 2.7.3.19
  131. - Fixed a deadlock issue that could occur when the producer pool
  132. inherited the connection pool instance of the parent process.
  133. - The :option:`--loader` option now works again (Issue #1066).
  134. - :program:`celery` umbrella command: All subcommands now supports
  135. the :option:`--workdir` option (Issue #1063).
  136. - Groups included in chains now give GroupResults (Issue #1057)
  137. Previously it would incorrectly add a regular result instead of a group
  138. result, but now this works:
  139. .. code-block:: python
  140. # [4 + 4, 4 + 8, 16 + 8]
  141. >>> res = (add.s(2, 2) | group(add.s(4), add.s(8), add.s(16)))()
  142. >>> res
  143. <GroupResult: a0acf905-c704-499e-b03a-8d445e6398f7 [
  144. 4346501c-cb99-4ad8-8577-12256c7a22b1,
  145. b12ead10-a622-4d44-86e9-3193a778f345,
  146. 26c7a420-11f3-4b33-8fac-66cd3b62abfd]>
  147. - Chains can now chain other chains and use partial arguments (Issue #1057).
  148. Example:
  149. .. code-block:: python
  150. >>> c1 = (add.s(2) | add.s(4))
  151. >>> c2 = (add.s(8) | add.s(16))
  152. >>> c3 = (c1 | c2)
  153. # 8 + 2 + 4 + 8 + 16
  154. >>> assert c3(8).get() == 38
  155. - Subtasks can now be used with unregistered tasks.
  156. You can specify subtasks even if you just have the name::
  157. >>> s = subtask(task_name, args=(), kwargs=())
  158. >>> s.delay()
  159. - The :program:`celery shell` command now always adds the current
  160. directory to the module path.
  161. - The worker will now properly handle the :exc:`pytz.AmbiguousTimeError`
  162. exception raised when an ETA/countdown is prepared while being in DST
  163. transition (Issue #1061).
  164. - force_execv: Now makes sure that task symbols in the original
  165. task modules will always use the correct app instance (Issue #1072).
  166. - AMQP Backend: Now republishes result messages that have been polled
  167. (using ``result.ready()`` and friends, ``result.get()`` will not do this
  168. in this version).
  169. - Crontab schedule values can now "wrap around"
  170. This means that values like ``11-1`` translates to ``[11, 12, 1]``.
  171. Contributed by Loren Abrams.
  172. - multi stopwait command now shows the pid of processes.
  173. Contributed by Loren Abrams.
  174. - Handling of ETA/countdown fixed when the :setting:`CELERY_ENABLE_UTC`
  175. setting is disabled (Issue #1065).
  176. - A number of uneeded properties were included in messages,
  177. caused by accidentally passing ``Queue.as_dict`` as message properties.
  178. - Rate limit values can now be float
  179. This also extends the string format so that values like ``"0.5/s"`` works.
  180. Contributed by Christoph Krybus
  181. - Fixed a typo in the broadcast routing documentation (Issue #1026).
  182. - Rewrote confusing section about idempotence in the task user guide.
  183. - Fixed typo in the daemonization tutorial (Issue #1055).
  184. - Fixed several typos in the documentation.
  185. Contributed by Marius Gedminas.
  186. - Batches: Now works when using the eventlet pool.
  187. Fix contributed by Thomas Grainger.
  188. - Batches: Added example sending results to :mod:`celery.contrib.batches`.
  189. Contributed by Thomas Grainger.
  190. - Mongodb backend: Connection ``max_pool_size`` can now be set in
  191. :setting:`CELERY_MONGODB_BACKEND_SETTINGS`.
  192. Contributed by Craig Younkins.
  193. - Fixed problem when using earlier versions of :mod:`pytz`.
  194. Fix contributed by Vlad.
  195. - Docs updated to include the default value for the
  196. :setting:`CELERY_TASK_RESULT_EXPIRES` setting.
  197. - Improvements to the django-celery tutorial.
  198. Contributed by Locker537.
  199. - The ``add_consumer`` control command did not properly persist
  200. the addition of new queues so that they survived connection failure
  201. (Issue #1079).
  202. 3.0.12
  203. ======
  204. :release-date: 2012-11-06 02:00 P.M UTC
  205. - Now depends on kombu 2.4.8
  206. - [Redis] New and improved fair queue cycle algorithm (Kevin McCarthy).
  207. - [Redis] Now uses a Redis-based mutex when restoring messages.
  208. - [Redis] Number of messages that can be restored in one interval is no
  209. longer limited (but can be set using the
  210. ``unacked_restore_limit``
  211. :setting:`transport option <BROKER_TRANSPORT_OPTIONS>`.)
  212. - Heartbeat value can be specified in broker URLs (Mher Movsisyan).
  213. - Fixed problem with msgpack on Python 3 (Jasper Bryant-Greene).
  214. - Now depends on billiard 2.7.3.18
  215. - Celery can now be used with static analysis tools like PyDev/PyCharm/pylint
  216. etc.
  217. - Development documentation has moved to Read The Docs.
  218. The new URL is: http://docs.celeryproject.org/en/master
  219. - New :setting:`CELERY_QUEUE_HA_POLICY` setting used to set the default
  220. HA policy for queues when using RabbitMQ.
  221. - New method ``Task.subtask_from_request`` returns a subtask using the current
  222. request.
  223. - Results get_many method did not respect timeout argument.
  224. Fix contributed by Remigiusz Modrzejewski
  225. - generic_init.d scripts now support setting :envvar:`CELERY_CREATE_DIRS` to
  226. always create log and pid directories (Issue #1045).
  227. This can be set in your :file:`/etc/default/celeryd`.
  228. - Fixed strange kombu import problem on Python 3.2 (Issue #1034).
  229. - Worker: ETA scheduler now uses millisecond precision (Issue #1040).
  230. - The ``--config`` argument to programs is now supported by all loaders.
  231. - The :setting:`CASSANDRA_OPTIONS` setting has now been documented.
  232. Contributed by Jared Biel.
  233. - Task methods (:mod:`celery.contrib.methods`) cannot be used with the old
  234. task base class, the task decorator in that module now inherits from the new.
  235. - An optimization was too eager and caused some logging messages to never emit.
  236. - :mod:`celery.contrib.batches` now works again.
  237. - Fixed missing whitespace in ``bdist_rpm`` requirements (Issue #1046).
  238. - Event state's ``tasks_by_name`` applied limit before filtering by name.
  239. Fix contributed by Alexander A. Sosnovskiy.
  240. .. _version-3.0.11:
  241. 3.0.11
  242. ======
  243. :release-date: 2012-09-26 04:00 P.M UTC
  244. - [security:low] generic-init.d scripts changed permissions of /var/log & /var/run
  245. In the daemonization tutorial the recommended directories were as follows:
  246. .. code-block:: bash
  247. CELERYD_LOG_FILE="/var/log/celery/%n.log"
  248. CELERYD_PID_FILE="/var/run/celery/%n.pid"
  249. But in the scripts themselves the default files were ``/var/log/celery%n.log``
  250. and ``/var/run/celery%n.pid``, so if the user did not change the location
  251. by configuration, the directories ``/var/log`` and ``/var/run`` would be
  252. created - and worse have their permissions and owners changed.
  253. This change means that:
  254. - Default pid file is ``/var/run/celery/%n.pid``
  255. - Default log file is ``/var/log/celery/%n.log``
  256. - The directories are only created and have their permissions
  257. changed if *no custom locations are set*.
  258. Users can force paths to be created by calling the ``create-paths``
  259. subcommand:
  260. .. code-block:: bash
  261. $ sudo /etc/init.d/celeryd create-paths
  262. .. admonition:: Upgrading Celery will not update init scripts
  263. To update the init scripts you have to re-download
  264. the files from source control and update them manually.
  265. You can find the init scripts for version 3.0.x at:
  266. http://github.com/celery/celery/tree/3.0/extra/generic-init.d
  267. - Now depends on billiard 2.7.3.17
  268. - Fixes request stack protection when app is initialized more than
  269. once (Issue #1003).
  270. - ETA tasks now properly works when system timezone is not the same
  271. as the configured timezone (Issue #1004).
  272. - Terminating a task now works if the task has been sent to the
  273. pool but not yet acknowledged by a pool process (Issue #1007).
  274. Fix contributed by Alexey Zatelepin
  275. - Terminating a task now properly updates the state of the task to revoked,
  276. and sends a ``task-revoked`` event.
  277. - Generic worker init script now waits for workers to shutdown by default.
  278. - Multi: No longer parses --app option (Issue #1008).
  279. - Multi: stop_verify command renamed to stopwait.
  280. - Daemonization: Now delays trying to create pidfile/logfile until after
  281. the working directory has been changed into.
  282. - :program:`celery worker` and :program:`celery beat` commands now respects
  283. the :option:`--no-color` option (Issue #999).
  284. - Fixed typos in eventlet examples (Issue #1000)
  285. Fix contributed by Bryan Bishop.
  286. Congratulations on opening bug #1000!
  287. - Tasks that raise :exc:`~celery.exceptions.Ignore` are now acknowledged.
  288. - Beat: Now shows the name of the entry in ``sending due task`` logs.
  289. .. _version-3.0.10:
  290. 3.0.10
  291. ======
  292. :release-date: 2012-09-20 05:30 P.M BST
  293. - Now depends on kombu 2.4.7
  294. - Now depends on billiard 2.7.3.14
  295. - Fixes crash at startup when using Django and pre-1.4 projects
  296. (setup_environ).
  297. - Hard time limits now sends the KILL signal shortly after TERM,
  298. to terminate processes that have signal handlers blocked by C extensions.
  299. - Billiard now installs even if the C extension cannot be built.
  300. It's still recommended to build the C extension if you are using
  301. a transport other than rabbitmq/redis (or use forced execv for some
  302. other reason).
  303. - Pool now sets a ``current_process().index`` attribute that can be used to create
  304. as many log files as there are processes in the pool.
  305. - Canvas: chord/group/chain no longer modifies the state when called
  306. Previously calling a chord/group/chain would modify the ids of subtasks
  307. so that:
  308. .. code-block:: python
  309. >>> c = chord([add.s(2, 2), add.s(4, 4)], xsum.s())
  310. >>> c()
  311. >>> c() <-- call again
  312. at the second time the ids for the tasks would be the same as in the
  313. previous invocation. This is now fixed, so that calling a subtask
  314. won't mutate any options.
  315. - Canvas: Chaining a chord to another task now works (Issue #965).
  316. - Worker: Fixed a bug where the request stack could be corrupted if
  317. relative imports are used.
  318. Problem usually manifested itself as an exception while trying to
  319. send a failed task result (``NoneType does not have id attribute``).
  320. Fix contributed by Sam Cooke.
  321. - Tasks can now raise :exc:`~celery.exceptions.Ignore` to skip updating states
  322. or events after return.
  323. Example:
  324. .. code-block:: python
  325. from celery.exceptions import Ignore
  326. @task
  327. def custom_revokes():
  328. if redis.sismember('tasks.revoked', custom_revokes.request.id):
  329. raise Ignore()
  330. - The worker now makes sure the request/task stacks are not modified
  331. by the initial ``Task.__call__``.
  332. This would previously be a problem if a custom task class defined
  333. ``__call__`` and also called ``super()``.
  334. - Because of problems the fast local optimization has been disabled,
  335. and can only be enabled by setting the :envvar:`USE_FAST_LOCALS` attribute.
  336. - Worker: Now sets a default socket timeout of 5 seconds at shutdown
  337. so that broken socket reads do not hinder proper shutdown (Issue #975).
  338. - More fixes related to late eventlet/gevent patching.
  339. - Documentation for settings out of sync with reality:
  340. - :setting:`CELERY_TASK_PUBLISH_RETRY`
  341. Documented as disabled by default, but it was enabled by default
  342. since 2.5 as stated by the 2.5 changelog.
  343. - :setting:`CELERY_TASK_PUBLISH_RETRY_POLICY`
  344. The default max_retries had been set to 100, but documented as being
  345. 3, and the interval_max was set to 1 but documented as 0.2.
  346. The default setting are now set to 3 and 0.2 as it was originally
  347. documented.
  348. Fix contributed by Matt Long.
  349. - Worker: Log messages when connection established and lost have been improved.
  350. - The repr of a crontab schedule value of '0' should be '*' (Issue #972).
  351. - Revoked tasks are now removed from reserved/active state in the worker
  352. (Issue #969)
  353. Fix contributed by Alexey Zatelepin.
  354. - gevent: Now supports hard time limits using ``gevent.Timeout``.
  355. - Documentation: Links to init scripts now point to the 3.0 branch instead
  356. of the development branch (master).
  357. - Documentation: Fixed typo in signals user guide (Issue #986).
  358. ``instance.app.queues`` -> ``instance.app.amqp.queues``.
  359. - Eventlet/gevent: The worker did not properly set the custom app
  360. for new greenlets.
  361. - Eventlet/gevent: Fixed a bug where the worker could not recover
  362. from connection loss (Issue #959).
  363. Also, because of a suspected bug in gevent the
  364. :setting:`BROKER_CONNECTION_TIMEOUT` setting has been disabled
  365. when using gevent
  366. 3.0.9
  367. =====
  368. :release-date: 2012-08-31 06:00 P.M BST
  369. - Important note for users of Django and the database scheduler!
  370. Recently a timezone issue has been fixed for periodic tasks,
  371. but erroneous timezones could have already been stored in the
  372. database, so for the fix to work you need to reset
  373. the ``last_run_at`` fields.
  374. You can do this by executing the following command:
  375. .. code-block:: bash
  376. $ python manage.py shell
  377. >>> from djcelery.models import PeriodicTask
  378. >>> PeriodicTask.objects.update(last_run_at=None)
  379. You also have to do this if you change the timezone or
  380. :setting:`CELERY_ENABLE_UTC` setting.
  381. - Note about the :setting:`CELERY_ENABLE_UTC` setting.
  382. If you previously disabled this just to force periodic tasks to work with
  383. your timezone, then you are now *encouraged to re-enable it*.
  384. - Now depends on Kombu 2.4.5 which fixes PyPy + Jython installation.
  385. - Fixed bug with timezones when :setting:`CELERY_ENABLE_UTC` is disabled
  386. (Issue #952).
  387. - Fixed a typo in the celerybeat upgrade mechanism (Issue #951).
  388. - Make sure the `exc_info` argument to logging is resolved (Issue #899).
  389. - Fixed problem with Python 3.2 and thread join timeout overflow (Issue #796).
  390. - A test case was occasionally broken for Python 2.5.
  391. - Unit test suite now passes for PyPy 1.9.
  392. - App instances now supports the with statement.
  393. This calls the new :meth:`~celery.Celery.close` method at exit, which
  394. cleans up after the app like closing pool connections.
  395. Note that this is only necessary when dynamically creating apps,
  396. e.g. for "temporary" apps.
  397. - Support for piping a subtask to a chain.
  398. For example:
  399. .. code-block:: python
  400. pipe = sometask.s() | othertask.s()
  401. new_pipe = mytask.s() | pipe
  402. Contributed by Steve Morin.
  403. - Fixed problem with group results on non-pickle serializers.
  404. Fix contributed by Steeve Morin.
  405. .. _version-3.0.8:
  406. 3.0.8
  407. =====
  408. :release-date: 2012-08-29 05:00 P.M BST
  409. - Now depends on Kombu 2.4.4
  410. - Fixed problem with amqplib and receiving larger message payloads
  411. (Issue #922).
  412. The problem would manifest itself as either the worker hanging,
  413. or occasionally a ``Framing error`` exception appearing.
  414. Users of the new ``pyamqp://`` transport must upgrade to
  415. :mod:`amqp` 0.9.3.
  416. - Beat: Fixed another timezone bug with interval and crontab schedules
  417. (Issue #943).
  418. - Beat: The schedule file is now automatically cleared if the timezone
  419. is changed.
  420. The schedule is also cleared when you upgrade to 3.0.8 from an earlier
  421. version, this to register the initial timezone info.
  422. - Events: The :event:`worker-heartbeat` event now include processed and active
  423. count fields.
  424. Contributed by Mher Movsisyan.
  425. - Fixed error with error email and new task classes (Issue #931).
  426. - ``BaseTask.__call__`` is no longer optimized away if it has been monkey
  427. patched.
  428. - Fixed shutdown issue when using gevent (Issue #911 & Issue #936).
  429. Fix contributed by Thomas Meson.
  430. .. _version-3.0.7:
  431. 3.0.7
  432. =====
  433. :release-date: 2012-08-24 05:00 P.M BST
  434. - Fixes several problems with periodic tasks and timezones (Issue #937).
  435. - Now depends on kombu 2.4.2
  436. - Redis: Fixes a race condition crash
  437. - Fixes an infinite loop that could happen when retrying establishing
  438. the broker connection.
  439. - Daemons now redirect standard file descriptors to :file:`/dev/null`
  440. Though by default the standard outs are also redirected
  441. to the logger instead, but you can disable this by changing
  442. the :setting:`CELERY_REDIRECT_STDOUTS` setting.
  443. - Fixes possible problems when eventlet/gevent is patched too late.
  444. - ``LoggingProxy`` no longer defines ``fileno()`` (Issue #928).
  445. - Results are now ignored for the chord unlock task.
  446. Fix contributed by Steeve Morin.
  447. - Cassandra backend now works if result expiry is disabled.
  448. Fix contributed by Steeve Morin.
  449. - The traceback object is now passed to signal handlers instead
  450. of the string representation.
  451. Fix contributed by Adam DePue.
  452. - Celery command: Extensions are now sorted by name.
  453. - A regression caused the :event:`task-failed` event to be sent
  454. with the exception object instead of its string representation.
  455. - The worker daemon would try to create the pid file before daemonizing
  456. to catch errors, but this file was not immediately released (Issue #923).
  457. - Fixes Jython compatibility.
  458. - ``billiard.forking_enable`` was called by all pools not just the
  459. processes pool, which would result in a useless warning if the billiard
  460. C extensions were not installed.
  461. .. _version-3.0.6:
  462. 3.0.6
  463. =====
  464. :release-date: 2012-08-17 11:00 P.M BST
  465. - Now depends on kombu 2.4.0
  466. - Now depends on billiard 2.7.3.12
  467. - Redis: Celery now tries to restore messages whenever there are no messages
  468. in the queue.
  469. - Crontab schedules now properly respects :setting:`CELERY_TIMEZONE` setting.
  470. It's important to note that crontab schedules uses UTC time by default
  471. unless this setting is set.
  472. Issue #904 and django-celery #150.
  473. - ``billiard.enable_forking`` is now only set by the processes pool.
  474. - The transport is now properly shown by :program:`celery report`
  475. (Issue #913).
  476. - The `--app` argument now works if the last part is a module name
  477. (Issue #921).
  478. - Fixed problem with unpickleable exceptions (billiard #12).
  479. - Adds ``task_name`` attribute to ``EagerResult`` which is always
  480. :const:`None` (Issue #907).
  481. - Old Task class in :mod:`celery.task` no longer accepts magic kwargs by
  482. default (Issue #918).
  483. A regression long ago disabled magic kwargs for these, and since
  484. no one has complained about it we don't have any incentive to fix it now.
  485. - The ``inspect reserved`` control command did not work properly.
  486. - Should now play better with static analyzation tools by explicitly
  487. specifying dynamically created attributes in the :mod:`celery` and
  488. :mod:`celery.task` modules.
  489. - Terminating a task now results in
  490. :exc:`~celery.exceptions.RevokedTaskError` instead of a ``WorkerLostError``.
  491. - ``AsyncResult.revoke`` now accepts ``terminate`` and ``signal`` arguments.
  492. - The :event:`task-revoked` event now includes new fields: ``terminated``,
  493. ``signum``, and ``expired``.
  494. - The argument to :class:`~celery.exceptions.TaskRevokedError` is now one
  495. of the reasons ``revoked``, ``expired`` or ``terminated``.
  496. - Old Task class does no longer use classmethods for push_request and
  497. pop_request (Issue #912).
  498. - ``GroupResult`` now supports the ``children`` attribute (Issue #916).
  499. - ``AsyncResult.collect`` now respects the ``intermediate`` argument
  500. (Issue #917).
  501. - Fixes example task in documentation (Issue #902).
  502. - Eventlet fixed so that the environment is patched as soon as possible.
  503. - eventlet: Now warns if celery related modules that depends on threads
  504. are imported before eventlet is patched.
  505. - Improved event and camera examples in the monitoring guide.
  506. - Disables celery command setuptools entrypoints if the command can't be
  507. loaded.
  508. - Fixed broken ``dump_request`` example in the tasks guide.
  509. .. _version-3.0.5:
  510. 3.0.5
  511. =====
  512. :release-date: 2012-08-01 04:00 P.M BST
  513. - Now depends on kombu 2.3.1 + billiard 2.7.3.11
  514. - Fixed a bug with the -B option (``cannot pickle thread.lock objects``)
  515. (Issue #894 + Issue #892, + django-celery #154).
  516. - The :control:`restart_pool` control command now requires the
  517. :setting:`CELERYD_POOL_RESTARTS` setting to be enabled
  518. This change was necessary as the multiprocessing event that the restart
  519. command depends on is responsible for creating many semaphores/file
  520. descriptors, resulting in problems in some environments.
  521. - ``chain.apply`` now passes args to the first task (Issue #889).
  522. - Documented previously secret options to the Django-Celery monitor
  523. in the monitoring userguide (Issue #396).
  524. - Old changelog are now organized in separate documents for each series,
  525. see :ref:`history`.
  526. .. _version-3.0.4:
  527. 3.0.4
  528. =====
  529. :release-date: 2012-07-26 07:00 P.M BST
  530. - Now depends on Kombu 2.3
  531. - New experimental standalone Celery monitor: Flower
  532. See :ref:`monitoring-flower` to read more about it!
  533. Contributed by Mher Movsisyan.
  534. - Now supports AMQP heartbeats if using the new ``pyamqp://`` transport.
  535. - The py-amqp transport requires the :mod:`amqp` library to be installed::
  536. $ pip install amqp
  537. - Then you need to set the transport URL prefix to ``pyamqp://``.
  538. - The default heartbeat value is 10 seconds, but this can be changed using
  539. the :setting:`BROKER_HEARTBEAT` setting::
  540. BROKER_HEARTBEAT = 5.0
  541. - If the broker heartbeat is set to 10 seconds, the heartbeats will be
  542. monitored every 5 seconds (double the hertbeat rate).
  543. See the `Kombu 2.3 changelog`_ for more information.
  544. .. _`Kombu 2.3 changelog`:
  545. http://kombu.readthedocs.org/en/latest/changelog.html#version-2-3-0
  546. - Now supports RabbitMQ Consumer Cancel Notifications, using the ``pyamqp://``
  547. transport.
  548. This is essential when running RabbitMQ in a cluster.
  549. See the `Kombu 2.3 changelog`_ for more information.
  550. - Delivery info is no longer passed directly through.
  551. It was discovered that the SQS transport adds objects that can't
  552. be pickled to the delivery info mapping, so we had to go back
  553. to using the whitelist again.
  554. Fixing this bug also means that the SQS transport is now working again.
  555. - The semaphore was not properly released when a task was revoked (Issue #877).
  556. This could lead to tasks being swallowed and not released until a worker
  557. restart.
  558. Thanks to Hynek Schlawack for debugging the issue.
  559. - Retrying a task now also forwards any linked tasks.
  560. This means that if a task is part of a chain (or linked in some other
  561. way) and that even if the task is retried, then the next task in the chain
  562. will be executed when the retry succeeds.
  563. - Chords: Now supports setting the interval and other keyword arguments
  564. to the chord unlock task.
  565. - The interval can now be set as part of the chord subtasks kwargs::
  566. chord(header)(body, interval=10.0)
  567. - In addition the chord unlock task now honors the Task.default_retry_delay
  568. option, used when none is specified, which also means that the default
  569. interval can also be changed using annotations:
  570. .. code-block:: python
  571. CELERY_ANNOTATIONS = {
  572. 'celery.chord_unlock': {
  573. 'default_retry_delay': 10.0,
  574. }
  575. }
  576. - New :meth:`@Celery.add_defaults` method can add new default configuration
  577. dicts to the applications configuration.
  578. For example::
  579. config = {'FOO': 10}
  580. celery.add_defaults(config)
  581. is the same as ``celery.conf.update(config)`` except that data will not be
  582. copied, and that it will not be pickled when the worker spawns child
  583. processes.
  584. In addition the method accepts a callable::
  585. def initialize_config():
  586. # insert heavy stuff that can't be done at import time here.
  587. celery.add_defaults(initialize_config)
  588. which means the same as the above except that it will not happen
  589. until the celery configuration is actually used.
  590. As an example, Celery can lazily use the configuration of a Flask app::
  591. flask_app = Flask()
  592. celery = Celery()
  593. celery.add_defaults(lambda: flask_app.config)
  594. - Revoked tasks were not marked as revoked in the result backend (Issue #871).
  595. Fix contributed by Hynek Schlawack.
  596. - Eventloop now properly handles the case when the epoll poller object
  597. has been closed (Issue #882).
  598. - Fixed syntax error in ``funtests/test_leak.py``
  599. Fix contributed by Catalin Iacob.
  600. - group/chunks: Now accepts empty task list (Issue #873).
  601. - New method names:
  602. - ``Celery.default_connection()`` ➠ :meth:`~@Celery.connection_or_acquire`.
  603. - ``Celery.default_producer()`` ➠ :meth:`~@Celery.producer_or_acquire`.
  604. The old names still work for backward compatibility.
  605. .. _version-3.0.3:
  606. 3.0.3
  607. =====
  608. :release-date: 2012-07-20 09:17 P.M BST
  609. :by: Ask Solem
  610. - amqplib passes the channel object as part of the delivery_info
  611. and it's not pickleable, so we now remove it.
  612. .. _version-3.0.2:
  613. 3.0.2
  614. =====
  615. :release-date: 2012-07-20 04:00 P.M BST
  616. :by: Ask Solem
  617. - A bug caused the following task options to not take defaults from the
  618. configuration (Issue #867 + Issue #858)
  619. The following settings were affected:
  620. - :setting:`CELERY_IGNORE_RESULT`
  621. - :setting:`CELERYD_SEND_TASK_ERROR_EMAILS`
  622. - :setting:`CELERY_TRACK_STARTED`
  623. - :setting:`CElERY_STORE_ERRORS_EVEN_IF_IGNORED`
  624. Fix contributed by John Watson.
  625. - Task Request: ``delivery_info`` is now passed through as-is (Issue #807).
  626. - The eta argument now supports datetime's with a timezone set (Issue #855).
  627. - The worker's banner displayed the autoscale settings in the wrong order
  628. (Issue #859).
  629. - Extension commands are now loaded after concurrency is set up
  630. so that they don't interfere with e.g. eventlet patching.
  631. - Fixed bug in the threaded pool (Issue #863)
  632. - The task failure handler mixed up the fields in :func:`sys.exc_info`.
  633. Fix contributed by Rinat Shigapov.
  634. - Fixed typos and wording in the docs.
  635. Fix contributed by Paul McMillan
  636. - New setting: :setting:`CELERY_WORKER_DIRECT`
  637. If enabled each worker will consume from their own dedicated queue
  638. which can be used to route tasks to specific workers.
  639. - Fixed several edge case bugs in the add consumer remote control command.
  640. - :mod:`~celery.contrib.migrate`: Can now filter and move tasks to specific
  641. workers if :setting:`CELERY_WORKER_DIRECT` is enabled.
  642. Among other improvements, the following functions have been added:
  643. * ``move_direct(filterfun, **opts)``
  644. * ``move_direct_by_id(task_id, worker_hostname, **opts)``
  645. * ``move_direct_by_idmap({task_id: worker_hostname, ...}, **opts)``
  646. * ``move_direct_by_taskmap({task_name: worker_hostname, ...}, **opts)``
  647. - :meth:`~celery.Celery.default_connection` now accepts a pool argument that
  648. if set to false causes a new connection to be created instead of acquiring
  649. one from the pool.
  650. - New signal: :signal:`celeryd_after_setup`.
  651. - Default loader now keeps lowercase attributes from the configuration module.
  652. .. _version-3.0.1:
  653. 3.0.1
  654. =====
  655. :release-date: 2012-07-10 06:00 P.M BST
  656. :by: Ask Solem
  657. - Now depends on kombu 2.2.5
  658. - inspect now supports limit argument::
  659. myapp.control.inspect(limit=1).ping()
  660. - Beat: now works with timezone aware datetime's.
  661. - Task classes inheriting ``from celery import Task``
  662. mistakingly enabled ``accept_magic_kwargs``.
  663. - Fixed bug in ``inspect scheduled`` (Issue #829).
  664. - Beat: Now resets the schedule to upgrade to UTC.
  665. - The :program:`celery worker` command now works with eventlet/gevent.
  666. Previously it would not patch the environment early enough.
  667. - The :program:`celery` command now supports extension commands
  668. using setuptools entry-points.
  669. Libraries can add additional commands to the :program:`celery`
  670. command by adding an entry-point like::
  671. setup(
  672. entry_points=[
  673. 'celery.commands': [
  674. 'foo = my.module:Command',
  675. ],
  676. ],
  677. ...)
  678. The command must then support the interface of
  679. :class:`celery.bin.base.Command`.
  680. - contrib.migrate: New utilities to move tasks from one queue to another.
  681. - :func:`~celery.contrib.migrate.move_tasks`
  682. - :func:`~celery.contrib.migrate.move_task_by_id`
  683. - The :event:`task-sent` event now contains ``exchange`` and ``routing_key``
  684. fields.
  685. - Fixes bug with installing on Python 3.
  686. Fix contributed by Jed Smith.
  687. .. _version-3.0.0:
  688. 3.0.0 (Chiastic Slide)
  689. ======================
  690. :release-date: 2012-07-07 01:30 P.M BST
  691. :by: Ask Solem
  692. See :ref:`whatsnew-3.0`.