Celery 2.1 Documentation. . . . . . . . . . . . . . . . . . . . . . . . 93 7 Tutorials 95 7.1 Using Celery with Redis/Database as the messaging queue. . . . . . . . . . . . . . . . . . . . . . . 95 7.2 Tutorial: Creating a 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). Web- hooks Your tasks can also be HTTP launching synchronous subtasks • Performance and Strategies – Granularity – Data locality – State – Database transactions • Example – blog/models.py – blog/views.py – blog/tasks.py This guide gives an overview0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.3 Documentationresult store backend. You can wait for the result, retrieve it later, or ignore it. Result Stores Database, MongoDB, Redis, Tokyo Tyrant, Cassandra, or AMQP (message notification). Web- hooks Your tasks and relative imports • Decorating tasks • Task States – Result Backends * AMQP Result Backend * Database Result Backend – Built-in States * PENDING * STARTED * SUCCESS * FAILURE * RETRY * REVOKED – launching synchronous subtasks • Performance and Strategies – Granularity – Data locality – State – Database transactions • Example – blog/models.py – blog/views.py – blog/tasks.py This guide gives an overview0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.1 DocumentationContributing Community Code of Conduct Reporting a Bug Coding Style Tutorials Using Celery with Redis/Database as the messaging queue. Tutorial: Creating a click counter using carrot and celery Frequently Asked 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 Avoid launching synchronous subtasks Performance and Strategies Granularity Data locality State Database transactions Example blog/models.py blog/views.py blog/tasks.py This guide gives an overview0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.2 Documentation. . . . . . . . . . . . . . . . . . . . . . . 97 7 Tutorials 103 7.1 Using Celery with Redis/Database as the messaging queue. . . . . . . . . . . . . . . . . . . . . . . 103 7.2 Debugging Tasks Remotely result store backend. You can wait for the result, retrieve it later, or ignore it. Result Stores Database, MongoDB, Redis, Tokyo Tyrant, Cassandra, or AMQP (message notification). Web- hooks Your tasks and relative imports • Decorating tasks • Task States – Result Backends * AMQP Result Backend * Database Result Backend – Built-in States * PENDING * STARTED * SUCCESS * FAILURE * RETRY * REVOKED –0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 1.0 Documentationresult store backend. You can wait for the result, retrieve it later, or ignore it. Result Stores Database, MongoDB, Redis, Tokyo Tyrant, AMQP (high performance). Web- hooks Your tasks can also be HTTP to use celery with your Django project. 1. Add celery to INSTALLED_APPS. 2. Create the celery database tables: $ python manage.py syncdb 3. Configure celery to use the AMQP user and virtual host we available, please see the configuration directive reference. Note: If you’re using SQLite as the Django database back-end, celeryd will only be able to process one task at a time, this is because SQLite doesn’t0 码力 | 123 页 | 400.69 KB | 1 年前3
Celery 2.2 Documentationresult store backend. You can wait for the result, retrieve it later, or ignore it. Result Stores Database, MongoDB, Redis, Tokyo Tyrant, Cassandra, or AMQP (message notification). Webhooks Your tasks can naming and relative imports Decorating tasks Task States Result Backends AMQP Result Backend Database Result Backend Built-in States PENDING STARTED SUCCESS FAILURE RETRY REVOKED Custom states How Avoid launching synchronous subtasks Performance and Strategies Granularity Data locality State Database transactions Example blog/models.py blog/views.py blog/tasks.py This guide gives an overview0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 1.0 DocumentationConfiguration and defaults Example configuration file Concurrency settings Task result backend settings Database backend settings AMQP backend settings Cache backend settings Tokyo Tyrant backend settings Redis celeryd as a daemon Unit Testing Tutorials External tutorials and resources Using Celery with Redis/Database as the messaging queue. Tutorial: Creating a click counter using carrot and celery Frequently Asked 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 callbacks0 码力 | 221 页 | 283.64 KB | 1 年前3
Celery 2.5 Documentationresult store backend. You can wait for the result, retrieve it later, or ignore it. Result Stores Database, MongoDB, Redis, Cassandra, or AMQP (message notification). Web- hooks Your tasks can also be Configuration Configuration is easy, set the transport, and configure the location of your Redis database: BROKER_URL = "redis://localhost:6379/0" Where the URL is in the format of: redis://userid:p 1.2.3 Using SQLAlchemy Installation Configuration Celery needs to know the location of your database, which should be the usual SQLAlchemy connection string, but with ‘sqla+’ prepended to it: BROKER_URL0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.3 Documentationresult store backend. You can wait for the result, retrieve it later, or ignore it. Result Stores Database, MongoDB, Redis, Tokyo Tyrant, Cassandra, or AMQP (message notification). Webhooks Your tasks can naming and relative imports Decorating tasks Task States Result Backends AMQP Result Backend Database Result Backend Built-in States PENDING STARTED SUCCESS FAILURE RETRY REVOKED Custom states Creating Avoid launching synchronous subtasks Performance and Strategies Granularity Data locality State Database transactions Example blog/models.py blog/views.py blog/tasks.py This guide gives an overview0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.0 Documentationresult store backend. You can wait for the result, retrieve it later, or ignore it. Result Stores Database, MongoDB, Redis, Tokyo Tyrant, AMQP (high performance). Web- hooks Your tasks can also be HTTP launching synchronous subtasks • Performance and Strategies – Granularity – Data locality – State – Database transactions 2.1.1 Basics A task is a class that encapsulates a function and its execution options Release 2.0.3 (stable) In the view where the comment is posted, we first write the comment to the database, then we launch the spam filter task in the background. blog/views.py from django import forms0 码力 | 165 页 | 492.43 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













