| Server IP : 65.1.209.187 / Your IP : 216.73.216.144 Web Server : nginx/1.24.0 System : Linux ip-172-31-5-206 6.14.0-1015-aws #15~24.04.1-Ubuntu SMP Tue Sep 23 22:44:48 UTC 2025 x86_64 User : ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /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"