lib/resque/worker.rb
def working_on(job)
      data = encode \
        :queue   => job.queue,
        :run_at  => Time.now.utc.iso8601,
        :payload => job.payload
      with_retries do
        redis.set("worker:#{self}", data)
      end
    end
# Given a job, tells Redis we're working on it. Useful for seeing
# what workers are doing and when.
Given a job, tells Redis we're working on it. Useful for seeing
what workers are doing and when.
Given a job tells Redis we ' re working on it . Useful for seeing what workers are doing and when .
def working_on(job)
      data = encode \
        :queue   => job.queue,
        :run_at  => Time.now.utc.iso8601,
        :payload => job.payload
      with_retries do
        redis.set("worker:#{self}", data)
      end
    end
def working_on ( job ) data = encode :queue => job . queue , :run_at => Time . now . utc . iso8601 , :payload => job . payload with_retries do redis . set ( "worker:#{self}" , data ) end end
Given a job, tells Redis we're working on it.
Given a job tells Redis we ' re working on it .
job