Module: Rekiq

Defined in:
lib/rekiq.rb,
lib/rekiq/worker.rb,
lib/rekiq/version.rb,
lib/rekiq/contract.rb,
lib/rekiq/scheduler.rb,
lib/rekiq/validator.rb,
lib/rekiq/exceptions.rb,
lib/rekiq/configuration.rb,
lib/rekiq/middleware/work_overseer.rb

Defined Under Namespace

Modules: Middleware, Validator, Worker Classes: CancelMethodInvocationError, CancelMethodMissing, Configuration, Contract, InvalidAttributeValue, Scheduler, SidekiqNotLoaded, StandardError

Constant Summary collapse

VERSION =
'1.2.0'

Class Method Summary collapse

Class Method Details

.configurationObject



44
45
46
# File 'lib/rekiq/configuration.rb', line 44

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



39
40
41
42
# File 'lib/rekiq/configuration.rb', line 39

def configure
  yield configuration
  configuration.validate!
end

.reset_configurationObject



48
49
50
# File 'lib/rekiq/configuration.rb', line 48

def reset_configuration
  @configuration = Configuration.new
end