+
    }i                        ^ RI Ht ^ RIHtHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ]'       d   ^ RIHt ^ R	IHt ]
! R
4       ! R R]]4      4       tR# )    )annotations)ABCabstractmethod)	timedelta)TYPE_CHECKING)
docs_group)RequestLoader)ProcessedRequest)Sequence)RequestzRequest loadersc            
          ] tR t^tRt]R R l4       t]RR/R R ll4       tRRRR	R
]! ^R7      RRRR/R R llt	]RR/R R ll4       t
RtR# )RequestManagerzlBase class that extends `RequestLoader` with the capability to enqueue new requests and reclaim failed ones.c                   V ^8  d   QhRR/# )   returnNone )formats   "z/Users/ahmad/.openclaw/workspace/my-crawler/.venv/lib/python3.14/site-packages/crawlee/request_loaders/_request_manager.py__annotate__RequestManager.__annotate__   s     f fD f    c                   "   R# 5i)zWRemove persistent state either from the Apify Cloud storage or from the local database.Nr   )selfs   &r   dropRequestManager.drop           	forefrontFc               $    V ^8  d   QhRRRRRR/# )r   requestzstr | Requestr   boolr   r
   r   )r   s   "r   r   r      s(       	
 
r   c                  "   R# 5i)a~  Add a single request to the manager and store it in underlying resource client.

Args:
    request: The request object (or its string representation) to be added to the manager.
    forefront: Determines whether the request should be added to the beginning (if True) or the end (if False)
        of the manager.

Returns:
    Information about the request addition to the manager.
Nr   r   r!   r   s   &&$r   add_requestRequestManager.add_request   r   r   
batch_sizei  wait_time_between_batches)seconds!wait_for_all_requests_to_be_added)wait_for_all_requests_to_be_added_timeoutNc               4    V ^8  d   QhRRRRRRRRR	RR
RRR/# )r   requestszSequence[str | Request]r   r"   r'   intr(   r   r*   r+   ztimedelta | Noner   r   r   )r   s   "r   r   r   +   sQ     9 9)9 	9
 9 $-9 ,09 4D9 
9r   c                  "   \         \        ,          ! 4       pV F.  pV P                  WR7      G Rj  xL
 p	VP                  V	4       K0  	  R#  L5i)a  Add requests to the manager in batches.

Args:
    requests: Requests to enqueue.
    forefront: If True, add requests to the beginning of the queue.
    batch_size: The number of requests to add in one batch.
    wait_time_between_batches: Time to wait between adding batches.
    wait_for_all_requests_to_be_added: If True, wait for all requests to be added before returning.
    wait_for_all_requests_to_be_added_timeout: Timeout for waiting for all requests to be added.
)r   N)listr
   r%   append)
r   r-   r   r'   r(   r*   r+   processed_requestsr!   processed_requests
   &&$$$$$   r   add_requestsRequestManager.add_requests+   sI     * ""235G&*&6&6w&6&T T%%&78   Ts   1AAAc               $    V ^8  d   QhRRRRRR/# )r   r!   r   r   r"   r   zProcessedRequest | Noner   )r   s   "r   r   r   F   s"      W D Ul r   c                  "   R# 5i)zReclaims a failed request back to the source, so that it can be returned for processing later again.

It is possible to modify the request data by supplying an updated request as a parameter.
Nr   r$   s   &&$r   reclaim_requestRequestManager.reclaim_requestE   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   r%   r   r4   r8   __static_attributes__r   r   r   r   r      s    vf f   	 "9  	9
 9 09/C9 389 GK94 5  r   r   N)
__future__r   abcr   r   datetimer   typingr   crawlee._utils.docsr   'crawlee.request_loaders._request_loaderr	   crawlee.storage_clients.modelsr
   collections.abcr   crawlee._requestr   r   r   r   r   <module>rI      sF    " #    * A ;(( 8]C 8 8r   