Celery 2.3 Documentationnecessary. 14 Chapter 2. User Guide Celery Documentation, Release 2.3.5 2.2 Tasks • Basics • Context – Example Usage • Logging • Retrying a task if something fails – Using a custom retry delay • create_user(username, password): User.objects.create(username=username, password=password) 2.2.2 Context task.request contains information and state related the currently executing task, and must always http import HttpResponseRedirect from django.template.context import RequestContext from django.shortcuts import get_object_or_404, render_to_response from blog import tasks from blog.models import Comment0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.2 DocumentationRelease: 2.2 Date: February 04, 2014 Overview Tasks Workers Monitoring Routing Tasks Basics Context Logging Retrying a task if something fails Task options Task names Decorating tasks Task States How describes an older version of Celery (2.2). For the latest stable version please go here. Tasks Basics Context Example Usage Logging Retrying a task if something fails Using a custom retry delay Task options create_user(username, password): User.objects.create(username=username, password=password) Context task.request contains information and state related the currently executing task, and must always0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.2 Documentationnecessary. 14 Chapter 2. User Guide Celery Documentation, Release 2.2.10 2.2 Tasks • Basics • Context – Example Usage • Logging • Retrying a task if something fails – Using a custom retry delay • create_user(username, password): User.objects.create(username=username, password=password) 2.2.2 Context task.request contains information and state related the currently executing task, and must always http import HttpResponseRedirect from django.template.context import RequestContext from django.shortcuts import get_object_or_404, render_to_response from blog import tasks from blog.models import Comment0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 2.4 Documentation2.4 Date: January 12, 2016 Overview Tasks Workers Monitoring Routing Ecosystem Tasks Basics Context Logging Retrying a task if something fails Task options Task names Decorating tasks Task States Creating User Guide » This document describes Celery 2.4. For development docs, go here. Tasks Basics Context Example Usage Logging Retrying a task if something fails Using a custom retry delay Task options create_user(username, password): User.objects.create(username=username, password=password) Context task.request contains information and state related the currently executing task, and must always0 码力 | 543 页 | 957.42 KB | 1 年前3
Celery 2.5 DocumentationKombu cyme celerymon 2.2 Tasks 2.2. Tasks 19 Celery Documentation, Release 2.5.5 • Basics • Context – Example Usage • Logging • Retrying a task if something fails – Using a custom retry delay • create_user(username, password): User.objects.create(username=username, password=password) 2.2.2 Context task.request contains information and state related the currently executing task, and must always http import HttpResponseRedirect from django.template.context import RequestContext from django.shortcuts import get_object_or_404, render_to_response from blog import tasks from blog.models import Comment0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.4 DocumentationKombu cyme celerymon 2.2 Tasks 2.2. Tasks 21 Celery Documentation, Release 2.4.7 • Basics • Context – Example Usage • Logging • Retrying a task if something fails – Using a custom retry delay • create_user(username, password): User.objects.create(username=username, password=password) 2.2.2 Context task.request contains information and state related the currently executing task, and must always http import HttpResponseRedirect from django.template.context import RequestContext from django.shortcuts import get_object_or_404, render_to_response from blog import tasks from blog.models import Comment0 码力 | 395 页 | 1.54 MB | 1 年前3
Celery 2.3 DocumentationRelease: 2.3 Date: February 04, 2014 Overview Tasks Workers Monitoring Routing Tasks Basics Context Logging Retrying a task if something fails Task options Task names Decorating tasks Task States Creating User Guide » This document describes Celery 2.3. For development docs, go here. Tasks Basics Context Example Usage Logging Retrying a task if something fails Using a custom retry delay Task options create_user(username, password): User.objects.create(username=username, password=password) Context task.request contains information and state related the currently executing task, and must always0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery v5.0.1 Documentationrequests [https://pypi.python.org/pypi/requests/] library: connect_timeout, read_timeout = 5.0, 30.0 response = requests.get(URL, timeout=(connect_timeout, read_timeout)) Time limits are convenient for making request.callbacks instead. Example An example task accessing information in the context is: @app.task(bind=True) def dump_context(self, x, y): print('Executing task id {0.id}, args: {0.args!r} kwargs: http import HttpResponseRedirect from django.template.context import RequestContext from django.shortcuts import get_object_or_404, render_to_response from blog import tasks from blog.models import Comment0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery v5.0.2 Documentationrequests [https://pypi.python.org/pypi/requests/] library: connect_timeout, read_timeout = 5.0, 30.0 response = requests.get(URL, timeout=(connect_timeout, read_timeout)) Time limits are convenient for making request.callbacks instead. Example An example task accessing information in the context is: @app.task(bind=True) def dump_context(self, x, y): print('Executing task id {0.id}, args: {0.args!r} kwargs: http import HttpResponseRedirect from django.template.context import RequestContext from django.shortcuts import get_object_or_404, render_to_response from blog import tasks from blog.models import Comment0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.0 Documentationrequests [https://pypi.python.org/pypi/requests/] library: connect_timeout, read_timeout = 5.0, 30.0 response = requests.get(URL, timeout=(connect_timeout, read_timeout)) Time limits are convenient for making request.callbacks instead. Example An example task accessing information in the context is: @app.task(bind=True) def dump_context(self, x, y): print('Executing task id {0.id}, args: {0.args!r} kwargs: http import HttpResponseRedirect from django.template.context import RequestContext from django.shortcuts import get_object_or_404, render_to_response from blog import tasks from blog.models import Comment0 码力 | 2309 页 | 2.13 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













