code: def is_paused(self):
          
          root_is_paused = False
          if self.root_id != self.id:
              root_is_paused = context.connections.redis.sismember(redis_key("paused_queues"), self.root_id)
  
          return root_is_paused or context.connections.redis.sismember(redis_key("paused_queues"), self.id)
docs: Returns wether the queue is paused or not.
              Warning: this does NOT ensure that the queue was effectively added to
              the set of paused queues. See the 'paused_queues_refresh_interval' option.