You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing on_success and on_failure args in jobfunction.queue() #116
in this line and this line, the enqueue_call didn't recognise on_success and on_failure args, and passed it as kargs if supplied in function call. RQ related source
I haven't looked at the source yet but it seems it should be a relatively simple addition. Any comment on whether this is supported in some other way, or if there are plans to implement it?
EDIT: @MaxVRAM, @richardfat7 , I added this and submitted as PR #118. There are instructions on how to install directly from that branch if you'd like to give it a shot. It works on my application. I'll need the Flask-RQ2 devs to review and merge if you'd like this to be available in the PyPi package
Activity
MaxVRAM commentedon Aug 19, 2021
I've been stuck on working out how to make a success callback in RQ2. But it seems like it's not implemented, so will probably go back to vanilla RQ.
mzpqnxow commentedon Oct 30, 2021
I haven't looked at the source yet but it seems it should be a relatively simple addition. Any comment on whether this is supported in some other way, or if there are plans to implement it?
EDIT: @MaxVRAM, @richardfat7 , I added this and submitted as PR #118. There are instructions on how to install directly from that branch if you'd like to give it a shot. It works on my application. I'll need the Flask-RQ2 devs to review and merge if you'd like this to be available in the PyPi package
mzpqnxow commentedon Oct 30, 2021
If this can be reviewed and consider for merge, that'd be terrific. Until then I'll maintain a separate branch
Thanks Flask-RQ2 devs for the work on this project- it makes things look so much cleaner
richardfat7 commentedon Oct 30, 2021
Thanks @mzpqnxow . But I have fail back to use rq directly in flask.
chunchunmaru0 commentedon May 26, 2024
what I did was import rq from current instance and get the queue then enqueue the job