At work, we are using a ResqueBase class that all of our Resque jobs derive from. It would be great to be able to configure some resque-retry information there, so that we can have "defaults" that all of our resque jobs automatically inherit, but can override if desired.
Either (A) we automatically inherit more resque-retry options (but I think this is a bit of a breaking change). Or (B) we add the ability for the user to specify which options should be inherited. e.g.,
class InheritingJob
extend Resque::Plugins::Retry
@retry_exceptions = [MyException]
@inherited_options = [:retry_exceptions]
end
What do you think? If it sounds reasonable the implementation is pretty straightforward.
At work, we are using a
ResqueBaseclass that all of our Resque jobs derive from. It would be great to be able to configure some resque-retry information there, so that we can have "defaults" that all of our resque jobs automatically inherit, but can override if desired.Either (A) we automatically inherit more resque-retry options (but I think this is a bit of a breaking change). Or (B) we add the ability for the user to specify which options should be inherited. e.g.,
What do you think? If it sounds reasonable the implementation is pretty straightforward.