code: def set_system_lock(cls, redis, name, timeout):
          
  
          pipeline = redis.pipeline()
          pipeline.zadd(name, SYSTEM_LOCK_ID, time.time() + timeout)
          pipeline.expire(name, timeout + 10)  # timeout plus buffer for troubleshooting
          pipeline.execute()
docs: Set system lock for the semaphore.
  
          Sets a system lock that will expire in timeout seconds. This
          overrides all other locks. Existing locks cannot be renewed
          and no new locks will be permitted until the system lock
          expires.
  
          Arguments:
              redis: Redis client
              name: Name of lock. Used as ZSET key.
              timeout: Timeout in seconds for system lock