lib/resque/plugins/retry.rb
# Used to perform retry criteria check blocks under the job instance's context
#
# @return [Object] return value of the criteria check
#
# @api private
Used to perform retry criteria check blocks under the job instance's context
Used to perform retry criteria check blocks under the job instance ' s context
def instance_exec(*args, &block)
        mname = "__instance_exec_#{Thread.current.object_id.abs}"
        class << self; self end.class_eval{ define_method(mname, &block) }
        begin
          ret = send(mname, *args)
        ensure
          class << self; self end.class_eval{ undef_method(mname) } rescue nil
        end
        ret
      end
def instance_exec ( * args , & block ) mname = "__instance_exec_#{Thread.current.object_id.abs}" class << self ; self end . class_eval { define_method ( mname , & block ) } begin ret = send ( mname , * args ) ensure class << self ; self end . class_eval { undef_method ( mname ) } rescue nil end ret end
Used to perform retry criteria check blocks under the job instance's context
Used to perform retry criteria check blocks under the job instance ' s context
return value of the criteria check
return value of the criteria check
Object
args
<not_specific>
block
<not_specific>
api
None