Celery 2.1 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 5 Community Resources 85 5.1 Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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.objects0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.2 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 5 Contributing 91 5.1 Community Code of Conduct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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(username0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 1.0 Documentationhttp://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 年前3
Celery 1.0 DocumentationContents: 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 年前3
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 年前3
Celery 2.4 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 5 Contributing 107 5.1 Community Code of Conduct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 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 convenience0 码力 | 395 页 | 1.54 MB | 1 年前3
Celery 2.0 Documentationavailable. You may also be pleased to know that full Django integration exists, delivered by the django-celery [http://pypi.python.org/pypi/django-celery] package. Overview Example Features Documentation 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 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=username0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 2.1 Documentationeasy 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
Celery 2.3 DocumentationCouchDB 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 年前3
Celery 2.2 Documentation(using SQLAlchemy [http://www.sqlalchemy.org/] or the Django ORM [http://djangoproject.com/]) is also available. Celery is easy to integrate with Django [http://djangoproject.com/], Pylons [http://pylonshq [http://pylonshq.com/] and Flask [http://flask.pocoo.org/], using the django-celery [http://pypi.python.org/pypi/django- celery], celery-pylons [http://pypi.python.org/pypi/celery-pylons] and Flask-Celery [http://github 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 AMQP0 码力 | 505 页 | 878.66 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













