Changelog 24 KB

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