| Server IP : 138.197.107.151 / Your IP : 216.73.216.170 Web Server : Apache/2.4.58 (Ubuntu) System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : wpbetasites_mrakzqskir ( 1022) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/3492927/root/usr/lib/python3/dist-packages/botocore/retries/__pycache__/ |
Upload File : |
�
P��e� � �$ � d Z ddlZ G d� d� Zy)zRetry quota implementation.
� Nc �8 � e Zd ZdZedfd�Zd� Zd� Zed� � Zy)�
RetryQuotai� Nc �Z � || _ || _ |�t j � }|| _ y �N)�
_max_capacity�_available_capacity� threading�Lock�_lock)�self�initial_capacity�locks �8/usr/lib/python3/dist-packages/botocore/retries/quota.py�__init__zRetryQuota.__init__ s* � �-���#3�� ��<��>�>�#�D���
� c � � | j 5 || j kD r
ddd� y| xj |z c_ ddd� y# 1 sw Y yxY w)z�Attempt to aquire a certain amount of capacity.
If there's not sufficient amount of capacity available, ``False``
is returned. Otherwise, ``True`` is returned, which indicates that
capacity was successfully allocated.
NFT)r r )r �capacity_amounts r �acquirezRetryQuota.acquire sQ � � �Z�Z� ���!9�!9�9�� � �
�$�$��7�$�� � � �s �A�A�Ac �� � | j | j k( ry| j 5 t | j | j z
|� }| xj |z
c_ ddd� y# 1 sw Y yxY w)z�Release capacity back to the retry quota.
The capacity being released will be truncated if necessary
to ensure the max capacity is never exceeded.
N)r r r �min)r r �amounts r �releasezRetryQuota.release"