Sha256: ead6cc05cc261fece6913b3ac8bc29ba8c736e1e90092534c34b886a2e924a7a
Contents?: true
Size: 513 Bytes
Versions: 2
Compression:
Stored size: 513 Bytes
Contents
require 'resque' require 'resque_scheduler' require 'resque/plugins/retry' require 'resque/plugins/exponential_backoff' require 'resque/failure/multiple_with_retry_suppression' class Object 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onyx-resque-retry-0.1.3 | lib/resque-retry.rb |
onyx-resque-retry-0.1.2 | lib/resque-retry.rb |