module Sidetiq
The Sidetiq namespace.
Attributes
config[W]
Public: Sets the configuration used by Sidetiq.
logger[W]
Public: Setter for the Sidetiq logger.
Public Class Methods
config()
click to toggle source
Public: Returns the current configuration used by Sidetiq.
# File lib/sidetiq/config.rb, line 21 def config @config ||= OpenStruct.new end
configure() { |config| ... }
click to toggle source
Public: Configuration wrapper for block configurations.
Examples
Sidetiq.configure do |config| config.resolution = 0.2 end
Yields the configuration OpenStruct currently set. Returns nothing.
# File lib/sidetiq/config.rb, line 16 def configure yield config end
Public Instance Methods
clock()
click to toggle source
Public: Returns the Sidetiq::Clock actor.
# File lib/sidetiq.rb, line 54 def clock Sidetiq::Supervisor.clock end
handler()
click to toggle source
Public: Returns a Sidetiq::Handler worker.
# File lib/sidetiq.rb, line 59 def handler Sidetiq::Supervisor.handler end
logger()
click to toggle source
Public: Reader for the Sidetiq logger.
Defaults to `Sidekiq.logger`.
# File lib/sidetiq.rb, line 49 def logger @logger ||= Sidekiq.logger end