Class: RRRSpec::Server::WorkerRunner
- Inherits:
-
Object
- Object
- RRRSpec::Server::WorkerRunner
- Defined in:
- lib/rrrspec/server/worker_runner.rb
Constant Summary collapse
- CANCEL_POLLING =
10
- TIMEOUT_EXITCODE =
42
Instance Attribute Summary collapse
-
#current_taskset ⇒ Object
readonly
Returns the value of attribute current_taskset.
-
#internal_status ⇒ Object
readonly
Returns the value of attribute internal_status.
Instance Method Summary collapse
-
#initialize(worker) ⇒ WorkerRunner
constructor
A new instance of WorkerRunner.
- #work_loop ⇒ Object
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_taskset ⇒ Object (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_status ⇒ Object (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_loop ⇒ Object
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 |