Closed MhdSyrwan closed 8 years ago
@nesquena If you can pull in PR #104 then we should be able to close this.
@MhdSyrwan: Once the PR is pulled in you'll be able to define hooks like this:
class MyJob
# This hook is called only when the job is buried
def self.on_bury_log(*args)
# Do something
end
# This hook is called when the failed job is retried (and never when it's buried)
def self.on_retry_log(retry_count, delay, *args)
# Do something else
end
end
Great, Much Appreciated :+1:
@nesquena This may be closed since #104 has been merged in. (@MhdSyrwan: You can close it, too, if you get to it first)
Thanks
As mentioned here, the
on_failure
hook is called when an exception is called (job failed) so if themax_retry_count
was 3 it will be called 3 times. Is there any way to call a method when the job is buried ?Thanks in advance