This document describes the current stable version of Celery (4.0). For development docs, go here.
celery.contrib.rdb
¶
Remote Debugger.
Introduction¶
This is a 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¶
-
CELERY_RDB_HOST
¶
CELERY_RDB_HOST
¶
Hostname to bind to. Default is ‘127.0.01’ (only accessable from localhost).
-
CELERY_RDB_PORT
¶