Changelog 8.4 KB

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