lib/resque/worker.rb
# Registers ourself as a worker. Useful when entering the worker
# lifecycle on startup.
Registers ourself as a worker. Useful when entering the worker
lifecycle on startup.
Registers ourself as a worker . Useful when entering the worker lifecycle on startup .
def register_worker
      with_retries do
        redis.pipelined do
          redis.sadd(:workers, self)
          redis.set("worker:#{self}:queues", @queues.join(","))
        end
      end
    end
def register_worker with_retries do redis . pipelined do redis . sadd ( :workers , self ) redis . set ( "worker:#{self}:queues" , @queues . join ( "," ) ) end end end
Registers ourself as a worker.
Registers ourself as a worker .