Class: Workerholic::Starter

Inherits:
Object
  • Object
show all
Defined in:
lib/workerholic/starter.rb

Class Method Summary collapse

Class Method Details

.kill_memory_tracker_threadObject



14
15
16
17
# File 'lib/workerholic/starter.rb', line 14

def self.kill_memory_tracker_thread
  @thread.kill
  StatsStorage.delete_memory_stats
end

.options=(opts = {}) ⇒ Object



3
4
5
# File 'lib/workerholic/starter.rb', line 3

def self.options=(opts={})
  @options = opts
end

.startObject



7
8
9
10
11
12
# File 'lib/workerholic/starter.rb', line 7

def self.start
  apply_options
  load_app
  track_memory_usage_and_expire_job_stats
  launch
end