Celery 1.0 Documentationbase Default Loader - celery.loaders.default Django Loader - celery.loaders.djangoapp Task Registry - celery.registry Task States - celery.states Messaging - celery.messaging Contrib: Test runner - celery like cron. Here’s an example of a periodic task: from celery.task import PeriodicTask from celery.registry import tasks from datetime import timedelta class MyPeriodicTask(PeriodicTask): run_every = json, yaml, or any custom serialization methods that have been registered with carrot.serialization.registry. Please see Executing Tasks for more information. Message and routing options routing_key Override0 码力 | 221 页 | 283.64 KB | 1 年前3
Celery 2.1 DocumentationLoader Base Classes - celery.loaders.base Default Loader - celery.loaders.default Task Registry - celery.registry Task States - celery.states Messaging - celery.messaging Contrib: Abortable tasks - celery json, yaml, or any custom serialization methods that have been registered with carrot.serialization.registry. Please see Serializers for more information. Task.backend The result store backend to use for in a registry. The registry contains a list of task names and their task classes. You can investigate this registry yourself: >>> from celery import registry >>> from celery import task >>> registry.tasks0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.0 DocumentationLoader Base Classes - celery.loaders.base Default Loader - celery.loaders.default Task Registry - celery.registry Task States - celery.states Messaging - celery.messaging Contrib: Abortable tasks - celery json, yaml, or any custom serialization methods that have been registered with carrot.serialization.registry. Please see Executing Tasks for more information. Message and routing options queue Use the in a registry. The registry contains a list of task names and their task classes. You can investigate this registry yourself: >>> from celery import registry >>> from celery import task >>> registry.tasks0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 1.0 Documentationlike cron. Here’s an example of a periodic task: from celery.task import PeriodicTask from celery.registry import tasks from datetime import timedelta class MyPeriodicTask(PeriodicTask): run_every = timedelta(seconds=30) yaml, or any custom seri- alization methods that have been registered with carrot.serialization.registry. Please see Executing Tasks for more information. Message and routing options • routing_key Override in a registry. The registry contains a list of task names and their task classes. You can investigate this registry yourself: >>> from celery import registry >>> from celery import task >>> registry.tasks0 码力 | 123 页 | 400.69 KB | 1 年前3
Celery 2.1 Documentationdefault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 9.17 Task Registry - celery.registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 9.18 Task json, yaml, or any custom serialization methods that have been registered with carrot.serialization.registry. Please see Serializers for more information. Task.backend The result store backend to use for in a registry. The registry contains a list of task names and their task classes. You can investigate this registry yourself: >>> from celery import registry >>> from celery import task >>> registry.tasks0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.0 Documentationyaml, or any custom seri- alization methods that have been registered with carrot.serialization.registry. Please see Executing Tasks for more information. 16 Chapter 2. User Guide Celery Documentation in a registry. The registry contains a list of task names and their task classes. You can investigate this registry yourself: >>> from celery import registry >>> from celery import task >>> registry.tasks modules listed in the CELERY_IMPORTS setting. The entity responsible for registering your task in the registry is a meta class, TaskType. This is the default meta class for Task. If you want to register your0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 2.3 Documentationjson, yaml, or any custom serialization methods that have been registered with kombu.serialization.registry. Please see Serializers for more information. Task.backend The result store backend to use for x, y): return x + y add = registry.tasks[AddTask.name] Instantiation A task is not instantiated for every request, but is registered in the task registry as a global instance. This means that in a registry. The registry contains a list of task names and their task classes. You can investigate this registry yourself: >>> from celery import registry >>> from celery import task >>> registry.tasks0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.2 Documentationjson, yaml, or any custom serialization methods that have been registered with kombu.serialization.registry. Please see Serializers for more information. Task.backend The result store backend to use for in a registry. The registry contains a list of task names and their task classes. You can investigate this registry yourself: >>> from celery import registry >>> from celery import task >>> registry.tasks modules listed in the CELERY_IMPORTS setting. The entity responsible for registering your task in the registry is a meta class, TaskType. This is the default meta class for BaseTask. If you want to register0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.4 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257 10.20 celery.registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258 json, yaml, or any custom serialization methods that have been registered with kombu.serialization.registry. Please see Serializers for more information. Task.backend The result store backend to use for run(self, x, y): return x + y add = registry.tasks[AddTask.name] Instantiation A task is not instantiated for every request, but is registered in the task registry as a global instance. This means that0 码力 | 395 页 | 1.54 MB | 1 年前3
Celery 2.4 Documentationjson, yaml, or any custom serialization methods that have been registered with kombu.serialization.registry. Please see Serializers for more information. Task.backend The result store backend to use for x, y): return x + y add = registry.tasks[AddTask.name] Instantiation A task is not instantiated for every request, but is registered in the task registry as a global instance. This means that in a registry. The registry contains a list of task names and their task classes. You can investigate this registry yourself: >>> from celery import registry >>> from celery import task >>> registry.tasks0 码力 | 543 页 | 957.42 KB | 1 年前3
共 215 条
- 1
- 2
- 3
- 4
- 5
- 6
- 22













