rq / django-rq

A simple app that provides django integration for RQ (Redis Queue)
MIT License
1.82k stars 286 forks source link

job decorator doesn't allow on_failure and on_success parameters #561

Closed daufinsyd closed 1 year ago

daufinsyd commented 1 year ago

Hello :)

Would it be possible to backport this https://github.com/rq/rq/pull/1628 feature from python-rq in order to make on_success and on_failure available using the decorator ?

To avoid:

django_rq/decorators.py
TypeError: job.__init__() got an unexpected keyword argument 'on_success'

Thanks

daufinsyd commented 1 year ago

My bad, I mixed up my venvs. After manually updating the python-rq dependency in the right venv to 1.11 it works.