Changelog 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. .. _changelog:
  2. ================
  3. Change history
  4. ================
  5. This document contains change notes for bugfix releases in the 3.1.x series
  6. (Cipater), please see :ref:`whatsnew-3.1` for an overview of what's
  7. new in Celery 3.1.
  8. .. _version-3.1.6:
  9. 3.1.6
  10. =====
  11. - Now depends on :mod:`billiard` 3.3.0.9.
  12. - Now depends on :ref:`Kombu 3.0.7 <kombu:version-3.0.7>`.
  13. - Fixed problem where Mingle caused the worker to hang at startup
  14. (Issue #1686).
  15. - Beat: Would attempt to drop privileges twice when ``--detach`` enabled
  16. (Issue #1708).
  17. - Windows: Fixed error with ``geteuid`` not being available (Issue #1676).
  18. - Tasks can now provide a list of expected error classes (Issue #1682).
  19. The list should only include errors that the task is expected to raise
  20. during normal operation::
  21. @task(throws=(KeyError, HttpNotFound))
  22. What happens when an exceptions is raised depends on the type of error:
  23. - Expected errors (included in ``Task.throws``)
  24. Will be logged using severity ``INFO``, and traceback is excluded.
  25. - Unexpected errors
  26. Will be logged using severity ``ERROR``, with traceback included.
  27. - Cache result backend now compatible with Python 3 (Issue #1697).
  28. - CentOS init script: Now compatible with sys-v style init symlinks.
  29. Fix contributed by Jonathan Jordan.
  30. - Events: Fixed problem when task name is not defined (Issue #1710).
  31. Fix contributed by Mher Movsisyan.
  32. - Task: Fixed unbound local errors (Issue #1684).
  33. Fix contributed by Markus Ullmann.
  34. - Canvas: Now unrolls groups with only one task (optimization) (Issue #1656).
  35. - Task: Fixed problem with eta and timezones.
  36. Fix contributed by Alexander Koval.
  37. - Django: Worker now performs model validation (Issue #1681).
  38. - Task decorator now emits less confusing errors when used with
  39. incorrect arguments (Issue #1692).
  40. - Task: New method ``Task.send_event`` can be used to send custom events
  41. to Flower and other monitors.
  42. - Fixed a compatibility issue with non-abstract task classes
  43. - Events from clients now uses new node name format (``gen<pid>@<hostname>``).
  44. - Fixed rare bug with Callable not being defined at interpreter shutdown
  45. (Issue #1678).
  46. Fix contributed by Nick Johnson.
  47. - Fixed Python 2.6 compatibility (Issue #1679).
  48. .. _version-3.1.5:
  49. 3.1.5
  50. =====
  51. :release-date: 2013-11-21 6:20 P.M UTC
  52. :release-by: Ask Solem
  53. - Now depends on :ref:`Kombu 3.0.6 <kombu:version-3.0.6>`.
  54. - Now depends on :mod:`billiard` 3.3.0.8
  55. - App: ``config_from_object`` is now lazy (Issue #1665).
  56. - App: ``autodiscover_tasks`` is now lazy.
  57. Django users should now wrap access to the settings object
  58. in a lambda::
  59. app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
  60. this ensures that the settings object is not prepared
  61. prematurely.
  62. - Fixed regression for ``--app`` argument experienced by
  63. some users (Issue #1653).
  64. - Worker: Now respects the ``--uid`` and ``--gid`` arguments
  65. even if ``--detach`` is not enabled.
  66. - Beat: Now respects the ``--uid`` and ``--gid`` arguments
  67. even if ``--detach`` is not enabled.
  68. - Python 3: Fixed unorderable error occuring with the worker ``-B``
  69. argument enabled.
  70. - ``celery.VERSION`` is now a named tuple.
  71. - ``maybe_signature(list)`` is now applied recursively (Issue #1645).
  72. - ``celery shell`` command: Fixed ``IPython.frontend`` deprecation warning.
  73. - The default app no longer includes the builtin fixups.
  74. This fixes a bug where ``celery multi`` would attempt
  75. to load the Django settings module before entering
  76. the target working directory.
  77. - The Django daemonization tutorial was changed.
  78. Users no longer have to explicitly export ``DJANGO_SETTINGS_MODULE``
  79. in :file:`/etc/default/celeryd` when the new project layout is used.
  80. - Redis result backend: expiry value can now be 0 (Issue #1661).
  81. - Censoring settings now accounts for non-string keys (Issue #1663).
  82. - App: New ``autofinalize`` option.
  83. Apps are automatically finalized when the task registry is accessed.
  84. You can now disable this behavior so that an exception is raised
  85. instead.
  86. Example:
  87. .. code-block:: python
  88. app = Celery(autofinalize=False)
  89. # raises RuntimeError
  90. tasks = app.tasks
  91. @app.task
  92. def add(x, y):
  93. return x + y
  94. # raises RuntimeError
  95. add.delay(2, 2)
  96. app.finalize()
  97. # no longer raises:
  98. tasks = app.tasks
  99. add.delay(2, 2)
  100. - The worker did not send monitoring events during shutdown.
  101. - Worker: Mingle and gossip is now automatically disabled when
  102. used with an unsupported transport (Issue #1664).
  103. - ``celery`` command: Preload options now supports
  104. the rare ``--opt value`` format (Issue #1668).
  105. - ``celery`` command: Accidentally removed options
  106. appearing before the subcommand, these are now moved to the end
  107. instead.
  108. - Worker now properly responds to ``inspect stats`` commands
  109. even if received before startup is complete (Issue #1659).
  110. - :signal:`task_postrun` is now sent within a finally block, to make
  111. sure the signal is always sent.
  112. - Beat: Fixed syntax error in string formatting.
  113. Contributed by nadad.
  114. - Fixed typos in the documentation.
  115. Fixes contributed by Loic Bistuer, sunfinite.
  116. - Nested chains now works properly when constructed using the
  117. ``chain`` type instead of the ``|`` operator (Issue #1656).
  118. .. _version-3.1.4:
  119. 3.1.4
  120. =====
  121. :release-date: 2013-11-15 11:40 P.M UTC
  122. :release-by: Ask Solem
  123. - Now depends on :ref:`Kombu 3.0.5 <kombu:version-3.0.5>`.
  124. - Now depends on :mod:`billiard` 3.3.0.7
  125. - Worker accidentally set a default socket timeout of 5 seconds.
  126. - Django: Fixup now sets the default app so that threads will use
  127. the same app instance (e.g. for manage.py runserver).
  128. - Worker: Fixed Unicode error crash at startup experienced by some users.
  129. - Calling ``.apply_async`` on an empty chain now works again (Issue #1650).
  130. - The ``celery multi show`` command now generates the same arguments
  131. as the start command does.
  132. - The ``--app`` argument could end up using a module object instead
  133. of an app instance (with a resulting crash).
  134. - Fixed a syntax error problem in the celerybeat init script.
  135. Fix contributed by Vsevolod.
  136. - Tests now passing on PyPy 2.1 and 2.2.
  137. .. _version-3.1.3:
  138. 3.1.3
  139. =====
  140. :release-date: 2013-11-13 12:55 A.M UTC
  141. :release-by: Ask Solem
  142. - Fixed compatibility problem with Python 2.7.0 - 2.7.5 (Issue #1637)
  143. ``unpack_from`` started supporting ``memoryview`` arguments
  144. in Python 2.7.6.
  145. - Worker: :option:`-B` argument accidentally closed files used
  146. for logging.
  147. - Task decorated tasks now keep their docstring (Issue #1636)
  148. .. _version-3.1.2:
  149. 3.1.2
  150. =====
  151. :release-date: 2013-11-12 08:00 P.M UTC
  152. :release-by: Ask Solem
  153. - Now depends on :mod:`billiard` 3.3.0.6
  154. - No longer needs the billiard C extension to be installed.
  155. - The worker silently ignored task errors.
  156. - Django: Fixed ``ImproperlyConfigured`` error raised
  157. when no database backend specified.
  158. Fix contributed by j0hnsmith
  159. - Prefork pool: Now using ``_multiprocessing.read`` with ``memoryview``
  160. if available.
  161. - ``close_open_fds`` now uses ``os.closerange`` if available.
  162. - ``get_fdmax`` now takes value from ``sysconfig`` if possible.
  163. .. _version-3.1.1:
  164. 3.1.1
  165. =====
  166. :release-date: 2013-11-11 06:30 P.M UTC
  167. :release-by: Ask Solem
  168. - Now depends on :mod:`billiard` 3.3.0.4.
  169. - Python 3: Fixed compatibility issues.
  170. - Windows: Accidentally showed warning that the billiard C extension
  171. was not installed (Issue #1630).
  172. - Django: Tutorial updated with a solution that sets a default
  173. :envvar:`DJANGO_SETTINGS_MODULE` so that it doesn't have to be typed
  174. in with the :program:`celery` command.
  175. Also fixed typos in the tutorial, and added the settings
  176. required to use the Django database backend.
  177. Thanks to Chris Ward, orarbel.
  178. - Django: Fixed a problem when using the Django settings in Django 1.6.
  179. - Django: Fixup should not be applied if the django loader is active.
  180. - Worker: Fixed attribute error for ``human_write_stats`` when using the
  181. compatibility prefork pool implementation.
  182. - Worker: Fixed compatibility with billiard without C extension.
  183. - Inspect.conf: Now supports a ``with_defaults`` argument.
  184. - Group.restore: The backend argument was not respected.
  185. .. _version-3.1.0:
  186. 3.1.0
  187. =======
  188. :release-date: 2013-11-09 11:00 P.M UTC
  189. :release-by: Ask Solem
  190. See :ref:`whatsnew-3.1`.