Method: Kthxbye#workers
- Defined in:
- lib/kthxbye.rb
#workers ⇒ Object
Returns all workers registered with Kthxbye by the Kthxbye::Worker class. Special note: Workers are only registered once you call #run on the worker. You may also run #register_worker on the worker to manually register it, but this also occurs once the worker is run so there is no need to run this manually.
179 180 181 182 |
# File 'lib/kthxbye.rb', line 179 def workers workers = redis.smembers( :workers ) workers.map {|x| Worker.find( x ) } end |