Changelog 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. ==============
  2. Change history
  3. ==============
  4. 0.3.3 [2009-06-08 01:07 P.M CET]
  5. -----------------------------------------------
  6. * The ``PeriodicWorkController`` now sleeps for 1 second between checking
  7. for periodic tasks to execute.
  8. 0.3.2 [2009-06-08 01:07 P.M CET]
  9. -----------------------------------------------
  10. * celeryd: Added option ``--discard``: Discard (delete!) all waiting
  11. messages in the queue.
  12. * celeryd: The ``--wakeup-after`` option was not handled as a float.
  13. 0.3.1 [2009-06-08 01:07 P.M CET]
  14. -----------------------------------------------
  15. * The `PeriodicTask`` worker is now running in its own thread instead
  16. of blocking the ``TaskController`` loop.
  17. * Default ``QUEUE_WAKEUP_AFTER`` has been lowered to ``0.1`` (was ``0.3``)
  18. 0.3.0 [2009-06-08 12:41 P.M CET]
  19. -----------------------------------------------
  20. **NOTE** This is a development version, for the stable release, please
  21. see versions 0.2.x.
  22. **VERY IMPORTANT:** Pickle is now the encoder used for serializing task
  23. arguments, so be sure to flush your task queue before you upgrade.
  24. * **IMPORTANT** TaskSet.run() now returns a celery.result.TaskSetResult
  25. instance, which lets you inspect the status and return values of a
  26. taskset as it was a single entity.
  27. * **IMPORTANT** Celery now depends on carrot >= 0.4.1.
  28. * The celery daemon now sends task errors to the registered admin e-mails.
  29. To turn off this feature, set ``SEND_CELERY_TASK_ERROR_EMAILS`` to
  30. ``False`` in your ``settings.py``. Thanks to Grégoire Cachet.
  31. * You can now run the celery daemon by using ``manage.py``::
  32. $ python manage.py celeryd
  33. Thanks to Grégoire Cachet.
  34. * Added support for message priorities, topic exchanges, custom routing
  35. keys for tasks. This means we have introduced
  36. ``celery.task.apply_async``, a new way of executing tasks.
  37. You can use ``celery.task.delay`` and ``celery.Task.delay`` like usual, but
  38. if you want greater control over the message sent, you want
  39. ``celery.task.apply_async`` and ``celery.Task.apply_async``.
  40. This also means the AMQP configuration has changed. Some settings has
  41. been renamed, while others are new::
  42. CELERY_AMQP_EXCHANGE
  43. CELERY_AMQP_PUBLISHER_ROUTING_KEY
  44. CELERY_AMQP_CONSUMER_ROUTING_KEY
  45. CELERY_AMQP_CONSUMER_QUEUE
  46. CELERY_AMQP_EXCHANGE_TYPE
  47. See the entry `Can I send some tasks to only some servers?`_ in the
  48. `FAQ`_ for more information.
  49. .. _`Can I send some tasks to only some servers?`:
  50. http://bit.ly/celery_AMQP_routing
  51. .. _`FAQ`: http://ask.github.com/celery/faq.html
  52. * Task errors are now logged using loglevel ``ERROR`` instead of ``INFO``,
  53. and backtraces are dumped. Thanks to Grégoire Cachet.
  54. * Make every new worker process re-establish it's Django DB connection,
  55. this solving the "MySQL connection died?" exceptions.
  56. Thanks to Vitaly Babiy and Jirka Vejrazka.
  57. * **IMOPORTANT** Now using pickle to encode task arguments. This means you
  58. now can pass complex python objects to tasks as arguments.
  59. * Removed dependency on ``yadayada``.
  60. * Added a FAQ, see ``docs/faq.rst``.
  61. * Now converts any unicode keys in task ``kwargs`` to regular strings.
  62. Thanks Vitaly Babiy.
  63. * Renamed the ``TaskDaemon`` to ``WorkController``.
  64. * ``celery.datastructures.TaskProcessQueue`` is now renamed to
  65. ``celery.pool.TaskPool``.
  66. * The pool algorithm has been refactored for greater performance and
  67. stability.
  68. 0.2.0 [2009-05-20 05:14 P.M CET]
  69. ------------------------------------------------
  70. * Final release of 0.2.0
  71. * Compatible with carrot version 0.4.0.
  72. * Fixes some syntax errors related to fetching results
  73. from the database backend.
  74. 0.2.0-pre3 [2009-05-20 05:14 P.M CET]
  75. ----------------------------------------------------
  76. * *Internal release*. Improved handling of unpickled exceptions,
  77. get_result() now tries to recreate something looking like the
  78. original exception.
  79. 0.2.0-pre2 [2009-05-20 01:56 P.M CET]
  80. ----------------------------------------------------
  81. * Now handles unpickleable exceptions (like the dynimically generated
  82. subclasses of ``django.core.exception.MultipleObjectsReturned``).
  83. 0.2.0-pre1 [2009-05-20 12:33 P.M CET]
  84. ----------------------------------------------------
  85. * It's getting quite stable, with a lot of new features, so bump
  86. version to 0.2. This is a pre-release.
  87. * ``celery.task.mark_as_read()`` and ``celery.task.mark_as_failure()`` has
  88. been removed. Use ``celery.backends.default_backend.mark_as_read()``,
  89. and ``celery.backends.default_backend.mark_as_failure()`` instead.
  90. 0.1.15 [2009-05-19 04:13 P.M CET]
  91. ------------------------------------------------
  92. * The celery daemon was leaking AMQP connections, this should be fixed,
  93. if you have any problems with too many files open (like ``emfile``
  94. errors in ``rabbit.log``, please contact us!
  95. 0.1.14 [2009-05-19 01:08 P.M CET]
  96. ------------------------------------------------
  97. * Fixed a syntax error in the ``TaskSet`` class. (No such variable
  98. ``TimeOutError``).
  99. 0.1.13 [2009-05-19 12:36 P.M CET]
  100. ------------------------------------------------
  101. * Forgot to add ``yadayada`` to install requirements.
  102. * Now deletes all expired task results, not just those marked as done.
  103. * Able to load the Tokyo Tyrant backend class without django
  104. configuration, can specify tyrant settings directly in the class
  105. constructor.
  106. * Improved API documentation
  107. * Now using the Sphinx documentation system, you can build
  108. the html documentation by doing ::
  109. $ cd docs
  110. $ make html
  111. and the result will be in ``docs/.build/html``.
  112. 0.1.12 [2009-05-18 04:38 P.M CET]
  113. ------------------------------------------------
  114. * ``delay_task()`` etc. now returns ``celery.task.AsyncResult`` object,
  115. which lets you check the result and any failure that might have
  116. happened. It kind of works like the ``multiprocessing.AsyncResult``
  117. class returned by ``multiprocessing.Pool.map_async``.
  118. * Added dmap() and dmap_async(). This works like the
  119. ``multiprocessing.Pool`` versions except they are tasks
  120. distributed to the celery server. Example:
  121. >>> from celery.task import dmap
  122. >>> import operator
  123. >>> dmap(operator.add, [[2, 2], [4, 4], [8, 8]])
  124. >>> [4, 8, 16]
  125. >>> from celery.task import dmap_async
  126. >>> import operator
  127. >>> result = dmap_async(operator.add, [[2, 2], [4, 4], [8, 8]])
  128. >>> result.ready()
  129. False
  130. >>> time.sleep(1)
  131. >>> result.ready()
  132. True
  133. >>> result.result
  134. [4, 8, 16]
  135. * Refactored the task metadata cache and database backends, and added a new backend for Tokyo Tyrant. You can set the backend in your django settings file. e.g
  136. CELERY_BACKEND = "database"; # Uses the database
  137. CELERY_BACKEND = "cache"; # Uses the django cache framework
  138. CELERY_BACKEND = "tyrant"; # Uses Tokyo Tyrant
  139. TT_HOST = "localhost"; # Hostname for the Tokyo Tyrant server.
  140. TT_PORT = 6657; # Port of the Tokyo Tyrant server.
  141. 0.1.11 [2009-05-12 02:08 P.M CET]
  142. -------------------------------------------------
  143. * The logging system was leaking file descriptors, resulting in
  144. servers stopping with the EMFILES (too many open files) error. (fixed)
  145. 0.1.10 [2009-05-11 12:46 P.M CET]
  146. -------------------------------------------------
  147. * Tasks now supports both positional arguments and keyword arguments.
  148. * Requires carrot 0.3.8.
  149. * The daemon now tries to reconnect if the connection is lost.
  150. 0.1.8 [2009-05-07 12:27 P.M CET]
  151. ------------------------------------------------
  152. * Better test coverage
  153. * More documentation
  154. * celeryd doesn't emit ``Queue is empty`` message if
  155. ``settings.CELERYD_EMPTY_MSG_EMIT_EVERY`` is 0.
  156. 0.1.7 [2009-04-30 1:50 P.M CET]
  157. -----------------------------------------------
  158. * Added some unittests
  159. * Can now use the database for task metadata (like if the task has
  160. been executed or not). Set ``settings.CELERY_TASK_META``
  161. * Can now run ``python setup.py test`` to run the unittests from
  162. within the ``testproj`` project.
  163. * Can set the AMQP exchange/routing key/queue using
  164. ``settings.CELERY_AMQP_EXCHANGE``, ``settings.CELERY_AMQP_ROUTING_KEY``,
  165. and ``settings.CELERY_AMQP_CONSUMER_QUEUE``.
  166. 0.1.6 [2009-04-28 2:13 P.M CET]
  167. -----------------------------------------------
  168. * Introducing ``TaskSet``. A set of subtasks is executed and you can
  169. find out how many, or if all them, are done (excellent for progress bars and such)
  170. * Now catches all exceptions when running ``Task.__call__``, so the
  171. daemon doesn't die. This does't happen for pure functions yet, only
  172. ``Task`` classes.
  173. * ``autodiscover()`` now works with zipped eggs.
  174. * celeryd: Now adds curernt working directory to ``sys.path`` for
  175. convenience.
  176. * The ``run_every`` attribute of ``PeriodicTask`` classes can now be a
  177. ``datetime.timedelta()`` object.
  178. * celeryd: You can now set the ``DJANGO_PROJECT_DIR`` variable
  179. for ``celeryd`` and it will add that to ``sys.path`` for easy launching.
  180. * Can now check if a task has been executed or not via HTTP.
  181. You can do this by including the celery ``urls.py`` into your project,
  182. >>> url(r'^celery/$', include("celery.urls"))
  183. then visiting the following url,::
  184. http://mysite/celery/$task_id/done/
  185. this will return a JSON dictionary like e.g:
  186. >>> {"task": {"id": $task_id, "executed": true}}
  187. * ``delay_task`` now returns string id, not ``uuid.UUID`` instance.
  188. * Now has ``PeriodicTasks``, to have ``cron`` like functionality.
  189. * Project changed name from ``crunchy`` to ``celery``. The details of
  190. the name change request is in ``docs/name_change_request.txt``.
  191. 0.1.0 [2009-04-24 11:28 A.M CET]
  192. ------------------------------------------------
  193. * Initial release