[Django]-Debugging djcelery's celeryd via pdb

26👍

I had the same problem. Try using Celery’s remote debugger rdb instead:

from celery import task
from celery.contrib import rdb

@task()
def add(x, y):
    result = x + y
    rdb.set_trace()  # <- set break-point
    return result

See the user guide (link update 2017/5).

👤AMO

Leave a comment