This document describes an older version of Celery (2.2). For the latest stable version please go here.
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.decorators 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 celeryd.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
Set breakpoint at current location, or a specified frame
Returns the current debugger instance (if any), or creates a new one.