lib/resque/worker.rb
def state
      with_retries do
        redis.exists("worker:#{self}") ? :working : :idle
      end
    end
# Returns a symbol representing the current worker state,
# which can be either :working or :idle
Returns a symbol representing the current worker state,
which can be either :working or :idle
Returns a symbol representing the current worker state which can be either : working or : idle
def state
      with_retries do
        redis.exists("worker:#{self}") ? :working : :idle
      end
    end
def state with_retries do redis . exists ( "worker:#{self}" ) ? :working : :idle end end
Returns a symbol representing the current worker state,
which can be either :working or :idle
Returns a symbol representing the current worker state which can be either : working or : idle