Changelog 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840
  1. ==============
  2. Change history
  3. ==============
  4. 1.0.0 [xxxx-xx-xx xx:xx x.x xxx]
  5. ================================
  6. BACKWARD INCOMPATIBLE CHANGES
  7. -----------------------------
  8. * Default celeryd loglevel is now ``WARN``, to enable the previous log level
  9. start celeryd with ``--loglevel=INFO``.
  10. * Tasks are automatically registered.
  11. This means you no longer have to register your tasks manually.
  12. You don't have to change your old code right away, as it doesn't matter if
  13. a task is registered twice.
  14. If you don't want your task to be automatically registered you can set
  15. the ``abstract`` attribute
  16. .. code-block:: python
  17. class MyTask(Task):
  18. abstract = True
  19. By using ``abstract`` only tasks subclassing this task will be automatically
  20. registered (this works like the Django ORM).
  21. Incidentally, this change also fixes the problems with automatic name
  22. assignment and relative imports. So you also don't have to specify a task name
  23. anymore if you use relative imports.
  24. * You can no longer use regular functions as tasks. This change was added
  25. because it makes the internals a lot more clean and simple. However, you can
  26. now turn functions into tasks by using the ``@task`` decorator:
  27. .. code-block:: python
  28. from celery.decorators import task
  29. @task()
  30. def add(x, y):
  31. return x + y
  32. See the User Guide: :doc:`userguide/tasks` for more information.
  33. * The periodic task system has been rewritten to a centralized solution, this
  34. means ``celeryd`` no longer schedules periodic tasks by default, but a new
  35. daemon has been introduced: ``celerybeat``.
  36. To launch the periodic task scheduler you have to run celerybeat::
  37. $ celerybeat --detach
  38. Make sure this is running on one server only, if you run it twice, all
  39. periodic tasks will also be executed twice.
  40. If you only have one worker server you can embed it into celeryd like this::
  41. $ celeryd --detatch --beat # Embed celerybeat in celeryd.
  42. * The supervisor has been removed, please use something like
  43. http://supervisord.org instead. This means the ``-S`` and ``--supervised``
  44. options to ``celeryd`` is no longer supported.
  45. * ``TaskSet.join`` has been removed, use ``TaskSetResult.join`` instead.
  46. * The task status ``"DONE"`` has been renamed to `"SUCCESS"`.
  47. * ``AsyncResult.is_done`` has been removed, use ``AsyncResult.successful``
  48. instead.
  49. NEWS
  50. ----
  51. * Rate limiting support (per task type, or globally).
  52. * New periodic task system.
  53. * Automatic registration.
  54. * New cool task decorator syntax.
  55. CHANGES
  56. -------
  57. * New dependencies: billiard, python-dateutil, django-picklefield
  58. * ETA no longer sends datetime objects, but uses ISO 8601 date format in a
  59. string for better compatibility with other platforms.
  60. * Task can now override the backend used to store results.
  61. * Refactored the ExecuteWrapper, ``apply`` and ``CELERY_ALWAYS_EAGER`` now
  62. also executes the task callbacks and signals.
  63. * Now using a proper scheduler for the tasks with an ETA. This means waiting
  64. eta tasks are sorted by time, so we don't have to poll the whole list all the
  65. time.
  66. DOCUMENTATION
  67. -------------
  68. * Reference now split into two sections; API reference and internal module
  69. reference.
  70. 0.8.1 [2009-11-16 05:21 P.M CEST]
  71. =================================
  72. VERY IMPORTANT NOTE
  73. -------------------
  74. This release (with carrot 0.8.0) enables AMQP QoS (quality of service), which
  75. means the workers will only receive as many messages as it can handle at a
  76. time. As with any release, you should test this version upgrade on your
  77. development servers before rolling it out to production!
  78. IMPORTANT CHANGES
  79. -----------------
  80. * If you're using Python < 2.6 and you use the multiprocessing backport, then
  81. multiprocessing version 2.6.2.1 is required.
  82. * All AMQP_* settings has been renamed to BROKER_*, and in addition
  83. AMQP_SERVER has been renamed to BROKER_HOST, so before where you had::
  84. AMQP_SERVER = "localhost"
  85. AMQP_PORT = 5678
  86. AMQP_USER = "myuser"
  87. AMQP_PASSWORD = "mypassword"
  88. AMQP_VHOST = "celery"
  89. You need to change that to::
  90. BROKER_HOST = "localhost"
  91. BROKER_PORT = 5678
  92. BROKER_USER = "myuser"
  93. BROKER_PASSWORD = "mypassword"
  94. BROKER_VHOST = "celery"
  95. * Custom carrot backends now need to include the backend class name, so before
  96. where you had::
  97. CARROT_BACKEND = "mycustom.backend.module"
  98. you need to change it to::
  99. CARROT_BACKEND = "mycustom.backend.module.Backend"
  100. where ``Backend`` is the class name. This is probably ``"Backend"``, as
  101. that was the previously implied name.
  102. * New version requirement for carrot: 0.8.0
  103. CHANGES
  104. -------
  105. * Incorporated the multiprocessing backport patch that fixes the
  106. ``processName`` error.
  107. * Ignore the result of PeriodicTask's by default.
  108. * Added a Redis result store backend
  109. * Allow /etc/default/celeryd to define additional options for the celeryd init
  110. script.
  111. * MongoDB periodic tasks issue when using different time than UTC fixed.
  112. * Windows specific: Negate test for available os.fork (thanks miracle2k)
  113. * Now tried to handle broken PID files.
  114. * Added a Django test runner to contrib that sets CELERY_ALWAYS_EAGER = True for testing with the database backend
  115. * Added a CELERY_CACHE_BACKEND setting for using something other than the django-global cache backend.
  116. * Use custom implementation of functools.partial (curry) for Python 2.4 support
  117. (Probably still problems with running on 2.4, but it will eventually be
  118. supported)
  119. * Prepare exception to pickle when saving RETRY status for all backends.
  120. * SQLite no concurrency limit should only be effective if the db backend is used.
  121. 0.8.0 [2009-09-22 03:06 P.M CEST]
  122. =================================
  123. BACKWARD INCOMPATIBLE CHANGES
  124. -----------------------------
  125. * Add traceback to result value on failure.
  126. **NOTE** If you use the database backend you have to re-create the
  127. database table ``celery_taskmeta``.
  128. Contact the mailinglist or IRC channel listed in README for help
  129. doing this.
  130. * Database tables are now only created if the database backend is used,
  131. so if you change back to the database backend at some point,
  132. be sure to initialize tables (django: ``syncdb``, python: ``celeryinit``).
  133. (Note: This is only the case when using Django 1.1 or higher)
  134. * Now depends on ``carrot`` version 0.6.0.
  135. * Now depends on python-daemon 1.4.8
  136. IMPORTANT CHANGES
  137. -----------------
  138. * Celery can now be used in pure Python (outside of a Django project).
  139. This means celery is no longer Django specific.
  140. For more information see the FAQ entry
  141. `Can I use celery without Django?`_.
  142. .. _`Can I use celery without Django?`:
  143. http://ask.github.com/celery/faq.html#can-i-use-celery-without-django
  144. * Celery now supports task retries.
  145. See `Cookbook: Retrying Tasks`_ for more information.
  146. .. _`Cookbook: Retrying Tasks`:
  147. http://ask.github.com/celery/cookbook/task-retries.html
  148. * We now have an AMQP result store backend.
  149. It uses messages to publish task return value and status. And it's
  150. incredibly fast!
  151. See http://github.com/ask/celery/issues/closed#issue/6 for more info!
  152. * AMQP QoS (prefetch count) implemented:
  153. This to not receive more messages than we can handle.
  154. * Now redirects stdout/stderr to the celeryd logfile when detached
  155. * Now uses ``inspect.getargspec`` to only pass default arguments
  156. the task supports.
  157. * Add Task.on_success, .on_retry, .on_failure handlers
  158. See :meth:`celery.task.base.Task.on_success`,
  159. :meth:`celery.task.base.Task.on_retry`,
  160. :meth:`celery.task.base.Task.on_failure`,
  161. * ``celery.utils.gen_unique_id``: Workaround for
  162. http://bugs.python.org/issue4607
  163. * You can now customize what happens at worker start, at process init, etc
  164. by creating your own loaders. (see :mod:`celery.loaders.default`,
  165. :mod:`celery.loaders.djangoapp`, :mod:`celery.loaders`.)
  166. * Support for multiple AMQP exchanges and queues.
  167. This feature misses documentation and tests, so anyone interested
  168. is encouraged to improve this situation.
  169. * celeryd now survives a restart of the AMQP server!
  170. Automatically re-establish AMQP broker connection if it's lost.
  171. New settings:
  172. * AMQP_CONNECTION_RETRY
  173. Set to ``True`` to enable connection retries.
  174. * AMQP_CONNECTION_MAX_RETRIES.
  175. Maximum number of restarts before we give up. Default: ``100``.
  176. NEWS
  177. ----
  178. * Fix an incompatibility between python-daemon and multiprocessing,
  179. which resulted in the ``[Errno 10] No child processes`` problem when
  180. detaching.
  181. * Fixed a possible DjangoUnicodeDecodeError being raised when saving pickled
  182. data to Django's memcached cache backend.
  183. * Better Windows compatibility.
  184. * New version of the pickled field (taken from
  185. http://www.djangosnippets.org/snippets/513/)
  186. * New signals introduced: ``task_sent``, ``task_prerun`` and
  187. ``task_postrun``, see :mod:`celery.signals` for more information.
  188. * ``TaskSetResult.join`` caused ``TypeError`` when ``timeout=None``.
  189. Thanks Jerzy Kozera. Closes #31
  190. * ``views.apply`` should return ``HttpResponse`` instance.
  191. Thanks to Jerzy Kozera. Closes #32
  192. * ``PeriodicTask``: Save conversion of ``run_every`` from ``int``
  193. to ``timedelta`` to the class attribute instead of on the instance.
  194. * Exceptions has been moved to ``celery.exceptions``, but are still
  195. available in the previous module.
  196. * Try to rollback transaction and retry saving result if an error happens
  197. while setting task status with the database backend.
  198. * jail() refactored into :class:`celery.execute.ExecuteWrapper`.
  199. * ``views.apply`` now correctly sets mimetype to "application/json"
  200. * ``views.task_status`` now returns exception if status is RETRY
  201. * ``views.task_status`` now returns traceback if status is "FAILURE"
  202. or "RETRY"
  203. * Documented default task arguments.
  204. * Add a sensible __repr__ to ExceptionInfo for easier debugging
  205. * Fix documentation typo ``.. import map`` -> ``.. import dmap``.
  206. Thanks mikedizon
  207. 0.6.0 [2009-08-07 06:54 A.M CET]
  208. ================================
  209. IMPORTANT CHANGES
  210. -----------------
  211. * Fixed a bug where tasks raising unpickleable exceptions crashed pool
  212. workers. So if you've had pool workers mysteriously dissapearing, or
  213. problems with celeryd stopping working, this has been fixed in this
  214. version.
  215. * Fixed a race condition with periodic tasks.
  216. * The task pool is now supervised, so if a pool worker crashes,
  217. goes away or stops responding, it is automatically replaced with
  218. a new one.
  219. * Task.name is now automatically generated out of class module+name, e.g.
  220. ``"djangotwitter.tasks.UpdateStatusesTask"``. Very convenient. No idea why
  221. we didn't do this before. Some documentation is updated to not manually
  222. specify a task name.
  223. NEWS
  224. ----
  225. * Tested with Django 1.1
  226. * New Tutorial: Creating a click counter using carrot and celery
  227. * Database entries for periodic tasks are now created at ``celeryd``
  228. startup instead of for each check (which has been a forgotten TODO/XXX
  229. in the code for a long time)
  230. * New settings variable: ``CELERY_TASK_RESULT_EXPIRES``
  231. Time (in seconds, or a `datetime.timedelta` object) for when after
  232. stored task results are deleted. For the moment this only works for the
  233. database backend.
  234. * ``celeryd`` now emits a debug log message for which periodic tasks
  235. has been launched.
  236. * The periodic task table is now locked for reading while getting
  237. periodic task status. (MySQL only so far, seeking patches for other
  238. engines)
  239. * A lot more debugging information is now available by turning on the
  240. ``DEBUG`` loglevel (``--loglevel=DEBUG``).
  241. * Functions/methods with a timeout argument now works correctly.
  242. * New: ``celery.strategy.even_time_distribution``:
  243. With an iterator yielding task args, kwargs tuples, evenly distribute
  244. the processing of its tasks throughout the time window available.
  245. * Log message ``Unknown task ignored...`` now has loglevel ``ERROR``
  246. * Log message ``"Got task from broker"`` is now emitted for all tasks, even if
  247. the task has an ETA (estimated time of arrival). Also the message now
  248. includes the ETA for the task (if any).
  249. * Acknowledgement now happens in the pool callback. Can't do ack in the job
  250. target, as it's not pickleable (can't share AMQP connection, etc)).
  251. * Added note about .delay hanging in README
  252. * Tests now passing in Django 1.1
  253. * Fixed discovery to make sure app is in INSTALLED_APPS
  254. * Previously overrided pool behaviour (process reap, wait until pool worker
  255. available, etc.) is now handled by ``multiprocessing.Pool`` itself.
  256. * Convert statistics data to unicode for use as kwargs. Thanks Lucy!
  257. 0.4.1 [2009-07-02 01:42 P.M CET]
  258. ================================
  259. * Fixed a bug with parsing the message options (``mandatory``,
  260. ``routing_key``, ``priority``, ``immediate``)
  261. 0.4.0 [2009-07-01 07:29 P.M CET]
  262. ================================
  263. * Adds eager execution. ``celery.execute.apply``|``Task.apply`` executes the
  264. function blocking until the task is done, for API compatiblity it
  265. returns an ``celery.result.EagerResult`` instance. You can configure
  266. celery to always run tasks locally by setting the
  267. ``CELERY_ALWAYS_EAGER`` setting to ``True``.
  268. * Now depends on ``anyjson``.
  269. * 99% coverage using python ``coverage`` 3.0.
  270. 0.3.20 [2009-06-25 08:42 P.M CET]
  271. =================================
  272. * New arguments to ``apply_async`` (the advanced version of
  273. ``delay_task``), ``countdown`` and ``eta``;
  274. >>> # Run 10 seconds into the future.
  275. >>> res = apply_async(MyTask, countdown=10);
  276. >>> # Run 1 day from now
  277. >>> res = apply_async(MyTask, eta=datetime.now() +
  278. ... timedelta(days=1)
  279. * Now unlinks the pidfile if it's stale.
  280. * Lots of more tests.
  281. * Now compatible with carrot >= 0.5.0.
  282. * **IMPORTANT** The ``subtask_ids`` attribute on the ``TaskSetResult``
  283. instance has been removed. To get this information instead use:
  284. >>> subtask_ids = [subtask.task_id for subtask in ts_res.subtasks]
  285. * ``Taskset.run()`` now respects extra message options from the task class.
  286. * Task: Add attribute ``ignore_result``: Don't store the status and
  287. return value. This means you can't use the
  288. ``celery.result.AsyncResult`` to check if the task is
  289. done, or get its return value. Only use if you need the performance
  290. and is able live without these features. Any exceptions raised will
  291. store the return value/status as usual.
  292. * Task: Add attribute ``disable_error_emails`` to disable sending error
  293. emails for that task.
  294. * Should now work on Windows (although running in the background won't
  295. work, so using the ``--detach`` argument results in an exception
  296. being raised.)
  297. * Added support for statistics for profiling and monitoring.
  298. To start sending statistics start ``celeryd`` with the
  299. ``--statistics`` option. Then after a while you can dump the results
  300. by running ``python manage.py celerystats``. See
  301. ``celery.monitoring`` for more information.
  302. * The celery daemon can now be supervised (i.e it is automatically
  303. restarted if it crashes). To use this start celeryd with the
  304. ``--supervised`` option (or alternatively ``-S``).
  305. * views.apply: View applying a task. Example::
  306. http://e.com/celery/apply/task_name/arg1/arg2//?kwarg1=a&kwarg2=b
  307. **NOTE** Use with caution, preferably not make this publicly
  308. accessible without ensuring your code is safe!
  309. * Refactored ``celery.task``. It's now split into three modules:
  310. * celery.task
  311. Contains ``apply_async``, ``delay_task``, ``discard_all``, and task
  312. shortcuts, plus imports objects from ``celery.task.base`` and
  313. ``celery.task.builtins``
  314. * celery.task.base
  315. Contains task base classes: ``Task``, ``PeriodicTask``,
  316. ``TaskSet``, ``AsynchronousMapTask``, ``ExecuteRemoteTask``.
  317. * celery.task.builtins
  318. Built-in tasks: ``PingTask``, ``DeleteExpiredTaskMetaTask``.
  319. 0.3.7 [2008-06-16 11:41 P.M CET]
  320. --------------------------------
  321. * **IMPORTANT** Now uses AMQP's ``basic.consume`` instead of
  322. ``basic.get``. This means we're no longer polling the broker for
  323. new messages.
  324. * **IMPORTANT** Default concurrency limit is now set to the number of CPUs
  325. available on the system.
  326. * **IMPORTANT** ``tasks.register``: Renamed ``task_name`` argument to
  327. ``name``, so
  328. >>> tasks.register(func, task_name="mytask")
  329. has to be replaced with:
  330. >>> tasks.register(func, name="mytask")
  331. * The daemon now correctly runs if the pidlock is stale.
  332. * Now compatible with carrot 0.4.5
  333. * Default AMQP connnection timeout is now 4 seconds.
  334. * ``AsyncResult.read()`` was always returning ``True``.
  335. * Only use README as long_description if the file exists so easy_install
  336. doesn't break.
  337. * ``celery.view``: JSON responses now properly set its mime-type.
  338. * ``apply_async`` now has a ``connection`` keyword argument so you
  339. can re-use the same AMQP connection if you want to execute
  340. more than one task.
  341. * Handle failures in task_status view such that it won't throw 500s.
  342. * Fixed typo ``AMQP_SERVER`` in documentation to ``AMQP_HOST``.
  343. * Worker exception e-mails sent to admins now works properly.
  344. * No longer depends on ``django``, so installing ``celery`` won't affect
  345. the preferred Django version installed.
  346. * Now works with PostgreSQL (psycopg2) again by registering the
  347. ``PickledObject`` field.
  348. * ``celeryd``: Added ``--detach`` option as an alias to ``--daemon``, and
  349. it's the term used in the documentation from now on.
  350. * Make sure the pool and periodic task worker thread is terminated
  351. properly at exit. (So ``Ctrl-C`` works again).
  352. * Now depends on ``python-daemon``.
  353. * Removed dependency to ``simplejson``
  354. * Cache Backend: Re-establishes connection for every task process
  355. if the Django cache backend is memcached/libmemcached.
  356. * Tyrant Backend: Now re-establishes the connection for every task
  357. executed.
  358. 0.3.3 [2009-06-08 01:07 P.M CET]
  359. ================================
  360. * The ``PeriodicWorkController`` now sleeps for 1 second between checking
  361. for periodic tasks to execute.
  362. 0.3.2 [2009-06-08 01:07 P.M CET]
  363. ================================
  364. * celeryd: Added option ``--discard``: Discard (delete!) all waiting
  365. messages in the queue.
  366. * celeryd: The ``--wakeup-after`` option was not handled as a float.
  367. 0.3.1 [2009-06-08 01:07 P.M CET]
  368. ================================
  369. * The `PeriodicTask`` worker is now running in its own thread instead
  370. of blocking the ``TaskController`` loop.
  371. * Default ``QUEUE_WAKEUP_AFTER`` has been lowered to ``0.1`` (was ``0.3``)
  372. 0.3.0 [2009-06-08 12:41 P.M CET]
  373. ================================
  374. **NOTE** This is a development version, for the stable release, please
  375. see versions 0.2.x.
  376. **VERY IMPORTANT:** Pickle is now the encoder used for serializing task
  377. arguments, so be sure to flush your task queue before you upgrade.
  378. * **IMPORTANT** TaskSet.run() now returns a celery.result.TaskSetResult
  379. instance, which lets you inspect the status and return values of a
  380. taskset as it was a single entity.
  381. * **IMPORTANT** Celery now depends on carrot >= 0.4.1.
  382. * The celery daemon now sends task errors to the registered admin e-mails.
  383. To turn off this feature, set ``SEND_CELERY_TASK_ERROR_EMAILS`` to
  384. ``False`` in your ``settings.py``. Thanks to Grégoire Cachet.
  385. * You can now run the celery daemon by using ``manage.py``::
  386. $ python manage.py celeryd
  387. Thanks to Grégoire Cachet.
  388. * Added support for message priorities, topic exchanges, custom routing
  389. keys for tasks. This means we have introduced
  390. ``celery.task.apply_async``, a new way of executing tasks.
  391. You can use ``celery.task.delay`` and ``celery.Task.delay`` like usual, but
  392. if you want greater control over the message sent, you want
  393. ``celery.task.apply_async`` and ``celery.Task.apply_async``.
  394. This also means the AMQP configuration has changed. Some settings has
  395. been renamed, while others are new::
  396. CELERY_AMQP_EXCHANGE
  397. CELERY_AMQP_PUBLISHER_ROUTING_KEY
  398. CELERY_AMQP_CONSUMER_ROUTING_KEY
  399. CELERY_AMQP_CONSUMER_QUEUE
  400. CELERY_AMQP_EXCHANGE_TYPE
  401. See the entry `Can I send some tasks to only some servers?`_ in the
  402. `FAQ`_ for more information.
  403. .. _`Can I send some tasks to only some servers?`:
  404. http://bit.ly/celery_AMQP_routing
  405. .. _`FAQ`: http://ask.github.com/celery/faq.html
  406. * Task errors are now logged using loglevel ``ERROR`` instead of ``INFO``,
  407. and backtraces are dumped. Thanks to Grégoire Cachet.
  408. * Make every new worker process re-establish it's Django DB connection,
  409. this solving the "MySQL connection died?" exceptions.
  410. Thanks to Vitaly Babiy and Jirka Vejrazka.
  411. * **IMOPORTANT** Now using pickle to encode task arguments. This means you
  412. now can pass complex python objects to tasks as arguments.
  413. * Removed dependency to ``yadayada``.
  414. * Added a FAQ, see ``docs/faq.rst``.
  415. * Now converts any unicode keys in task ``kwargs`` to regular strings.
  416. Thanks Vitaly Babiy.
  417. * Renamed the ``TaskDaemon`` to ``WorkController``.
  418. * ``celery.datastructures.TaskProcessQueue`` is now renamed to
  419. ``celery.pool.TaskPool``.
  420. * The pool algorithm has been refactored for greater performance and
  421. stability.
  422. 0.2.0 [2009-05-20 05:14 P.M CET]
  423. ================================
  424. * Final release of 0.2.0
  425. * Compatible with carrot version 0.4.0.
  426. * Fixes some syntax errors related to fetching results
  427. from the database backend.
  428. 0.2.0-pre3 [2009-05-20 05:14 P.M CET]
  429. =====================================
  430. * *Internal release*. Improved handling of unpickled exceptions,
  431. ``get_result`` now tries to recreate something looking like the
  432. original exception.
  433. 0.2.0-pre2 [2009-05-20 01:56 P.M CET]
  434. =====================================
  435. * Now handles unpickleable exceptions (like the dynimically generated
  436. subclasses of ``django.core.exception.MultipleObjectsReturned``).
  437. 0.2.0-pre1 [2009-05-20 12:33 P.M CET]
  438. =====================================
  439. * It's getting quite stable, with a lot of new features, so bump
  440. version to 0.2. This is a pre-release.
  441. * ``celery.task.mark_as_read()`` and ``celery.task.mark_as_failure()`` has
  442. been removed. Use ``celery.backends.default_backend.mark_as_read()``,
  443. and ``celery.backends.default_backend.mark_as_failure()`` instead.
  444. 0.1.15 [2009-05-19 04:13 P.M CET]
  445. =================================
  446. * The celery daemon was leaking AMQP connections, this should be fixed,
  447. if you have any problems with too many files open (like ``emfile``
  448. errors in ``rabbit.log``, please contact us!
  449. 0.1.14 [2009-05-19 01:08 P.M CET]
  450. =================================
  451. * Fixed a syntax error in the ``TaskSet`` class. (No such variable
  452. ``TimeOutError``).
  453. 0.1.13 [2009-05-19 12:36 P.M CET]
  454. =================================
  455. * Forgot to add ``yadayada`` to install requirements.
  456. * Now deletes all expired task results, not just those marked as done.
  457. * Able to load the Tokyo Tyrant backend class without django
  458. configuration, can specify tyrant settings directly in the class
  459. constructor.
  460. * Improved API documentation
  461. * Now using the Sphinx documentation system, you can build
  462. the html documentation by doing ::
  463. $ cd docs
  464. $ make html
  465. and the result will be in ``docs/.build/html``.
  466. 0.1.12 [2009-05-18 04:38 P.M CET]
  467. =================================
  468. * ``delay_task()`` etc. now returns ``celery.task.AsyncResult`` object,
  469. which lets you check the result and any failure that might have
  470. happened. It kind of works like the ``multiprocessing.AsyncResult``
  471. class returned by ``multiprocessing.Pool.map_async``.
  472. * Added dmap() and dmap_async(). This works like the
  473. ``multiprocessing.Pool`` versions except they are tasks
  474. distributed to the celery server. Example:
  475. >>> from celery.task import dmap
  476. >>> import operator
  477. >>> dmap(operator.add, [[2, 2], [4, 4], [8, 8]])
  478. >>> [4, 8, 16]
  479. >>> from celery.task import dmap_async
  480. >>> import operator
  481. >>> result = dmap_async(operator.add, [[2, 2], [4, 4], [8, 8]])
  482. >>> result.ready()
  483. False
  484. >>> time.sleep(1)
  485. >>> result.ready()
  486. True
  487. >>> result.result
  488. [4, 8, 16]
  489. * Refactored the task metadata cache and database backends, and added
  490. a new backend for Tokyo Tyrant. You can set the backend in your django
  491. settings file. e.g::
  492. CELERY_BACKEND = "database"; # Uses the database
  493. CELERY_BACKEND = "cache"; # Uses the django cache framework
  494. CELERY_BACKEND = "tyrant"; # Uses Tokyo Tyrant
  495. TT_HOST = "localhost"; # Hostname for the Tokyo Tyrant server.
  496. TT_PORT = 6657; # Port of the Tokyo Tyrant server.
  497. 0.1.11 [2009-05-12 02:08 P.M CET]
  498. =================================
  499. * The logging system was leaking file descriptors, resulting in
  500. servers stopping with the EMFILES (too many open files) error. (fixed)
  501. 0.1.10 [2009-05-11 12:46 P.M CET]
  502. =================================
  503. * Tasks now supports both positional arguments and keyword arguments.
  504. * Requires carrot 0.3.8.
  505. * The daemon now tries to reconnect if the connection is lost.
  506. 0.1.8 [2009-05-07 12:27 P.M CET]
  507. ================================
  508. * Better test coverage
  509. * More documentation
  510. * celeryd doesn't emit ``Queue is empty`` message if
  511. ``settings.CELERYD_EMPTY_MSG_EMIT_EVERY`` is 0.
  512. 0.1.7 [2009-04-30 1:50 P.M CET]
  513. ===============================
  514. * Added some unittests
  515. * Can now use the database for task metadata (like if the task has
  516. been executed or not). Set ``settings.CELERY_TASK_META``
  517. * Can now run ``python setup.py test`` to run the unittests from
  518. within the ``testproj`` project.
  519. * Can set the AMQP exchange/routing key/queue using
  520. ``settings.CELERY_AMQP_EXCHANGE``, ``settings.CELERY_AMQP_ROUTING_KEY``,
  521. and ``settings.CELERY_AMQP_CONSUMER_QUEUE``.
  522. 0.1.6 [2009-04-28 2:13 P.M CET]
  523. ===============================
  524. * Introducing ``TaskSet``. A set of subtasks is executed and you can
  525. find out how many, or if all them, are done (excellent for progress
  526. bars and such)
  527. * Now catches all exceptions when running ``Task.__call__``, so the
  528. daemon doesn't die. This does't happen for pure functions yet, only
  529. ``Task`` classes.
  530. * ``autodiscover()`` now works with zipped eggs.
  531. * celeryd: Now adds curernt working directory to ``sys.path`` for
  532. convenience.
  533. * The ``run_every`` attribute of ``PeriodicTask`` classes can now be a
  534. ``datetime.timedelta()`` object.
  535. * celeryd: You can now set the ``DJANGO_PROJECT_DIR`` variable
  536. for ``celeryd`` and it will add that to ``sys.path`` for easy launching.
  537. * Can now check if a task has been executed or not via HTTP.
  538. * You can do this by including the celery ``urls.py`` into your project,
  539. >>> url(r'^celery/$', include("celery.urls"))
  540. then visiting the following url,::
  541. http://mysite/celery/$task_id/done/
  542. this will return a JSON dictionary like e.g:
  543. >>> {"task": {"id": $task_id, "executed": true}}
  544. * ``delay_task`` now returns string id, not ``uuid.UUID`` instance.
  545. * Now has ``PeriodicTasks``, to have ``cron`` like functionality.
  546. * Project changed name from ``crunchy`` to ``celery``. The details of
  547. the name change request is in ``docs/name_change_request.txt``.
  548. 0.1.0 [2009-04-24 11:28 A.M CET]
  549. ================================
  550. * Initial release