File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/zk_concurrency.cpython-310.pyc
Back
o ;j�, � @ s d Z ddlZddlZz3ddlmZ ddlZddlZddlZddl Zddl mZmZ ddl mZ G dd� dejjj�ZdZW n eyH d ZY nw d Zdd� Zdd d�Z ddd�Z ddd�Z ddd�Z ddd�ZdS )a� Concurrency controls in zookeeper ========================================================================= :depends: kazoo :configuration: See :py:mod:`salt.modules.zookeeper` for setup instructions. This module allows you to acquire and release a slot. This is primarily useful for ensureing that no more than N hosts take a specific action at once. This can also be used to coordinate between masters. � N)�gethostname)�CancelledError�NoNodeError)�ForceRetryErrorc @ s&