你正在阅读 Celery 3.1 的文档。开发版本文档见: 此处.
Remote debugger for Celery tasks running in multiprocessing pool workers. Inspired by http://snippets.dzone.com/posts/show/7248
Usage
from celery.contrib import rdb
from celery import task
@task()
def add(x, y):
result = x + y
rdb.set_trace()
return result
Environment Variables
Hostname to bind to. Default is ‘127.0.01’, which means the socket will only be accessible from the local host.
Base port to bind to. Default is 6899. The debugger will try to find an available port starting from the base port. The selected port will be logged by the worker.
Set breakpoint at current location, or a specified frame