Class: SolidQueue::Processes::Base
Instance Method Summary
collapse
#handle_thread_error, #wrap_in_app_executor
#wake_up
Methods included from Procline
#procline
Instance Method Details
#hostname ⇒ Object
13
14
15
|
# File 'lib/solid_queue/processes/base.rb', line 13
def hostname
@hostname ||= Socket.gethostname.force_encoding(Encoding::UTF_8)
end
|
#kind ⇒ Object
9
10
11
|
# File 'lib/solid_queue/processes/base.rb', line 9
def kind
self.class.name.demodulize
end
|
21
22
23
|
# File 'lib/solid_queue/processes/base.rb', line 21
def metadata
{}
end
|
#pid ⇒ Object
17
18
19
|
# File 'lib/solid_queue/processes/base.rb', line 17
def pid
@pid ||= ::Process.pid
end
|