class Worker::Process

Worker::Process

Public Instance Methods

id() click to toggle source
# File lib/spark/worker/worker.rb, line 145
def id
  ::Process.pid
end

Private Instance Methods

before_start() click to toggle source
# File lib/spark/worker/worker.rb, line 151
def before_start
  $PROGRAM_NAME = 'RubySparkWorker'
end
kill_worker() click to toggle source
# File lib/spark/worker/worker.rb, line 155
def kill_worker
  Process.exit(false)
end