Celery v4.2.2 Documentationto Celery you can get started by following the First Steps with Celery tutorial. • You can also check out the FAQ. 3 Celery Documentation, Release 4.2.2 4 Chapter 1. Getting Started CHAPTER 2 Contents the worker’s console output. Calling a task returns an AsyncResult instance. This can be used to check the state of the task, wait for the task to finish, or get its return value (or if the task failed arguments (1 given)',) In this case it’ll return the exception instance raised instead, and so to check whether the task succeeded or failed you’ll have to use the corresponding methods on the result instance:0 码力 | 744 页 | 2.71 MB | 1 年前3
Celery 2.1 DocumentationRight now we have to check the worker log files to know what happened with the task. This is because we didn’t keep the AsyncResult object returned. The AsyncResult lets us check the state of the task default. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment.id, remote_addr=remote_addr) return0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.3 Documentationwe have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured a result store the AsyncResult enables you to check the state of used. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment.id, remote_addr=remote_addr) return0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.2 DocumentationRight now we have to check the worker log files to know what happened with the task. This is because we didn’t keep the AsyncResult object returned. The AsyncResult lets us check the state of the task default. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment.id, remote_addr=remote_addr) return0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 2.1 DocumentationRight now we have to check the worker log files to know what happened with the task. This is because we didn’t keep the AsyncResult object returned. The AsyncResult lets us check the state of the task default. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment.id,0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.2 DocumentationRight now we have to check the worker log files to know what happened with the task. This is because we didn’t keep the AsyncResult object returned. The AsyncResult lets us check the state of the task default. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment.id,0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.5 Documentationwe have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured a result store the AsyncResult enables you to check the state of used. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment.id, remote_addr=remote_addr) return0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.3 Documentationwe have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured a result store the AsyncResult enables you to check the state of used. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment.id,0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.4 Documentationwe have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured a result store the AsyncResult enables you to check the state of used. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment.id, remote_addr=remote_addr) return0 码力 | 395 页 | 1.54 MB | 1 年前3
Celery 2.4 Documentationwe have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured a result store the AsyncResult enables you to check the state of used. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment.id,0 码力 | 543 页 | 957.42 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













