Sha256: c6e3caf76cd8f140f5898f82e79812181eea5339197ea7dbb20c2e37a6ff19f0
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
# stdlib require 'ostruct' require 'singleton' require 'socket' require 'time' # gems require 'ice_cube' require 'sidekiq' require 'celluloid/current' # internal require 'sidetiq/config' require 'sidetiq/logging' require 'sidetiq/api' require 'sidetiq/subclass_tracking' require 'sidetiq/clock' require 'sidetiq/handler' require 'sidetiq/lock/meta_data' require 'sidetiq/lock/redis' require 'sidetiq/schedule' require 'sidetiq/schedulable' require 'sidetiq/version' # middleware require 'sidetiq/middleware/history' # actor topology require 'sidetiq/actor' require 'sidetiq/actor/clock' require 'sidetiq/actor/handler' require 'sidetiq/supervisor' # The Sidetiq namespace. module Sidetiq include Sidetiq::API # Expose all instance methods as singleton methods. extend self class << self # Public: Setter for the Sidetiq logger. attr_writer :logger end # Public: Reader for the Sidetiq logger. # # Defaults to `Sidekiq.logger`. def logger @logger ||= Sidekiq.logger end # Public: Returns the Sidetiq::Clock actor. def clock Sidetiq::Supervisor.clock end # Public: Returns a Sidetiq::Handler worker. def handler Sidetiq::Supervisor.handler end end if Sidekiq.server? Sidetiq::Supervisor.run! end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sidetiq-0.7.2 | lib/sidetiq.rb |
sidetiq-0.7.1 | lib/sidetiq.rb |
sidetiq-0.7.0 | lib/sidetiq.rb |