Class: SolidQueue::Processes::Base

Inherits:
Object
  • Object
show all
Includes:
AppExecutor, Callbacks, Interruptible, Procline, Registrable
Defined in:
lib/solid_queue/processes/base.rb

Direct Known Subclasses

Dispatcher, Supervisor, Worker

Instance Method Summary collapse

Methods included from AppExecutor

#handle_thread_error, #wrap_in_app_executor

Methods included from Interruptible

#wake_up

Methods included from Procline

#procline

Instance Method Details

#hostnameObject



13
14
15
# File 'lib/solid_queue/processes/base.rb', line 13

def hostname
  @hostname ||= Socket.gethostname.force_encoding(Encoding::UTF_8)
end

#kindObject



9
10
11
# File 'lib/solid_queue/processes/base.rb', line 9

def kind
  self.class.name.demodulize
end

#metadataObject



21
22
23
# File 'lib/solid_queue/processes/base.rb', line 21

def 
  {}
end

#pidObject



17
18
19
# File 'lib/solid_queue/processes/base.rb', line 17

def pid
  @pid ||= ::Process.pid
end