Module: Skiplock
- Defined in:
- lib/skiplock.rb,
lib/skiplock/job.rb,
lib/skiplock/cron.rb,
lib/skiplock/patch.rb,
lib/skiplock/worker.rb,
lib/skiplock/counter.rb,
lib/skiplock/manager.rb,
lib/skiplock/version.rb,
lib/skiplock/extension.rb,
lib/generators/skiplock/install_generator.rb
Defined Under Namespace
Modules: Extension, Patch
Classes: Counter, Cron, InstallGenerator, Job, Manager, Worker
Constant Summary
collapse
- DEFAULT_CONFIG =
{ 'graceful_shutdown' => 15, 'min_threads' => 1, 'max_threads' => 10, 'max_retries' => 20, 'log_file' => 'skiplock.log', 'log_level' => 'info', 'log_count' => 5, 'log_size' => 10485760, 'namespace' => nil, 'notification' => 'custom', 'extensions' => false, 'purge_completion' => true, 'queues' => { 'default' => 100, 'mailers' => 999 }, 'workers' => 0 }.freeze
- VERSION =
Version = '1.1.8'
Class Method Summary
collapse
Class Method Details
.logger ⇒ Object
20
21
22
|
# File 'lib/skiplock.rb', line 20
def self.logger
@logger
end
|
.logger=(l) ⇒ Object
16
17
18
|
# File 'lib/skiplock.rb', line 16
def self.logger=(l)
@logger = l
end
|
.namespace ⇒ Object
28
29
30
|
# File 'lib/skiplock.rb', line 28
def self.namespace
@namespace || ''
end
|
.namespace=(n) ⇒ Object
24
25
26
|
# File 'lib/skiplock.rb', line 24
def self.namespace=(n)
@namespace = n
end
|
.on_error(&block) ⇒ Object
32
33
34
35
36
|
# File 'lib/skiplock.rb', line 32
def self.on_error(&block)
@on_errors ||= []
@on_errors << block
block
end
|
.on_errors ⇒ Object
38
39
40
|
# File 'lib/skiplock.rb', line 38
def self.on_errors
@on_errors || []
end
|
.table_name_prefix ⇒ Object
42
43
44
|
# File 'lib/skiplock.rb', line 42
def self.table_name_prefix
'skiplock.'
end
|