class Resque::ThrottledJob
Constants
- THROTTLE_DEFAULTS
Public Class Methods
can_run_every()
click to toggle source
# File lib/resque/throttled_job.rb, line 26 def self.can_run_every throttle_settings[:can_run_every] end
disabled()
click to toggle source
# File lib/resque/throttled_job.rb, line 30 def self.disabled throttle_settings[:disabled] end
identifier(*args)
click to toggle source
# File lib/resque/throttled_job.rb, line 19 def self.identifier(*args) end
key(*args)
click to toggle source
# File lib/resque/throttled_job.rb, line 22 def self.key(*args) ['resque-throttle', self.to_s, identifier(*args)].compact.join(":") end
throttle(args = {})
click to toggle source
# File lib/resque/throttled_job.rb, line 15 def self.throttle(args = {}) throttle_settings.merge!(args) end
throttle_settings()
click to toggle source
# File lib/resque/throttled_job.rb, line 11 def self.throttle_settings @throttle_settings ||= THROTTLE_DEFAULTS.dup end