Class: Procrastinator::Scheduler::WorkProxy
- Inherits:
-
Object
- Object
- Procrastinator::Scheduler::WorkProxy
- Includes:
- DaemonWorking, SerialWorking, ThreadedWorking
- Defined in:
- lib/procrastinator/scheduler.rb
Overview
DSL grammar object to enable chaining #work with the three work modes.
Constant Summary
Constants included from DaemonWorking
DaemonWorking::DEFAULT_PID_DIR, DaemonWorking::PID_EXT
Constants included from ThreadedWorking
Instance Attribute Summary collapse
-
#workers ⇒ Object
readonly
Returns the value of attribute workers.
Instance Method Summary collapse
-
#initialize(workers, config) ⇒ WorkProxy
constructor
A new instance of WorkProxy.
Methods included from DaemonWorking
#daemonized!, halt!, normalize_pid, running?
Methods included from ThreadedWorking
Methods included from SerialWorking
Constructor Details
#initialize(workers, config) ⇒ WorkProxy
Returns a new instance of WorkProxy.
402 403 404 405 |
# File 'lib/procrastinator/scheduler.rb', line 402 def initialize(workers, config) @workers = workers @config = config end |
Instance Attribute Details
#workers ⇒ Object (readonly)
Returns the value of attribute workers.
400 401 402 |
# File 'lib/procrastinator/scheduler.rb', line 400 def workers @workers end |