django-rq icon indicating copy to clipboard operation
django-rq copied to clipboard

how to setup custom exception handler?

Open qxrftz opened this issue 4 years ago • 1 comments

Here is my code, but it doesn't work.

settings.py:
RQ_EXCEPTION_HANDLERS=['path.to.handler']


def handler(job, exc_type, exc_value, traceback):
    callback = job.kwargs['callback']
    callback(exc_type, exc_value, traceback)

qxrftz avatar Dec 10 '20 12:12 qxrftz

I also have a similar setup and my error handler is not called. I also wrote a unit test and indeed the error handler is not called. Any help?

dapicester avatar Dec 13 '21 10:12 dapicester