Changelog 9.1 KB

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