lib/resque/plugins/retry.rb
# Test if the retry criteria is valid
#
# @param [Exception] exception
# @param [Array] args job arguments
# @return [Boolean]
#
# @api public
Test if the retry criteria is valid
Test if the retry criteria is valid
def retry_criteria_valid?(exception, *args)
        return false if retry_limit_reached?
        should_retry = retry_exception?(exception)
        retry_criteria_checks.each do |criteria_check|
          should_retry ||= !!instance_exec(exception, *args, &criteria_check)
        end
        should_retry
      end
def retry_criteria_valid? ( exception , * args ) return false if retry_limit_reached? should_retry = retry_exception? ( exception ) retry_criteria_checks . each do | criteria_check | should_retry ||= ! ! instance_exec ( exception , * args , & criteria_check ) end should_retry end
Test if the retry criteria is valid
Test if the retry criteria is valid
# if the retry limit was reached, dont bother checking anything else. # We always want to retry if the exception matches. # call user retry criteria check blocks.
None
Boolean
exception
<not_specific>
args
<not_specific>
<not_specific>
args job arguments
args job arguments
api
None