github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

ask / celery

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 197
    • 28
  • Source
  • Commits
  • Network (28)
  • Issues (10)
  • Downloads (48)
  • Wiki (9)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (16)
    • amqp-but-cached
    • batches
    • bucketqueue
    • celery08-maint
    • componentized
    • events
    • flowerize
    • gh-pages
    • httprefactor
    • loaders
    • master ✓
    • next
    • realping
    • runeh/master
    • stable
    • v0.7.1
  • Tags (38)
    • v1.0.0-pre4
    • v1.0.0-pre3
    • v1.0.0-pre2
    • v0.9.7
    • v0.9.6
    • v0.9.5
    • v0.9.4
    • v0.9.3
    • v0.9.2
    • v0.8.4
    • v0.8.3
    • v0.8.2
    • v0.8.0-pre1
    • v0.8.0
    • v0.7.2
    • v0.7.1
    • v0.6.0
    • v0.4.12
    • v0.4.3
    • v0.4.2
    • v0.4.0
    • v0.3.20
    • v0.3.7
    • v0.3.2
    • v0.3.1
    • v0.3.0
    • v0.2.3
    • v0.2.0-pre3
    • v0.2.0-pre2
    • v0.2.0-pre1
    • v0.2.0
    • v0.1.15
    • v0.1.13
    • v0.1.12
    • v0.1.11
    • v0.1.10
    • v0.1.8
    • v0.1.7
Sending Request…
Click here to lend your support to: celery and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Distributed Task Queue — Read more

  cancel

http://celeryproject.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added example project using database/redis as the message queue. 
ask (author)
Tue Feb 09 07:58:08 -0800 2010
commit  b117046ad6b4978bb5bea620d08c859f60575a8a
tree    96993b6bccc2891a3a04f2f3d3a539009cbeb63d
parent  e6e8766ea62d0232010227a0ee6bf2c5e502ad31
celery /
name age
history
message
file .gitignore Fri Jan 29 04:27:00 -0800 2010 Added *.db to .gitignore [ask]
file AUTHORS Sat Jan 30 12:38:58 -0800 2010 Added Rune Halvorsen to AUTHORS [ask]
file Changelog Mon Feb 08 01:35:07 -0800 2010 Improved daemonization cookbook [ask]
file FAQ Fri Jan 29 06:19:21 -0800 2010 Added FAQ: How do I shut down ``celeryd`` safely? [ask]
file INSTALL Mon Jun 08 06:25:36 -0700 2009 Apparently INSTALL is a required file at pypant... [ask]
file LICENSE Tue Jun 09 02:10:31 -0700 2009 Renamed LICENCE -> LICENSE. Apparently LICENCE ... [ask]
file MANIFEST.in Tue Jul 28 08:31:58 -0700 2009 Added contrib to MANIFEST.in [ask]
file README Tue Sep 22 05:05:27 -0700 2009 Bump version to 0.8.0 [ask]
file README.rst Mon Feb 08 02:06:14 -0800 2010 Bumped version to 0.9.8 / 1.0.0-pre4 [ask]
file THANKS Fri Jun 19 07:49:40 -0700 2009 THANKS: Thanks to Martin Mahner for the Sphinx ... [ask]
file TODO Mon Jun 08 07:44:13 -0700 2009 PyPANTS PYPANTS!! [ask]
directory bin/ Mon Dec 07 05:54:32 -0800 2009 Moved celerymon stuff to celerymon, so we can m... [ask]
directory celery/ Tue Feb 09 02:52:48 -0800 2010 Emit DeprecationWarning instead of PendingDepre... [ask]
directory contrib/ Wed Feb 03 06:46:08 -0800 2010 Fixed Sphinx build errors/warnings [ask]
directory docs/ Tue Feb 09 07:01:37 -0800 2010 More work on the announcement [ask]
directory examples/ Tue Feb 09 07:58:08 -0800 2010 Added example project using database/redis as t... [ask]
file pavement.py Wed Feb 03 06:56:59 -0800 2010 Consistent naming for save_taskset/restore_taskset [ask]
file setup.cfg Fri Jan 15 08:49:43 -0800 2010 Added setup.cfg with options for build_sphinx +... [ask]
file setup.py Wed Jan 13 05:07:00 -0800 2010 Celery no longer does detaching, you need to us... [ask]
directory testproj/ Fri Jan 29 05:50:09 -0800 2010 Tests passing again. [ask]
README.rst

celery - Distributed Task Queue

