def dequeue_task(timeout)
      if timeout < 0
        task_key = RRRSpec.redis.lpop(RRRSpec.make_key(key, 'task_queue'))
      else
        _, task_key = RRRSpec.redis.blpop(RRRSpec.make_key(key, 'task_queue'), timeout)
      end
      return nil unless task_key
      Task.new(task_key)
    end
def dequeue_task(timeout)
      if timeout < 0
        task_key = RRRSpec.redis.lpop(RRRSpec.make_key(key, 'task_queue'))
      else
        _, task_key = RRRSpec.redis.blpop(RRRSpec.make_key(key, 'task_queue'), timeout)
      end
      return nil unless task_key
      Task.new(task_key)
    end
Public: Dequeue the task from the task_queue.

 Returns a task or nil if timeouts