Changelog 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. .. _changelog:
  2. ================
  3. Change history
  4. ================
  5. This document contains change notes for bugfix releases in
  6. the 4.0.x series (latentcall), please see :ref:`whatsnew-4.0` for
  7. an overview of what's new in Celery 4.0.
  8. .. _version-4.0.2:
  9. 4.0.2
  10. =====
  11. :release-date: 2016-12-15 03:40 PM PST
  12. :release-by: Ask Solem
  13. - **Requirements**
  14. - Now depends on :ref:`Kombu 4.0.2 <kombu:version-4.0.2>`.
  15. - **Tasks**: Fixed problem with JSON serialization of `group`
  16. (``keys must be string`` error, Issue #3688).
  17. - **Worker**: Fixed JSON serialization issue when using ``inspect active``
  18. and friends (Issue #3667).
  19. - **App**: Fixed saferef errors when using signals (Issue #3670).
  20. - **Prefork**: Fixed bug with pack requiring bytes argument
  21. on Python 2.7.5 and earlier (Issue #3674).
  22. - **Tasks**: Saferepr did not handle unicode in bytestrings on Python 2
  23. (Issue #3676).
  24. - **Testing**: Added new ``celery_worker_paremeters`` fixture.
  25. Contributed by **Michael Howitz**.
  26. - **Tasks**: Added new ``app`` argument to ``GroupResult.restore``
  27. (Issue #3669).
  28. This makes the restore method behave the same way as the ``GroupResult``
  29. constructor.
  30. Contributed by **Andreas Pelme**.
  31. - **Tasks**: Fixed type checking crash when task takes ``*args`` on Python 3
  32. (Issue #3678).
  33. - Documentation and examples improvements by:
  34. - **BLAGA Razvan-Paul**
  35. - **Michael Howitz**
  36. - :github_user:`paradox41`
  37. .. _version-4.0.1:
  38. 4.0.1
  39. =====
  40. :release-date: 2016-12-08 05:22 PM PST
  41. :release-by: Ask Solem
  42. * [Security: `CELERYSA-0003`_] Insecure default configuration
  43. The default :setting:`accept_content` setting was set to allow
  44. deserialization of pickled messages in Celery 4.0.0.
  45. The insecure default has been fixed in 4.0.1, and you can also
  46. configure the 4.0.0 version to explicitly only allow json serialized
  47. messages:
  48. .. code-block:: python
  49. app.conf.accept_content = ['json']
  50. .. _`CELERYSA-0003`:
  51. https://github.com/celery/celery/tree/master/docs/sec/CELERYSA-0003.txt
  52. - **Tasks**: Added new method to register class-based tasks (Issue #3615).
  53. To register a class based task you should now call ``app.register_task``:
  54. .. code-block:: python
  55. from celery import Celery, Task
  56. app = Celery()
  57. class CustomTask(Task):
  58. def run(self):
  59. return 'hello'
  60. app.register_task(CustomTask())
  61. - **Tasks**: Argument checking now supports keyword-only arguments on Python3
  62. (Issue #3658).
  63. Contributed by :github_user:`sww`.
  64. - **Tasks**: The ``task-sent`` event was not being sent even if
  65. configured to do so (Issue #3646).
  66. - **Worker**: Fixed AMQP heartbeat support for eventlet/gevent pools
  67. (Issue #3649).
  68. - **App**: ``app.conf.humanize()`` would not work if configuration
  69. not finalized (Issue #3652).
  70. - **Utils**: ``saferepr`` attempted to show iterables as lists
  71. and mappings as dicts.
  72. - **Utils**: ``saferepr`` did not handle unicode-errors
  73. when attempting to format ``bytes`` on Python 3 (Issue #3610).
  74. - **Utils**: ``saferepr`` should now properly represent byte strings
  75. with non-ascii characters (Issue #3600).
  76. - **Results**: Fixed bug in elasticsearch where _index method missed
  77. the body argument (Issue #3606).
  78. Fix contributed by **何翔宇** (Sean Ho).
  79. - **Canvas**: Fixed :exc:`ValueError` in chord with single task header
  80. (Issue #3608).
  81. Fix contributed by **Viktor Holmqvist**.
  82. - **Task**: Ensure class-based task has name prior to registration
  83. (Issue #3616).
  84. Fix contributed by **Rick Wargo**.
  85. - **Beat**: Fixed problem with strings in shelve (Issue #3644).
  86. Fix contributed by **Alli**.
  87. - **Worker**: Fixed :exc:`KeyError` in ``inspect stats`` when ``-O`` argument
  88. set to something other than ``fast`` or ``fair`` (Issue #3621).
  89. - **Task**: Retried tasks were no longer sent to the original queue
  90. (Issue #3622).
  91. - **Worker**: Python 3: Fixed None/int type comparison in
  92. :file:`apps/worker.py` (Issue #3631).
  93. - **Results**: Redis has a new :setting:`redis_socket_connect_timeout`
  94. setting.
  95. - **Results**: Redis result backend passed the ``socket_connect_timeout``
  96. argument to UNIX socket based connections by mistake, causing a crash.
  97. - **Worker**: Fixed missing logo in worker splash screen when running on
  98. Python 3.x (Issue #3627).
  99. Fix contributed by **Brian Luan**.
  100. - **Deps**: Fixed ``celery[redis]`` bundle installation (Issue #3643).
  101. Fix contributed by **Rémi Marenco**.
  102. - **Deps**: Bundle ``celery[sqs]`` now also requires :pypi:`pycurl`
  103. (Issue #3619).
  104. - **Worker**: Hard time limits were no longer being respected (Issue #3618).
  105. - **Worker**: Soft time limit log showed ``Trues`` instead of the number
  106. of seconds.
  107. - **App**: ``registry_cls`` argument no longer had any effect (Issue #3613).
  108. - **Worker**: Event producer now uses ``connection_for_Write`` (Issue #3525).
  109. - **Results**: Redis/memcache backends now uses :setting:`result_expires`
  110. to expire chord counter (Issue #3573).
  111. Contributed by **Tayfun Sen**.
  112. - **Django**: Fixed command for upgrading settings with Django (Issue #3563).
  113. Fix contributed by **François Voron**.
  114. - **Testing**: Added a ``celery_parameters`` test fixture to be able to use
  115. customized ``Celery`` init parameters. (#3626)
  116. Contributed by **Steffen Allner**.
  117. - Documentation improvements contributed by
  118. - :github_user:`csfeathers`
  119. - **Moussa Taifi**
  120. - **Yuhannaa**
  121. - **Laurent Peuch**
  122. - **Christian**
  123. - **Bruno Alla**
  124. - **Steven Johns**
  125. - :github_user:`tnir`
  126. - **GDR!**
  127. .. _version-4.0.0:
  128. 4.0.0
  129. =====
  130. :release-date: 2016-11-04 02:00 P.M PDT
  131. :release-by: Ask Solem
  132. See :ref:`whatsnew-4.0` (in :file:`docs/whatsnew-4.0.rst`).
  133. .. _version-4.0.0rc7:
  134. 4.0.0rc7
  135. ========
  136. :release-date: 2016-11-02 01:30 P.M PDT
  137. Important notes
  138. ---------------
  139. - Database result backend related setting names changed from
  140. ``sqlalchemy_*`` -> ``database_*``.
  141. The ``sqlalchemy_`` named settings won't work at all in this
  142. version so you need to rename them. This is a last minute change,
  143. and as they were not supported in 3.1 we will not be providing
  144. aliases.
  145. - ``chain(A, B, C)`` now works the same way as ``A | B | C``.
  146. This means calling ``chain()`` might not actually return a chain,
  147. it can return a group or any other type depending on how the
  148. workflow can be optimized.