Class: RRRSpec::Server::WorkerRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/rrrspec/server/worker_runner.rb

Constant Summary collapse

CANCEL_POLLING =
10
TIMEOUT_EXITCODE =
42

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(worker) ⇒ WorkerRunner

Returns a new instance of WorkerRunner.



9
10
11
# File 'lib/rrrspec/server/worker_runner.rb', line 9

def initialize(worker)
  @worker = worker
end

Instance Attribute Details

#current_tasksetObject (readonly)

Returns the value of attribute current_taskset.



7
8
9
# File 'lib/rrrspec/server/worker_runner.rb', line 7

def current_taskset
  @current_taskset
end

#internal_statusObject (readonly)

Returns the value of attribute internal_status.



7
8
9
# File 'lib/rrrspec/server/worker_runner.rb', line 7

def internal_status
  @internal_status
end

Instance Method Details

#work_loopObject



13
14
15
16
17
18
# File 'lib/rrrspec/server/worker_runner.rb', line 13

def work_loop
  loop do
    DispatcherQueue.notify
    work
  end
end