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 年前3Celery 2.1 Documentation
Contributing 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 年前3Celery 1.0 Documentation
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 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 年前3Celery 1.0 Documentation
Configuration 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 年前3Celery 3.1 Documentation
necessary, but they can make development easier, and sometimes they add important hooks like closing database connections at fork(2). Quickjump I want to ⟶ get the return value of a task use logging from Instructions Using RabbitMQ Using Redis Experimental Transports Using SQLAlchemy Using the Django Database Using MongoDB Using Amazon SQS Using CouchDB Using Beanstalk Using IronMQ Broker Overview This -U celery[redis] Configuration Configuration is easy, just configure the location of your Redis database: BROKER_URL = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:passwor0 码力 | 887 页 | 1.22 MB | 1 年前3Celery 3.1 Documentation
necessary, but they can make development easier, and sometimes they add important hooks like closing database connections at fork(2). Quickjump I want to • get the return value of a task • use logging from -U celery[redis] Configuration Configuration is easy, just configure the location of your Redis database: BROKER_URL = 'redis://localhost:6379/0' Where the URL is in the format of: redis://:passwor on port 6379, using database 0. If a unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a0 码力 | 607 页 | 2.27 MB | 1 年前3Celery 2.0 Documentation
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 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 年前3Celery 2.0 Documentation
Configuration 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 Tutorials Tutorials and resources from the community 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 码力 | 284 页 | 332.71 KB | 1 年前3Celery v4.0.1 Documentation
necessary, but they can make development easier, and sometimes they add important hooks like closing database connections at fork(2). Quick Jump I want to ⟶ get the return value of a task use logging from "celery[redis]" Configuration Configuration is easy, just configure the location of your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis:/ on port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a0 码力 | 1040 页 | 1.37 MB | 1 年前3Celery v4.0.2 Documentation
necessary, but they can make development easier, and sometimes they add important hooks like closing database connections at fork(2). Quick Jump I want to ⟶ get the return value of a task use logging from "celery[redis]" Configuration Configuration is easy, just configure the location of your Redis database: app.conf.broker_url = 'redis://localhost:6379/0' Where the URL is in the format of: redis:/ on port 6379, using database 0. If a Unix socket connection should be used, the URL needs to be in the format: redis+socket:///path/to/redis.sock Specifying a different database number when using a0 码力 | 1042 页 | 1.37 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6