Celery 1.0 Documentationproject these settings should be defined in the project’s settings.py file. In a regular Python environment, that is using the default loader, you must create the celeryconfig.py module and make sure it project this means executing: $ python manage.py syncdb When using celery in a regular Python environment you have to execute: $ celeryinit 3.4.1 Example configuration CELERY_RESULT_BACKEND = "database" task is executed. Does everything necessary for Django to work in a long-living, multiprocessing environment. on_worker_init() Called when the worker starts. Automatically discovers any tasks.py files0 码力 | 123 页 | 400.69 KB | 1 年前3
Celery 1.0 Documentationproject these settings should be defined in the project’s settings.py file. In a regular Python environment, that is using the default loader, you must create the celeryconfig.py module and make sure it project this means executing: $ python manage.py syncdb When using celery in a regular Python environment you have to execute: $ celeryinit Example configuration CELERY_RESULT_BACKEND = "database" DATABASE_ENGINE task is executed. Does everything necessary for Django to work in a long-living, multiprocessing environment. on_worker_init() Called when the worker starts. Automatically discovers any tasks.py files0 码力 | 221 页 | 283.64 KB | 1 年前3
Celery 2.0 Documentationclass in a module that also loads the Celery environment would cause a circular dependency. This is solved by importing it when needed after the environment is set up. • CELERY_ROUTES was broken if set automatically setup Celery to use Django loader. loader. It does this by setting the CELERY_LOADER environment variable to "django" (it won’t change it if a loader is already set.) 124 Chapter 9. Change history configures the CELERY_CONFIG_MODULE and CELERY_LOADER, so when nosetests imports that, the unit test environment is all set up. Before you run the tests you need to install the test requirements: $ pip install0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 2.0 Documentationclass in a module that also loads the Celery environment would cause a circular dependency. This is solved by importing it when needed after the environment is set up. CELERY_ROUTES was broken if set to automatically setup Celery to use Django loader. loader. It does this by setting the CELERY_LOADER environment variable to "django" (it won’t change it if a loader is already set.) When the Django loader is configures the CELERY_CONFIG_MODULE and CELERY_LOADER, so when nosetests imports that, the unit test environment is all set up. Before you run the tests you need to install the test requirements: $ pip install0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 3.1 Documentationmust remember to include the “@” at the end. The login credentials can also be set using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, in that case the broker url may only be must remember to include the “@” at the end. The login credentials can also be set using the environment variables IRON_TOKEN and IRON_PROJECT_ID, which are set automatically if you use the IronMQ Heroku feature-complete, stable, durable and easy to install. It’s an excellent choice for a production environment. Detailed information about using RabbitMQ with Celery: Using RabbitMQ If you are using Ubuntu0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 3.1 Documentationmust remember to include the “@” at the end. The login credentials can also be set using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, in that case the broker url may only be must remember to include the “@” at the end. The login credentials can also be set using the environment variables IRON_TOKEN and IRON_PROJECT_ID, which are set automatically if you use the IronMQ Heroku config_from_envvar() takes the configuration module name from an environment variable For example – to load configuration from a module specified in the environment variable named CELERY_CONFIG_MODULE: import os from0 码力 | 607 页 | 2.27 MB | 1 年前3
Celery 2.3 DocumentationYou can also set a custom name for the configuration module by using the CELERY_CONFIG_MODULE environment variable. Let’s create our celeryconfig.py. 1. Configure how we communicate with the broker (RabbitMQ djcelerymon reads configuration from your Celery configuration module, and sets up the Django environment using the same settings: $ djcelerymon Database tables will be created the first time the monitor applied based on specific use cases. Optimizations can apply to different properties of the running environment, be it the time tasks take to execute, the amount of memory used, or responsiveness at times of0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.1 DocumentationYou can also set a custom name for the configuration module by using the CELERY_CONFIG_MODULE environment variable. Let’s create our celeryconfig.py. 1. Configure how we communicate with the broker (RabbitMQ djcelerymon reads configuration from your Celery configuration module, and sets up the Django environment using the same settings: $ djcelerymon Database tables will be created the first time the monitor class in a module that also loads the Celery environment would cause a circular dependency. This is solved by importing it when needed after the environment is set up. • CELERY_ROUTES was broken if set0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.2 DocumentationYou can also set a custom name for the configuration module by using the CELERY_CONFIG_MODULE environment variable. Let’s create our celeryconfig.py. 1. Configure how we communicate with the broker (RabbitMQ djcelerymon reads configuration from your Celery configuration module, and sets up the Django environment using the same settings: $ djcelerymon Database tables will be created the first time the monitor applied based on specific use cases. Optimizations can apply to different properties of the running environment, be it the time tasks take to execute, the amount of memory used, or responsiveness at times of0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery v4.1.0 Documentationmust remember to include the “@” at the end. The login credentials can also be set using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, in that case the broker URL may only be feature-complete, stable, durable and easy to install. It’s an excellent choice for a production environment. Detailed information about using RabbitMQ with Celery: Using RabbitMQ If you’re using Ubuntu config_from_envvar() takes the configuration module name from an environment variable For example – to load configuration from a module specified in the environment variable named CELERY_CONFIG_MODULE: import os from0 码力 | 1057 页 | 1.35 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













