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 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
Django 3.0.x Documentationnext? Writing your first Django app, part 6 Customize your app’s look and feel Adding a background-image Writing your first Django app, part 7 Customize the admin form Adding related objects Customize template language. Do I have to use it? Do I have to use your model/database layer? How do I use image and file fields? How do I make a variable available to all my templates? FAQ: Getting Help How do Applications Projects and applications Configuring applications Application configuration Application registry Initialization process System check framework API reference Builtin tags Core system checks contrib0 码力 | 3085 页 | 2.95 MB | 1 年前3
Django 3.1.x Documentationnext? Writing your first Django app, part 6 Customize your app’s look and feel Adding a background-image Writing your first Django app, part 7 Customize the admin form Adding related objects Customize template language. Do I have to use it? Do I have to use your model/database layer? How do I use image and file fields? How do I make a variable available to all my templates? FAQ: Getting Help How do Applications Projects and applications Configuring applications Application configuration Application registry Initialization process System check framework API reference Builtin tags Core system checks contrib0 码力 | 3094 页 | 3.03 MB | 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
Celery v4.1.0 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 码力 | 1057 页 | 1.35 MB | 1 年前3
共 621 条
- 1
- 2
- 3
- 4
- 5
- 6
- 63













