Celery 2.0 DocumentationCelery 9 Celery Documentation, Release 2.0.3 (stable) Right 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 request.META.get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment processes. • The remote control command replies was not working with RabbitMQ 1.8.0’s stricter equivalence checks. If you’ve already hit this problem you may have to delete the declaration: $ camqadm0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 2.0 Documentationhas access to the virtual host you configured earlier. Right 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 get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously processes. The remote control command replies was not working with RabbitMQ 1.8.0’s stricter equivalence checks. If you’ve already hit this problem you may have to delete the declaration: $ camqadm0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 2.1 Documentationtask until a worker server has consumed and executed it. Right 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 Guide Celery Documentation, Release 2.1.4 @task def upload_files(filenames, **kwargs): for i, file in enumerate(filenames): upload_files.update_state(kwargs["task_id"], "PROGRESS", {"current": i, "total": request.META.get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.3 Documentationtask until a worker server has consumed and executed it. Right now we have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured Use Task.update_state to update a tasks state: @task def upload_files(filenames): for i, file in enumerate(filenames): upload_files.update_state(state="PROGRESS", meta={"current": i, "total": len(filenames)}) request.META.get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.1 Documentationtask until a worker server has consumed and executed it. Right 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 update_state to update a tasks state: @task def upload_files(filenames, **kwargs): for i, file in enumerate(filenames): upload_files.update_state(kwargs["task_id"], "PROGRESS", get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.2 Documentationtask until a worker server has consumed and executed it. Right 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 Use Task.update_state to update a tasks state: @task def upload_files(filenames): for i, file in enumerate(filenames): upload_files.update_state(state="PROGRESS", meta={"current": i, "total": len(filenames)}) request.META.get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 1.0 Documentationaccess to the virtual host you configured earlier. Right now we have to check the celery worker log files to know what happened with the task. This is because we didn’t keep the AsyncResult object returned access to the virtual host you configured earlier. Right now we have to check the celery worker log files to know what happened with the task. This is because we didn’t keep the AsyncResult object returned request.META.get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment0 码力 | 123 页 | 400.69 KB | 1 年前3
Celery 2.2 Documentationtask until a worker server has consumed and executed it. Right 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 Task.update_state to update a tasks state: @task def upload_files(filenames): for i, file in enumerate(filenames): upload_files.update_state(state="PROGRESS", meta={"current": i get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 3.1 DocumentationSteps Celery is… Simple Celery is easy to use and maintain, and it doesn’t need configuration files. It has an active, friendly community you can talk to for support, including a mailing-list [http://groups configuration options, see Configuration and defaults. To demonstrate the power of configuration files, this is how you would route a misbehaving task to a dedicated queue: celeryconfig.py: CELERY_ROUTES pidfile and logfile arguments must be used when stopping. By default it will create pid and log files in the current directory, to protect against multiple workers launching on top of each other you are0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 1.0 Documentationaccess to the virtual host you configured earlier. Right now we have to check the celery worker log files to know what happened with the task. This is because we didn’t keep the AsyncResult object returned access to the virtual host you configured earlier. Right now we have to check the celery worker log files to know what happened with the task. This is because we didn’t keep the AsyncResult object returned get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously0 码力 | 221 页 | 283.64 KB | 1 年前3
共 439 条
- 1
- 2
- 3
- 4
- 5
- 6
- 44













