Celery 2.0 Documentation
(SQLAlchemy) is also available. You may also be pleased to know that full Django integration exists, delivered by the django-celery package. • Overview • Example • Features • Documentation • Installation turns any function into a task, celery.decorators.task(): from celery.decorators import task from django.contrib.auth import User @task def create_user(username, password): User.objects.create(username=username have a Django blog application allowing comments on blog posts. We’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db0 码力 | 165 页 | 492.43 KB | 1 年前3Celery 2.1 Documentation
and databases (SQLAlchemy) is also available. Celery is easy to integrate with Django, Pylons and Flask, using the django-celery, celery-pylons and Flask-Celery add-on packages. • Overview • Example • arguments: username and password, you can create a task like this: from celery.task import Task from django.contrib.auth import User class CreateUserTask(Task): def run(self, username, password): User.objects shortcut decorator that turns any function into a task: from celery.decorators import task from django.contrib.auth import User @task def create_user(username, password): User.objects.create(username=username0 码力 | 285 页 | 1.19 MB | 1 年前3Celery 2.2 Documentation
CouchDB and databases (using SQLAlchemy or the Django ORM) is also available. Celery is easy to integrate with Django, Pylons and Flask, using the django-celery, celery-pylons and Flask-Celery add-on packages create_user‘, that takes two arguments: username and password, you can create a task like this: from django.contrib.auth import User 2.2. Tasks 15 Celery Documentation, Release 2.2.10 @task def create_user(username won’t match and an NotRegistered error will be raised by the worker. This is also the case if using Django and using project.myapp: INSTALLED_APPS = ("project.myapp", ) The worker will have the tasks registered0 码力 | 314 页 | 1.26 MB | 1 年前3Celery 2.3 Documentation
CouchDB and databases (using SQLAlchemy or the Django ORM) is also available. Celery is easy to integrate with Django, Pylons and Flask, using the django-celery, celery-pylons and Flask-Celery add-on packages store or send the states somewhere. There are several built-in backends to choose from: SQLAlchemy/Django ORM, Memcached, Redis, AMQP, MongoDB, Tokyo Tyrant and Redis – or you can define your own. For this create_user‘, that takes two arguments: username and password, you can create a task like this: from django.contrib.auth import User from celery.task import task @task def create_user(username, password):0 码力 | 334 页 | 1.25 MB | 1 年前3Celery 2.4 Documentation
CouchDB and databases (using SQLAlchemy or the Django ORM) is also available. Celery is easy to integrate with Django, Pylons and Flask, using the django-celery, celery-pylons and Flask-Celery add-on packages celery-with-mongodb for using MongoDB as a broker. django-celery-with-redis for Django, and using Redis as a broker. django-celery-with-mongodb for Django, and using MongoDB as a broker. bundle-celery convenience can install both Celery and these dependencies in one go using ehter the celery-with-redis, or the django-celery-with-redis bundles: $ pip install -U celery-with-redis Configuration Configuration is easy0 码力 | 395 页 | 1.54 MB | 1 年前3Celery 1.0 Documentation
Contents: Getting Started Introduction Broker Installation First steps with Celery First steps with Django Periodic Tasks Resources User Guide Tasks Executing Tasks HTTP Callback Tasks (Webhooks) Routing Frequently Asked Questions General Misconceptions Troubleshooting Tasks Results Brokers Features Django API Reference Task Decorators - celery.decorators Defining Tasks - celery.task.base Executing Tasks celery.loaders Loader Base Classes - celery.loaders.base Default Loader - celery.loaders.default Django Loader - celery.loaders.djangoapp Task Registry - celery.registry Task States - celery.states Messaging0 码力 | 221 页 | 283.64 KB | 1 年前3Celery 2.5 Documentation
databases (using SQLAlchemy or the Django ORM) is also available. Celery is easy to integrate with web frameworks, some of which even have integration packages: Django django-celery Pyramid pyramid_celery celery-with-mongodb for using MongoDB as a broker. django-celery-with-redis for Django, and using Redis as a broker. django-celery-with-mongodb for Django, and using MongoDB as a broker. bundle-celery convenience can install both Celery and these dependencies in one go using ehter the celery-with-redis, or the django-celery-with-redis bundles: $ pip install -U celery-with-redis Configuration Configuration is easy0 码力 | 400 页 | 1.40 MB | 1 年前3Celery 1.0 Documentation
http://github.com/ask/celery/ 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 used in production to process millions of tasks a day. Celery was originally created for use with Django, but is now usable from any Python project. It can also operate with other languages via webhooks the User Guide. 1.4 First steps with Django 1.4.1 Configuring your Django project to use Celery You only need three simple steps to use celery with your Django project. 1. Add celery to INSTALLED_APPS0 码力 | 123 页 | 400.69 KB | 1 年前3Celery 2.5 Documentation
Monitoring and Management Guide Security Optimizing Concurrency Signals Configuration and defaults Django Cookbook Contributing Community Resources Tutorials Frequently Asked Questions What’s new in Celery Features Documentation Installation Brokers Using RabbitMQ Using Redis Using SQLAlchemy Using the Django Database Using MongoDB Using CouchDB Using Beanstalk First steps with Celery Choosing your Broker sqlalchemy.org/] or the Django ORM [http://djangoproject.com/]) is also available. Celery is easy to integrate with web frameworks, some of which even have integration packages: Django django-celery Pyramid0 码力 | 647 页 | 1011.88 KB | 1 年前3Celery 2.1 Documentation
easy to integrate with Django [http://djangoproject.org/], Pylons [http://pylonshq.com/] and Flask [http://flask.pocoo.org/], using the django-celery [http://pypi.python.org/pypi/django- celery], celery-pylons Sets of tasks, Subtasks and Callbacks Subtasks Task Sets HTTP Callback Tasks (Webhooks) Basics Django webhook example Ruby on Rails webhook example Executing webhook tasks Routing Tasks Basics AMQP arguments: username and password, you can create a task like this: from celery.task import Task from django.contrib.auth import User class CreateUserTask(Task): def run(self, username, password):0 码力 | 463 页 | 861.69 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6