 Celery 2.1 Documentationdjango.contrib.auth import User class CreateUserTask(Task): def run(self, username, password): User.objects.create(username=username, password=password) 2.2. Tasks 15 Celery Documentation, Release 2.1.4 import task from django.contrib.auth import User @task def create_user(username, password): User.objects.create(username=username, password=password) The task decorator takes the same execution options options as the Task class does: @task(serializer="json") def create_user(username, password): User.objects.create(username=username, password=password) 2.2.2 Default keyword arguments Celery supports a set0 码力 | 285 页 | 1.19 MB | 1 年前3 Celery 2.1 Documentationdjango.contrib.auth import User class CreateUserTask(Task): def run(self, username, password): User.objects.create(username=username, password=password) 2.2. Tasks 15 Celery Documentation, Release 2.1.4 import task from django.contrib.auth import User @task def create_user(username, password): User.objects.create(username=username, password=password) The task decorator takes the same execution options options as the Task class does: @task(serializer="json") def create_user(username, password): User.objects.create(username=username, password=password) 2.2.2 Default keyword arguments Celery supports a set0 码力 | 285 页 | 1.19 MB | 1 年前3
 Celery v5.0.5 Documentationresult ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store result objects for groups in the Redis backend. This can cause those results to be be returned in a different order primitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the0 码力 | 2315 页 | 2.14 MB | 1 年前3 Celery v5.0.5 Documentationresult ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store result objects for groups in the Redis backend. This can cause those results to be be returned in a different order primitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the0 码力 | 2315 页 | 2.14 MB | 1 年前3
 Celery v5.0.2 Documentationresult ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store result objects for groups in the Redis backend. This can cause those results to be be returned in a different order primitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the0 码力 | 2313 页 | 2.14 MB | 1 年前3 Celery v5.0.2 Documentationresult ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store result objects for groups in the Redis backend. This can cause those results to be be returned in a different order primitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the0 码力 | 2313 页 | 2.14 MB | 1 年前3
 Celery v5.0.1 Documentationresult ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store result objects for groups in the Redis backend. This can cause those results to be be returned in a different order primitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the0 码力 | 2313 页 | 2.13 MB | 1 年前3 Celery v5.0.1 Documentationresult ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store result objects for groups in the Redis backend. This can cause those results to be be returned in a different order primitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the0 码力 | 2313 页 | 2.13 MB | 1 年前3
 Celery v5.0.0 Documentationresult ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store result objects for groups in the Redis backend. This can cause those results to be be returned in a different order primitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the0 码力 | 2309 页 | 2.13 MB | 1 年前3 Celery v5.0.0 Documentationresult ordering Versions of Celery up to and including 4.4.6 used an unsorted list to store result objects for groups in the Redis backend. This can cause those results to be be returned in a different order primitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the0 码力 | 2309 页 | 2.13 MB | 1 年前3
 Celery 2.2 Documentationpassword): User.objects.create(username=username, password=password) Task options are added as arguments to task: @task(serializer="json") def create_user(username, password): User.objects.create(username=username the worker crashes in the middle of execution, which may be acceptable for some applications. The global default can be overridden by the CELERY_ACKS_LATE setting. Task.track_started If True the task worker executing the task will be available in the state metadata (e.g. result.info[”pid”]) The global default can be overridden by the CELERY_TRACK_STARTED setting. See also: The API reference for0 码力 | 314 页 | 1.26 MB | 1 年前3 Celery 2.2 Documentationpassword): User.objects.create(username=username, password=password) Task options are added as arguments to task: @task(serializer="json") def create_user(username, password): User.objects.create(username=username the worker crashes in the middle of execution, which may be acceptable for some applications. The global default can be overridden by the CELERY_ACKS_LATE setting. Task.track_started If True the task worker executing the task will be available in the state metadata (e.g. result.info[”pid”]) The global default can be overridden by the CELERY_TRACK_STARTED setting. See also: The API reference for0 码力 | 314 页 | 1.26 MB | 1 年前3
 Celery 2.1 Documentationauth import User class CreateUserTask(Task): def run(self, username, password): User.objects.create(username=username, password=password) For convenience there is a shortcut decorator that import task from django.contrib.auth import User @task def create_user(username, password): User.objects.create(username=username, password=password) The task decorator takes the same execution options as the Task class does: @task(serializer="json") def create_user(username, password): User.objects.create(username=username, password=password) Default keyword arguments Celery supports a set0 码力 | 463 页 | 861.69 KB | 1 年前3 Celery 2.1 Documentationauth import User class CreateUserTask(Task): def run(self, username, password): User.objects.create(username=username, password=password) For convenience there is a shortcut decorator that import task from django.contrib.auth import User @task def create_user(username, password): User.objects.create(username=username, password=password) The task decorator takes the same execution options as the Task class does: @task(serializer="json") def create_user(username, password): User.objects.create(username=username, password=password) Default keyword arguments Celery supports a set0 码力 | 463 页 | 861.69 KB | 1 年前3
 Celery 2.3 Documentationpassword): User.objects.create(username=username, password=password) Task options are added as arguments to task: @task(serializer="json") def create_user(username, password): User.objects.create(username=username the worker crashes in the middle of execution, which may be acceptable for some applications. The global default can be overridden by the CELERY_ACKS_LATE setting. Task.track_started If True the task worker executing the task will be available in the state metadata (e.g. result.info[”pid”]) The global default can be overridden by the CELERY_TRACK_STARTED setting. See also: The API reference for0 码力 | 334 页 | 1.25 MB | 1 年前3 Celery 2.3 Documentationpassword): User.objects.create(username=username, password=password) Task options are added as arguments to task: @task(serializer="json") def create_user(username, password): User.objects.create(username=username the worker crashes in the middle of execution, which may be acceptable for some applications. The global default can be overridden by the CELERY_ACKS_LATE setting. Task.track_started If True the task worker executing the task will be available in the state metadata (e.g. result.info[”pid”]) The global default can be overridden by the CELERY_TRACK_STARTED setting. See also: The API reference for0 码力 | 334 页 | 1.25 MB | 1 年前3
 Celery 2.5 Documentationpassword): User.objects.create(username=username, password=password) Task options are added as arguments to task: @task(serializer="json") def create_user(username, password): User.objects.create(username=username the worker crashes in the middle of execution, which may be acceptable for some applications. The global default can be overridden by the CELERY_ACKS_LATE setting. Task.track_started If True the task worker executing the task will be available in the state metadata (e.g. result.info[”pid”]) The global default can be overridden by the CELERY_TRACK_STARTED setting. See also: The API reference for0 码力 | 400 页 | 1.40 MB | 1 年前3 Celery 2.5 Documentationpassword): User.objects.create(username=username, password=password) Task options are added as arguments to task: @task(serializer="json") def create_user(username, password): User.objects.create(username=username the worker crashes in the middle of execution, which may be acceptable for some applications. The global default can be overridden by the CELERY_ACKS_LATE setting. Task.track_started If True the task worker executing the task will be available in the state metadata (e.g. result.info[”pid”]) The global default can be overridden by the CELERY_TRACK_STARTED setting. See also: The API reference for0 码力 | 400 页 | 1.40 MB | 1 年前3
 Celery v4.0.0 Documentationprimitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the arguments to the decorator: @app.task(serializer='json') def create_user(username, password): User.objects.create(username=username, password=password) Bound tasks A task being bound means the first argume0 码力 | 2106 页 | 2.23 MB | 1 年前3 Celery v4.0.0 Documentationprimitives… The Primitives group chain chord map starmap chunks These primitives are signature objects themselves, so they can be combined in any number of ways to compose complex work-flows. Note These task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username, password=password) There are also many options that can be set for the arguments to the decorator: @app.task(serializer='json') def create_user(username, password): User.objects.create(username=username, password=password) Bound tasks A task being bound means the first argume0 码力 | 2106 页 | 2.23 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6