http://cloud.github.com/downloads/ask/celery/celery_favicon_128.png
Version:1.0.0-pre4
Keywords:task queue, job queue, asynchronous, rabbitmq, amqp, redis, django, python, webhooks, queue, distributed

--

Celery is a task queue/job queue based on distributed message passing. It is focused on real-time operation, but has support for scheduling as well.

The execution units, called tasks, are executed concurrently on one or more worker servers, asynchronously (in the background) or synchronously (wait until ready).

Celery is already used in production to process millions of tasks a day.

It was first created for Django, but is now usable from Python as well. It can also operate with other languages via HTTP+JSON.

Overview

This is a high level overview of the architecture.

http://cloud.github.com/downloads/ask/celery/Celery-Overview-v4.jpg

The broker pushes tasks to the worker servers. A worker server is a networked machine running celeryd. This can be one or more machines, depending on the workload.

The result of the task can be stored for later retrieval (called its "tombstone").

Example

You probably want to see some code by now, so I'll give you an example task adding two numbers:

from celery.decorators import task

@task
def add(x, y):
    return x + y

You can execute the task in the background, or wait for it to finish:

>>> result = add.delay(4, 4)
>>> result.wait() # wait for and return the result
8

Simple!

Features

Messaging Supported brokers include RabbitMQ, Stomp, Redis, and the most common SQL databases.
Robust Using RabbitMQ, celery survives most error scenarios, and your tasks will never be lost.
Distributed Runs on one or more machines. Supports clustering when used in combination with RabbitMQ. You can set up new workers without central configuration (e.g. use your dads laptop while the queue is temporarily overloaded).
Concurrency Tasks are executed in parallel using the multiprocessing module.
Scheduling Supports recurring tasks like cron, or specifying an exact date or countdown for when after the task should be executed.
Performance Able to execute tasks while the user waits.
Return Values Task return values can be saved to the selected result store backend. You can wait for the result, retrieve it later, or ignore it.
Result Stores Database, MongoDB, Redis, Tokyo Tyrant, AMQP (high performance).
Webhooks Your tasks can also be HTTP callbacks, enabling cross-language communication.
Rate limiting Supports rate limiting by using the token bucket algorithm, which accounts for bursts of traffic. Rate limits can be set for each task type, or globally for all.
Routing Using AMQP you can route tasks arbitrarily to different workers.
Remote-control You can rate limit and delete (revoke) tasks remotely.
Monitoring You can capture everything happening with the workers in real-time by subscribing to events. A real-time web monitor is in development.
Serialization Supports Pickle, JSON, YAML, or easily defined custom schemes. One task invocation can have a different scheme than another.
Tracebacks Errors and tracebacks are stored and can be investigated after the fact.
UUID Every task has an UUID (Universally Unique Identifier), which is the task id used to query task status and return value.
Retries Tasks can be retried if they fail, with configurable maximum number of retries, and delays between each retry.
Task Sets A Task set is a task consisting of several sub-tasks. You can find out how many, or if all of the sub-tasks has been executed, and even retrieve the results in order. Progress bars, anyone?
Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax.
Error e-mails Can be configured to send e-mails to the administrators when tasks fails.
Supervised Pool workers are supervised and automatically replaced if they crash.

Documentation

The latest documentation with user guides, tutorials and API reference is hosted at Github.

Installation

You can install celery either via the Python Package Index (PyPI) or from source.

To install using pip,:

$ pip install celery

To install using easy_install,:

$ easy_install celery

Downloading and installing from source

Download the latest version of celery from http://pypi.python.org/pypi/celery/

You can install it by doing the following,:

$ tar xvfz celery-0.0.0.tar.gz
$ cd celery-0.0.0
$ python setup.py build
# python setup.py install # as root

Using the development version

You can clone the repository by doing the following:

$ git clone git://github.com/ask/celery.git

Getting Help

Mailing list

For discussions about the usage, development, and future of celery, please join the celery-users mailing list.

IRC

Come chat with us on IRC. The #celery channel is located at the Freenode network.

Bug tracker

If you have any suggestions, bug reports or annoyances please report them to our issue tracker at http://github.com/ask/celery/issues/

Contributing

Development of celery happens at Github: http://github.com/ask/celery

You are highly encouraged to participate in the development of celery. If you don't like Github (for some reason) you're welcome to send regular patches.

License

This software is licensed under the New BSD License. See the LICENSE file in the top distribution directory for the full license text.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server