code: def size(self):
          
  
          if self.id.endswith("/"):
              return sum(Queue(q).size() for q in self.get_known_subqueues())
  
          # ZSET
          if self.is_sorted:
              return context.connections.redis.zcard(self.redis_key)
          # SET
          elif self.is_set:
              return context.connections.redis.scard(self.redis_key)
          # LIST
          else:
              return context.connections.redis.llen(self.redis_key)
docs: Returns the total number of queued jobs on the queue