Celery 2.1 Documentationdefault . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 9.17 Task Registry - celery.registry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 9.18 Task repository, so to install Homebrew, you first need to install git. Download and install from the disk image at http://code.google.com/p/git-osx-installer/downloads/list?can=3 When git is installed you can 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 for0 码力 | 285 页 | 1.19 MB | 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 repository, so to install Homebrew, you first need to install git. Download and install from the disk image at http://code.google.com/p/git-osx-installer/downloads/list?can=3 When git is installed you can 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 for0 码力 | 463 页 | 861.69 KB | 1 年前3
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 repository, so to install homebrew, you first need to install git. Download and install from the disk image at http://code.google.com/p/git-osx-installer/downloads/list?can=3 When git is installed you can 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 =0 码力 | 221 页 | 283.64 KB | 1 年前3
Celery 2.0 Documentationrepository, so to install homebrew, you first need to install git. Download and install from the disk image at http://code.google.com/p/git-osx-installer/downloads/list?can=3 When git is installed you can yaml, 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.tasks0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 1.0 Documentationrepository, so to install homebrew, you first need to install git. Download and install from the disk image at http://code.google.com/p/git-osx-installer/downloads/list?can=3 When git is installed you can 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 = 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 Override0 码力 | 123 页 | 400.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 repository, so to install homebrew, you first need to install git. Download and install from the disk image at http://code.google.com/p/git-osx-installer/downloads/list?can=3 When git is installed you can 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 the0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 3.1 Documentationof task names to their actual functions, called the task registry. Whenever you define a task, that task will also be added to the local registry: >>> @app.task ... def add(x, y): ... return x + y only do the following: 1. Create a logical clock instance, used for events. 2. Create the task registry. 3. Set itself as the current app (but not if the set_as_current argument was disabled) 4. Call class to set certain options, or override other behavior from celery.task import Task from celery.registry import tasks class Hello(Task): send_error_emails = True def run(self, to): return0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 2.4 Documentationrepository, so to install Homebrew, you first need to install git. Download and install from the disk image at http://code.google.com/p/git-osx-installer/downloads/list?can=3 When git is installed you can 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 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 码力 | 543 页 | 957.42 KB | 1 年前3
Celery v4.0.1 Documentationof task names to their actual functions, called the task registry. Whenever you define a task, that task will also be added to the local registry: >>> @app.task ... def add(x, y): ... return x + y only do the following: 1. Create a logical clock instance, used for events. 2. Create the task registry. 3. Set itself as the current app (but not if the set_as_current argument was disabled) 4. Call class to set certain options, or override other behavior from celery.task import Task from celery.registry import tasks class Hello(Task): queue = 'hipri' def run(self, to): return 'hello0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationof task names to their actual functions, called the task registry. Whenever you define a task, that task will also be added to the local registry: >>> @app.task ... def add(x, y): ... return x + y only do the following: 1. Create a logical clock instance, used for events. 2. Create the task registry. 3. Set itself as the current app (but not if the set_as_current argument was disabled) 4. Call class to set certain options, or override other behavior from celery.task import Task from celery.registry import tasks class Hello(Task): queue = 'hipri' def run(self, to): return 'hello0 码力 | 1042 页 | 1.37 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













