+
    –°³j±Á  ã                   ó  € ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIH	t	H
t
 ^ RIHt ^ RIHt ^ RIHtHtHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHtHt ^R
IHtHtH t H!t!H"t"H#t#H$t$H%t%H&t& ^RI'H(t(H)t) . R;Ot*]PV                  ! ],4      t-R<R lt.]t/  ! R R]	4      t0 ! R R4      t1]! RRRR7       ! R R4      4       t2]! RRRR7       ! R R4      4       t3 ! R R4      t4 ! R R4      t5R R lt6 ! R  R!]	4      t7 ! R" R#]74      t8 ! R$ R%]4      t9 ! R& R'4      t: ! R( R)]	4      t; ! R* R+];4      t<R, R- lt= ! R. R/4      t> ! R0 R14      t? ! R2 R34      t@ ! R4 R54      tA ! R6 R]!4      tBR7 R8 ltCR9 R: ltDR# )=é    N)ÚABCÚabstractmethod)ÚCallable)Ú	dataclass)ÚdatetimeÚ	timedeltaÚtimezone)ÚEnum)ÚAny©ÚStore)Úconstruct_and_record_rdzv_eventÚ	NodeState)	ÚRendezvousClosedErrorÚRendezvousErrorÚRendezvousGracefulExitErrorÚRendezvousHandlerÚRendezvousInfoÚRendezvousParametersÚRendezvousStateErrorÚRendezvousStoreInfoÚRendezvousTimeoutError)Ú_delayÚ_PeriodicTimerÚRendezvousBackendÚRendezvousTimeoutÚRendezvousSettingsÚDynamicRendezvousHandlerc                 ó˜   € \        \        P                  ! 4       4      V 8”  d'   \        P                  ! 4       V ,          P                  # R # )Úno_method_name)ÚlenÚinspectÚstackÚfunction)Údepths   &Úx/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torch/distributed/elastic/rendezvous/dynamic_rendezvous.pyÚget_method_namer'   4   s/   € Ü
Œ7�=Š=‹?Ó˜eÔ#Ü�}Š}‹˜uÕ%×.Ñ.Ð.Ùó    c                   ó†   a € ] tR t^>t o Rt]]V 3R lR l4       4       t]V 3R lR l4       t]R
V 3R lR ll4       t	R	t
V tR# )r   z4Represent a backend that holds the rendezvous state.c                ó    <€ V ^8„  d   QhRS[ /# ©é   Úreturn©Ústr)ÚformatÚ__classdict__s   "€r&   Ú__annotate__ÚRendezvousBackend.__annotate__C   s   ø€ ÷ +ñ +‘cñ +r(   c                ó   € R# )zGet the name of the backend.N© ©Úselfs   &r&   ÚnameÚRendezvousBackend.nameA   ó   ‚ r(   c                óD   <€ V ^8„  d   QhRS[ S[S[3,          R,          /# ©r,   r-   N)ÚtupleÚbytesÚToken)r0   r1   s   "€r&   r2   r3   G   s"   ø€ ÷ ñ ™5¡© Õ.°Õ5ñ r(   c                ó   € R# )a8  Get the rendezvous state.

Returns:
    A tuple of the encoded rendezvous state and its fencing token or
    ``None`` if no state is found in the backend.

Raises:
    RendezvousConnectionError:
        The connection to the backend has failed.
    RendezvousStateError:
        The rendezvous state is corrupt.
Nr5   r6   s   &r&   Ú	get_stateÚRendezvousBackend.get_stateF   r:   r(   Nc          	      ób   <€ V ^8„  d   QhRS[ RS[R,          RS[S[ S[S[3,          R,          /# )r,   ÚstateÚtokenNr-   )r>   r?   r=   Úbool)r0   r1   s   "€r&   r2   r3   V   s:   ø€ ÷ "ñ "Ùð"Ù#(¨4¥<ð"á	‰u‘e™TÐ!Õ	" TÕ	)ñ"r(   c                ó   € R# )a¸  Set the rendezvous state.

The new rendezvous state is set conditionally:

  - If the specified ``token`` matches the fencing token stored in the
    backend, the state will be updated. The new state will be returned
    to the caller along with its fencing token.
  - If the specified ``token`` does not match the fencing token stored
    in the backend, the state won't be updated; instead the existing
    state along with its fencing token will be returned to the caller.
  - If the specified ``token`` is ``None``, the new state will be set
    only if there is no existing state in the backend. Either the new
    state or the existing state along with its fencing token will be
    returned to the caller.

Args:
    state:
        The encoded rendezvous state.
    token:
        An optional fencing token that was retrieved by a previous call
        to :py:meth:`get_state` or ``set_state()``.

Returns:
    A tuple of the serialized rendezvous state, its fencing token, and
    a boolean value indicating whether our set attempt succeeded.

Raises:
    RendezvousConnectionError:
        The connection to the backend has failed.
    RendezvousStateError:
        The rendezvous state is corrupt.
Nr5   )r7   rD   rE   s   &&&r&   Ú	set_stateÚRendezvousBackend.set_stateU   r:   r(   r5   ©N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úpropertyr   r8   rA   rH   Ú__static_attributes__Ú__classdictcell__©r1   s   @r&   r   r   >   sO   ø‡ € Ù>àØ÷+ó ó ð+ð ÷ó ðð ÷"ñ "ó ö"r(   c                   ó$  a € ] tR t^{t o Rt]! ^ 4      tR]! RR7      R]! ^R7      R]! ^R7      R]! ^R7      /tRV 3R	 lR
 llt]	V 3R lR l4       t
]	V 3R lR l4       t]	V 3R lR l4       t]	V 3R lR l4       tV 3R lR ltV 3R ltRtV tR# )r   aJ  Hold the timeout configuration of a rendezvous.

Args:
    join:
        The time within which the rendezvous is expected to complete.
    last_call:
        An additional wait amount before completing the rendezvous once the
        rendezvous has the minimum number of required participants.
    close:
        The time within which the rendezvous is expected to close after a
        call to :py:meth:`RendezvousHandler.set_closed` or
        :py:meth:`RendezvousHandler.shutdown`.
    heartbeat:
        The time within which a keep-alive heartbeat is expected to
        complete.
ÚjoiniX  ©ÚsecondsÚ	last_callÚcloseÚ	heartbeatNc          
      ón   <€ V ^8„  d   QhRS[ R,          RS[ R,          RS[ R,          RS[ R,          RR/# )r,   rU   NrX   rY   rZ   r-   ©r   )r0   r1   s   "€r&   r2   ÚRendezvousTimeout.__annotate__›   sQ   ø€ ÷ 	
ñ 	
á˜$Õð	
ñ ˜tÕ#ð	
ñ ˜4Õð		
ñ
 ˜tÕ#ð	
ð 
ñ	
r(   c                ó,   € V P                  WW4R 7       R# ))rU   rX   rY   rZ   N)Ú_set_timeouts)r7   rU   rX   rY   rZ   s   &&&&&r&   Ú__init__ÚRendezvousTimeout.__init__›   s   € ð 	×ÑØ°%ð 	ö 	
r(   c                ó    <€ V ^8„  d   QhRS[ /# r+   r\   )r0   r1   s   "€r&   r2   r]   §   s   ø€ ÷ ñ ‘iñ r(   c                ó   € V P                   # )zGet the join timeout.)Ú_joinr6   s   &r&   rU   ÚRendezvousTimeout.join¦   s   € ð �z‰zÐr(   c                ó    <€ V ^8„  d   QhRS[ /# r+   r\   )r0   r1   s   "€r&   r2   r]   ¬   ó   ø€ ÷ ñ ™9ñ r(   c                ó   € V P                   # )zGet the last call timeout.)Ú
_last_callr6   s   &r&   rX   ÚRendezvousTimeout.last_call«   ó   € ð �‰Ðr(   c                ó    <€ V ^8„  d   QhRS[ /# r+   r\   )r0   r1   s   "€r&   r2   r]   ±   s   ø€ ÷ ñ ‘yñ r(   c                ó   € V P                   # )zGet the close timeout.)Ú_closer6   s   &r&   rY   ÚRendezvousTimeout.close°   ó   € ð �{‰{Ðr(   c                ó    <€ V ^8„  d   QhRS[ /# r+   r\   )r0   r1   s   "€r&   r2   r]   ¶   rg   r(   c                ó   € V P                   # )z%Get the keep-alive heartbeat timeout.)Ú
_heartbeatr6   s   &r&   rZ   ÚRendezvousTimeout.heartbeatµ   rk   r(   c                ó.   <€ V ^8„  d   QhRS[ R,          /# )r,   ÚtimeoutsNr\   )r0   r1   s   "€r&   r2   r]   º   s   ø€ ÷ /ñ /©	°DÕ(8ñ /r(   c                óÒ   € VP                  4        FR  w  r#Vf   V P                  V,          pW0P                  8:  d   \        RV RV R24      h\	        V RV,           V4       KT  	  R # )NzThe z
 timeout (z) must be positive.Ú_)ÚitemsÚ_DEFAULT_TIMEOUTSÚ_ZEROÚ
ValueErrorÚsetattr)r7   rv   r8   Útimeouts   &,  r&   r_   ÚRendezvousTimeout._set_timeoutsº   s_   € Ø%Ÿ^™^Ö-‰MˆDØŠØ×0Ñ0°Õ6�ØŸ*™*Ô$Ü  4¨ v¨Z¸°yÐ@SÐ!TÓUÐUÜ�D˜# �* gÖ.ó .r(   c                óJ   <€ V ^8„  d   Qh/ S[ ;R&   S[ ;R&   S[ ;R&   S[ ;R&   # )r,   rd   ri   rn   rs   r\   )r0   r1   s   "€r&   r2   r]   {   s9   ø‡ ‚ ñ6 Ññ7 ñ8 Ññ9 ñ: Ññ; ñ< Ñò= r(   r5   )NNNN)rK   rL   rM   rN   rO   r   r{   rz   r`   rP   rU   rX   rY   rZ   r_   Ú__annotate_func__rQ   rR   rS   s   @r&   r   r   {   s³   ø‡ € ññ" �a‹L€Eð 	‘	 #Ô&Ø‘Y rÔ*Ø‘ 2Ô&Ø‘Y qÔ)ð	Ð÷	
ò 	
ð ÷ó ðð ÷ó ðð ÷ó ðð ÷ó ð÷/ð /÷ ƒ r(   FT)ÚreprÚeqÚfrozenc                   ó0   a € ] tR t^Ãt o RtV 3R ltRtV tR# )r   aO  Hold the settings of the rendezvous.

Attributes:
    run_id:
        The run id of the rendezvous.
    min_nodes:
        The minimum number of nodes to admit to the rendezvous.
    max_nodes:
        The maximum number of nodes to admit to the rendezvous.
    timeout:
        The timeout configuration of the rendezvous.
    keep_alive_interval:
        The amount of time a node waits before sending a heartbeat to keep
        it alive in the rendezvous.
    keep_alive_max_attempt:
        The maximum number of failed heartbeat attempts after which a node
        is considered dead.
c                ób   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[;R&   # )r,   Úrun_idÚ	min_nodesÚ	max_nodesr~   Úkeep_alive_intervalÚkeep_alive_max_attempt)r/   Úintr   r   )r0   r1   s   "€r&   r2   ÚRendezvousSettings.__annotate__Ã   sP   ø‡ ‚ ñ* �Kñ+ ñ, �Nñ- ñ. �Nñ/ ñ0 Ññ1 ñ2 #Ñ"ñ3 ñ4  Ñò5 r(   r5   N)rK   rL   rM   rN   rO   r�   rQ   rR   rS   s   @r&   r   r   Ã   s   ø‡ € ñ÷ ƒ r(   )rƒ   Úorderr„   c                   óB   a € ] tR t^àt o RtV 3R lR ltV 3R ltRtV tR# )Ú	_NodeDesczúDescribe a node in the rendezvous.

Attributes:
    addr:
        The FQDN of the node or user specified local node address.
    pid:
        The id of the process in which the rendezvous handler runs.
    local_id:
        A process-wide unique id.
c                ó    <€ V ^8„  d   QhRS[ /# r+   r.   )r0   r1   s   "€r&   r2   Ú_NodeDesc.__annotate__ñ   s   ø€ ÷ 9ñ 9™#ñ 9r(   c                óR   € V P                    R V P                   R V P                   2# )rx   )ÚaddrÚpidÚlocal_idr6   s   &r&   Ú__repr__Ú_NodeDesc.__repr__ñ   s%   € Ø—)‘)�˜A˜dŸh™h˜Z q¨¯©¨Ð8Ð8r(   c                ó>   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   # )r,   r”   r•   r–   )r/   rŒ   )r0   r1   s   "€r&   r2   r’   à   s)   ø‡ ‚ ñ �Iñ ñ 
�Hñ ñ �Mò r(   r5   N)	rK   rL   rM   rN   rO   r—   r�   rQ   rR   rS   s   @r&   r�   r�   à   s   ø‡ € ñ	÷9ð 9÷# ƒ r(   r�   c                   óX   a € ] tR t^õt o RtV 3R lR ltR	V 3R lR lltV 3R ltRtV t	R# )
Ú_NodeDescGeneratorz­Generate node descriptors.

A node descriptor is a combination of an FQDN, a process id, and an auto-
incremented integer that uniquely identifies a node in the rendezvous.
c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   Ú_NodeDescGenerator.__annotate__ÿ   s   ø€ ÷ ñ ˜$ñ r(   c                óH   € \         P                  ! 4       V n        ^ V n        R# )r   N)Ú	threadingÚLockÚ_lockÚ	_local_idr6   s   &r&   r`   Ú_NodeDescGenerator.__init__ÿ   s   € Ü—^’^Ó%ˆŒ
ð ˆŽr(   Nc                ó4   <€ V ^8„  d   QhRS[ R,          RS[/# )r,   Ú
local_addrNr-   )r/   r�   )r0   r1   s   "€r&   r2   r�     s#   ø€ ÷ Pñ P¡3¨¥:ð P¹ñ Pr(   c                ó&  € V P                   ;_uu_ 4        V P                  pV ;P                  ^,          un        RRR4       \        T;'       g    \        P                  ! 4       \
        P                  ! 4       X4      #   + '       g   i     LM; i)é   N)r¡   r¢   r�   ÚsocketÚgetfqdnÚosÚgetpid)r7   r¥   r–   s   && r&   ÚgenerateÚ_NodeDescGenerator.generate  sW   € ð �Z�Z‹ZØ—~‘~ˆHà�NŠN˜aÕ�N÷ ô
 ˜×7Ð7¤v§~¢~Ó'7¼¿º»ÀhÓOÐO÷ �Zús   •&B Â B	c                óF   <€ V ^8„  d   Qh/ S[ P                  ;R&   S[;R&   # )r,   r¡   r¢   )rŸ   r    rŒ   )r0   r1   s   "€r&   r2   r�   õ   s"   ø‡ ‚ ñ �>‰>Ññ ñ �Nò r(   )r¢   r¡   rJ   )
rK   rL   rM   rN   rO   r`   r¬   r�   rQ   rR   rS   s   @r&   r›   r›   õ   s'   ø‡ € ñ÷ð ÷Pò P÷! ƒ r(   r›   c                   óB   a € ] tR tRt o RtV 3R lR ltV 3R ltRtV tR# )Ú_RendezvousStatei  a„  Hold the state of a rendezvous.

Attributes:
    round:
        The current round of the rendezvous.
    complete:
        A boolean value indicating whether the current round of the
        rendezvous is complete.
    deadline:
        The time at which the current round of the rendezvous will be
        considered complete if it is still waiting for nodes to join.
    closed:
        A boolean value indicating whether the rendezvous is closed.
    participants:
        A dictionary of the participants and their corresponding ranks.
    wait_list:
        A set of nodes that are waiting to participate in the next round of
        the rendezvous.
    redundancy_list:
        A set of nodes that are redundant in the current round and can join
        the next rendezvous without triggering re-rendezvous.
    last_heartbeats:
        A dictionary containing each node's last heartbeat time.
c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   Ú_RendezvousState.__annotate__3  s   ø€ ÷ "ñ "˜$ñ "r(   c                ó–   € ^ V n         RV n        RV n        RV n        / V n        \        4       V n        \        4       V n        / V n        R# )r   FN)	ÚroundÚcompleteÚdeadlineÚclosedÚparticipantsÚsetÚ	wait_listÚredundancy_listÚlast_heartbeatsr6   s   &r&   r`   Ú_RendezvousState.__init__3  sA   € ØˆŒ
ØˆŒØˆŒØˆŒØˆÔÜ›ˆŒÜ"›uˆÔØ!ˆÖr(   c                óÔ   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[R,          ;R&   S[;R&   S[S[S[ 3,          ;R&   S[S[,          ;R&   S[S[,          ;R&   S[S[S[3,          ;R	&   # )
r,   r´   rµ   Nr¶   r·   r¸   rº   r»   r¼   )rŒ   rF   r   Údictr�   r¹   )r0   r1   s   "€r&   r2   r²     s�   ø‡ ‚ ñ4 �Jñ5 ñ6 �Nñ7 ñ8 ˜�oÑñ9 ñ: �Lñ; ñ< ‘y¡#�~Õ&Ñ&ñ= ñ> ‘9�~Ññ? ñ@ ™•^Ñ#ñA ñB ™)¡XÐ-Õ.Ñ.òC r(   )r·   rµ   r¶   r¼   r¸   r»   r´   rº   N©	rK   rL   rM   rN   rO   r`   r�   rQ   rR   rS   s   @r&   r°   r°     s   ø‡ € ñ÷D"ð "÷G ƒ r(   r°   c                ó4   € V ^8„  d   QhR\         R\        RR/# )r,   rD   Úsettingsr-   N)r°   r   )r0   s   "r&   r2   r2   >  s$   € ÷ "ñ "Üð"Ü'9ð"à	ñ"r(   c                 ó”  € V P                   '       dN   V P                  '       g:   R p\        P                  V4       RV n         V ;P                  ^,          un        R# R# \        V P                  4      VP                  8  dE   R\        V P                  4       RVP                   R2p\        P                  V4       RV n        R# R# )zHNo participants left in the rendezvous, marking rendezvous as incompleteFzNumber of participants z less than min_nodes z, clearing deadline in stateN)rµ   r¸   ÚloggerÚdebugr´   r!   rˆ   r¶   )rD   rÂ   Úmsgs   && r&   Ú_remove_participant_epiloguerÇ   >  s¬   € ð ‡~‡~€~à×!×!Ð!Ø\ˆCÜ�L‰L˜ÔØ"ˆEŒNà�KŠK˜1Õ�Kñ "ô ˆu×!Ñ!Ó" X×%7Ñ%7Ô7à)¬#¨e×.@Ñ.@Ó*AÐ)Bð CØ%×/Ñ/Ð0Ð0LðNð ô �L‰L˜ÔØ!ˆEŽNñ 8r(   c                   ó‚   a € ] tR tRt o Rt]]V 3R lR l4       4       t]V 3R lR l4       t]V 3R lR l4       t	R	t
V tR
# )Ú_RendezvousStateHolderiS  z9Hold the shared rendezvous state synced with other nodes.c                ó    <€ V ^8„  d   QhRS[ /# r+   ©r°   )r0   r1   s   "€r&   r2   Ú#_RendezvousStateHolder.__annotate__X  s   ø€ ÷ #ñ #Ñ'ñ #r(   c                ó   € R# )zGet the local state.Nr5   r6   s   &r&   rD   Ú_RendezvousStateHolder.stateV  r:   r(   c                ó.   <€ V ^8„  d   QhRS[ R,          /# r<   ©rF   )r0   r1   s   "€r&   r2   rÌ   \  s   ø€ ÷ ñ ‘d˜T•kñ r(   c                ó   € R# )zªRead or writes the latest state.

Returns:
    A boolean value indicating whether the local state, in case marked
    as dirty, was successfully synced with other nodes.
Nr5   r6   s   &r&   ÚsyncÚ_RendezvousStateHolder.sync[  r:   r(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rÌ   e  s   ø€ ÷ -ñ -˜Dñ -r(   c                ó   € R# )zMark the local state as dirty.Nr5   r6   s   &r&   Ú
mark_dirtyÚ!_RendezvousStateHolder.mark_dirtyd  r:   r(   r5   N)rK   rL   rM   rN   rO   rP   r   rD   rÒ   rÖ   rQ   rR   rS   s   @r&   rÉ   rÉ   S  sJ   ø‡ € ÙCàØ÷#ó ó ð#ð ÷ó ðð ÷-ó ö-r(   rÉ   c                   óÄ   a € ] tR tRt o RtRV 3R lR llt]P                  3V 3R lR llt]	V 3R lR l4       t
V 3R	 lR
 ltV 3R lR ltV 3R lR ltV 3R ltRtV tR# )Ú_BackendRendezvousStateHolderii  a?  Hold the rendezvous state synced with other nodes via a backend.

Args:
    backend:
        The rendezvous backend to use.
    settings:
        The rendezvous settings.
    cache_duration:
        The amount of time, in seconds, to cache the last rendezvous state
        before requesting it from the backend again.
c                ó0   <€ V ^8„  d   QhRS[ RS[RS[RR/# )r,   ÚbackendrÂ   Úcache_durationr-   N)r   r   rŒ   )r0   r1   s   "€r&   r2   Ú*_BackendRendezvousStateHolder.__annotate__  s3   ø€ ÷ ñ á"ðñ %ðñ ð	ð
 
ñr(   c                ó€   € Wn         \        4       V n        W n        W0n        R V n        RV n        RV n        . V n        R # )NFéÿÿÿÿ)	Ú_backendr°   Ú_stateÚ	_settingsÚ_cache_durationÚ_tokenÚ_dirtyÚ_last_sync_timeÚ_dead_nodes)r7   rÛ   rÂ   rÜ   s   &&&&r&   r`   Ú&_BackendRendezvousStateHolder.__init__  s<   € ð  ŒÜ&Ó(ˆŒØ!ŒØ-ÔØˆŒØˆŒØ!ˆÔØˆÖr(   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r,   ÚmessageÚ
node_state©r/   r   )r0   r1   s   "€r&   r2   rÝ   Ž  s   ø€ ÷ 
ñ 
™sð 
±	ñ 
r(   c                óŽ   € \        V P                  P                   R \        4        2V P                  P
                  VVR7       R# )Ú.)r8   r‡   rê   rë   N)r   Ú	__class__rK   r'   râ   r‡   ©r7   rê   rë   s   &&&r&   Ú_recordÚ%_BackendRendezvousStateHolder._recordŽ  s:   € Ü'Ø—N‘N×+Ñ+Ð,¨A¬oÓ.?Ð-@ÐAØ—>‘>×(Ñ(ØØ!÷		
r(   c                ó    <€ V ^8„  d   QhRS[ /# r+   rË   )r0   r1   s   "€r&   r2   rÝ   —  s   ø€ ÷ ñ Ñ'ñ r(   c                ó   € V P                   # ©úSee base class.)rá   r6   s   &r&   rD   Ú#_BackendRendezvousStateHolder.state–  rp   r(   c                ó.   <€ V ^8„  d   QhRS[ R,          /# r<   rÐ   )r0   r1   s   "€r&   r2   rÝ   ›  s   ø€ ÷ ;ñ ;‘d˜T•kñ ;r(   c                ó2  € RpRpV P                   '       dR   Rp\        P                  ! V P                  4      pV P                  P                  WP                  4      pVe   Vw  rpMvRpV P                  ^ 8”  dB   V P                  \        \        P                  ! 4       V P                  ,
          ^ 4      8¼  d   R# V P                  P                  4       pVe   Vw  rVe    \        P                  ! V4      V n        M\!        4       V n        V'       d¢   V P"                  '       d�   \$        P'                  \(        P*                  4      '       dg   RP-                  R V P"                   4       4      pRV RV P.                  P0                   R2pV P3                  VR	7       \$        P5                  V4       W n        RV n         \        P                  ! 4       V n        V P7                  4        V#   \        P                   d   p\        R4      ThRp?ii ; i)
rö   NFzAThe rendezvous state is corrupt. See inner exception for details.z, c              3   ó.   "  € T F  pR V R 2x € K  	  R# 5i)Ú'Nr5   )Ú.0Ú	dead_nodes   & r&   Ú	<genexpr>Ú5_BackendRendezvousStateHolder.sync.<locals>.<genexpr>Å  s   é € Ð!UÑDT°y A i [°Õ"2ÓDTùs   ‚z*As part of the sync operation the node(s) z( have been removed from the rendezvous 'z' since they had no heartbeat.©rê   )rå   ÚpickleÚdumpsrá   rà   rH   rä   rã   ræ   ÚmaxÚtimeÚ	monotonicrA   ÚloadsÚPickleErrorr   r°   rç   rÄ   ÚisEnabledForÚloggingÚDEBUGrU   râ   r‡   rñ   rÅ   Ú	_sanitize)	r7   Ú
state_bitsrE   Úhas_setÚset_responseÚget_responseÚexcÚ	node_listrÆ   s	   &        r&   rÒ   Ú"_BackendRendezvousStateHolder.sync›  s¾  € à#'ˆ
àˆð �;�;ˆ;ØˆGäŸš d§k¡kÓ2ˆJàŸ=™=×2Ñ2°:¿{¹{ÓKˆLØÒ'Ø-9Ñ*�
 7øàˆGà×#Ñ# aÔ'ð ×'Ñ'¬3Ü—N’NÓ$ t×';Ñ';Õ;¸Qó,ô ñ  àŸ=™=×2Ñ2Ó4ˆLØÒ'Ø$0Ñ!�
àÒ!ðÜ$Ÿlšl¨:Ó6�•ô +Ó,ˆDŒKç�t×'×'Ð'¬F×,?Ñ,?ÄÇÁ×,NÒ,NØŸ	™	Ñ!UÀD×DTÒDTÓ!UÓUˆIð =¸Y¸Kð HØ#Ÿ~™~×4Ñ4Ð5Ð5SðUð ð �L‰L ˆLÔ%Ü�L‰L˜ÔàŒàˆŒä#Ÿ~š~Ó/ˆÔà�‰Ôàˆøô3 ×%Ñ%ô Ü*ØWóàðûðús   Ã#G0 Ç0HÈHÈHc                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rÝ   Ø  s   ø€ ÷ )@ñ )@˜4ñ )@r(   c                ó  € V P                   p\        P                  ! \        P                  4      V P
                  P                  V P
                  P                  ,          ,
          pVP                  P                  4        UUu. uF  w  r4WB8  g   K  VNK  	  uppV n
        R pV P                   Fs  pRV R2p\        P                  V4       VP                  V  VP                  V Rp VP                  P!                  V4        VP"                  P!                  V4       Ku  	  V'       d   \%        WP
                  4       R# R# u uppi   \         d     Lpi ; i  \         d     Lei ; i  \         d     KÎ  i ; i)FzDetected dead node 'z"', removing it from the rendezvousTN)rá   r   Únowr	   Úutcrâ   rŠ   r‹   r¼   ry   rç   rÄ   rÅ   r¸   ÚKeyErrorrº   Úremover»   rÇ   )r7   rD   Úexpire_timeÚnodeÚlast_heartbeatÚparticipant_removedrý   rÆ   s   &       r&   r  Ú'_BackendRendezvousStateHolder._sanitizeØ  s[  € Ø—‘ˆä—l’l¤8§<¡<Ó0Ø�N‰N×.Ñ.°·±×1VÑ1VÕVõ
ˆð ).×(=Ñ(=×(CÑ(CÔ(Eô
á(EÑ$�ØÑ+÷ ˆDÙ(Eò
ˆÔð $Ðà×)Ô)ˆIØ(¨¨Ð3UÐVˆCÜ�L‰L˜ÔØ×%Ñ% iÐ0ðØ×&Ñ& yÐ1à&*Ð#ðØ—‘×&Ñ& yÔ1ðØ×%Ñ%×,Ñ,¨YÖ7ñ% *÷, ô )¨·±Ö?ñ ùó=
øô" ô Ùðûô
 ô Ùðûô
 ô ÚðúsB   Â
EÂEÃEÃ,EÄE0ÅEÅEÅE-Å,E-Å0E?Å>E?c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rÝ     s   ø€ ÷ ñ ˜Dñ r(   c                ó   € RV n         R# )zöSee base class.

If the local rendezvous state is dirty, the next sync call will try to
write the changes back to the backend. However this attempt might fail
if another node, which had the same state, also made changes and wrote
them before us.
TN)rå   r6   s   &r&   rÖ   Ú(_BackendRendezvousStateHolder.mark_dirty  s   € ð ˆŽr(   c                óŠ   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[S[,          ;R&   # )	r,   rà   rá   râ   rã   rä   rå   ræ   rç   )	r   r°   r   rŒ   r?   rF   ÚfloatÚlistr�   )r0   r1   s   "€r&   r2   rÝ   i  so   ø‡ ‚ ñ  Ññ ñ Ññ ñ "Ñ!ñ ñ  Ññ! ñ" �Mñ# ñ$ �Lñ% ñ& Ññ' ñ( ‘i•Ñ ò) r(   )rà   rã   rç   rå   ræ   râ   rá   rä   N)r§   )rK   rL   rM   rN   rO   r`   r   ÚRUNNINGrñ   rP   rD   rÒ   r  rÖ   r�   rQ   rR   rS   s   @r&   rÙ   rÙ   i  sh   ø‡ € ñ
÷*ò ð =F×<MÑ<M÷ 
ò 
ð ÷ó ð÷;ð ;÷z)@ð )@÷Vð ÷u ƒ r(   rÙ   c                   óN   € ] tR tRtRt^t^t^t^t^t	^t
^t^t^	t^
t^t^t^tRtR# )Ú_Actioni  zDSpecifies the possible actions based on the state of the rendezvous.r5   N)rK   rL   rM   rN   rO   Ú
KEEP_ALIVEÚADD_TO_PARTICIPANTSÚADD_TO_WAIT_LISTÚADD_TO_REDUNDANCY_LISTÚREMOVE_FROM_PARTICIPANTSÚREMOVE_FROM_WAIT_LISTÚREMOVE_FROM_REDUNDANCY_LISTÚMARK_RENDEZVOUS_COMPLETEÚMARK_RENDEZVOUS_CLOSEDÚSYNCÚERROR_CLOSEDÚERROR_TIMEOUTÚFINISHrQ   r5   r(   r&   r&  r&    sN   † ÙNà€JØÐØÐØÐØ ÐØÐØ"#ÐØ ÐØÐØ€DØ€LØ€MØ„Fr(   r&  c                   óB   a € ] tR tRt o RtV 3R lR ltV 3R ltRtV tR# )Ú_RendezvousContexti   a   Holds the context of the rendezvous.

Attributes:
    node:
        The node descriptor associated with the current rendezvous handler
        instance.
    state:
        The current state of the rendezvous.
    settings:
        The rendezvous settings.
c                ó0   <€ V ^8„  d   QhRS[ RS[RS[RR/# )r,   r  rD   rÂ   r-   N©r�   r°   r   )r0   r1   s   "€r&   r2   Ú_RendezvousContext.__annotate__1  s-   ø€ ÷ !ñ !Ùð!Ù&6ð!ÙBTð!à	ñ!r(   c                ó*   € Wn         W n        W0n        R # rJ   )r  rD   rÂ   )r7   r  rD   rÂ   s   &&&&r&   r`   Ú_RendezvousContext.__init__1  s   € ð Œ	ØŒ
Ø Žr(   c                ó>   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   # )r,   r  rD   rÂ   r7  )r0   r1   s   "€r&   r2   r8     s+   ø‡ ‚ ñ �Oñ ñ Ññ ñ !Ñ ò r(   )r  rÂ   rD   NrÀ   rS   s   @r&   r5  r5     s   ø‡ € ñ
÷ !ð !÷# ƒ r(   r5  c                   óD   a € ] tR tRt o Rt]RV 3R lR ll4       tRtV tR# )Ú_RendezvousOpExecutori9  zExecute rendezvous operations.Nc                ór   <€ V ^8„  d   QhRS[ S[S[.S[3,          RS[RS[ S[.S[3,          R,          RR/# ©r,   Ústate_handlerr¶   Úupdate_deadlineNr-   ©r   r5  r"  r&  r   )r0   r1   s   "€r&   r2   Ú"_RendezvousOpExecutor.__annotate__=  sT   ø€ ÷ ñ áÑ!3±UÐ ;¹WÐ DÕEðñ ðñ "¡9 +©uÐ"4Õ5¸Õ<ð	ð
 
ñr(   c                ó   € R# )a+  Execute a rendezvous operation.

An operation is run inside a state machine and is expected to transition
the rendezvous from one state to another.

Args:
    state_handler:
        A callable that is expected to return the next state transition
        action based on the current state of the rendezvous.
    deadline:
        The time, in seconds, at which the operation will be considered
        timed-out.
    update_deadline:
        Function to generate a new operation deadline if the current
        node may participate in the next rendezvous.
Nr5   )r7   r@  r¶   rA  s   &&&&r&   ÚrunÚ_RendezvousOpExecutor.run<  r:   r(   r5   rJ   )	rK   rL   rM   rN   rO   r   rE  rQ   rR   rS   s   @r&   r=  r=  9  s   ø‡ € Ù(à÷ñ ó ör(   r=  c                   ó&  a € ] tR tRt o RtV 3R lR lt]P                  3V 3R lR lltRV 3R lR	 llt	V 3R
 lR lt
V 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R ltRtV tR# )Ú _DistributedRendezvousOpExecutoriU  aG  Execute rendezvous operations using a shared state.

Args:
    node:
        The node descriptor associated with the current rendezvous handler
        instance.
    state_holder:
        The ``RendezvousStateHolder`` to use to sync the rendezvous state
        with other nodes.
    settings:
        The rendezvous settings.
c                ó0   <€ V ^8„  d   QhRS[ RS[RS[RR/# )r,   r  Ústate_holderrÂ   r-   N)r�   rÉ   r   )r0   r1   s   "€r&   r2   Ú-_DistributedRendezvousOpExecutor.__annotate__h  s3   ø€ ÷ "ñ "áð"ñ -ð"ñ %ð	"ð
 
ñ"r(   c                ó*   € Wn         W n        W0n        R # rJ   )Ú_nodeÚ_state_holderrâ   )r7   r  rJ  rÂ   s   &&&&r&   r`   Ú)_DistributedRendezvousOpExecutor.__init__h  s   € ð Œ
Ø)ÔØ!Žr(   c                ó*   <€ V ^8„  d   QhRS[ RS[RR/# )r,   rê   rë   r-   Nrì   )r0   r1   s   "€r&   r2   rK  r  s#   ø€ ÷ 	
ñ 	
™sð 	
±	ð 	
ÐRVñ 	
r(   c           
     ó  € \        V P                  P                   R \        4        2V P                  P
                  VVV P                  P                  V P                  P                  V P                  P                  R7       R# )rî   )r8   r‡   rê   rë   Úhostnamer•   r–   N)
r   rï   rK   r'   râ   r‡   rM  r”   r•   r–   rð   s   &&&r&   rñ   Ú(_DistributedRendezvousOpExecutor._recordr  s]   € Ü'Ø—N‘N×+Ñ+Ð,¨A¬oÓ.?Ð-@ÐAØ—>‘>×(Ñ(ØØ!Ø—Z‘Z—_‘_Ø—
‘
—‘Ø—Z‘Z×(Ñ(÷	
r(   Nc                ór   <€ V ^8„  d   QhRS[ S[S[.S[3,          RS[RS[ S[.S[3,          R,          RR/# r?  rB  )r0   r1   s   "€r&   r2   rK  }  sZ   ø€ ÷ I0ñ I0áÑ!3±UÐ ;¹WÐ DÕEðI0ñ ðI0ñ "¡9 +©uÐ"4Õ5¸Õ<ð	I0ð
 
ñI0r(   c                ó4  € RpV\         P                  8w  Ed    V P                  P                  4       pVe   V'       d)   RV P                   RV P
                  P                   R2pM'RV P                   RV P
                  P                   R2pV P                  VR7       \        P                  V4       V P                  P                  V n        \        V P                  V P                  V P
                  4      pV! Wr4      pV\         P                  8X  d   EK  V\         P                  8X  d   \        hV\         P                  8X  d   \         hV\         P"                  8X  d   \%        ^R7       EKr  V\         P&                  8X  d   V P)                  4        EM_V\         P*                  8X  d   V P-                  4        EM8V\         P.                  8X  d   V P1                  4        EMV\         P2                  8X  d   V P5                  4        MëV\         P6                  8X  d   V P9                  4        MÅV\         P:                  8X  d   V P=                  4        MŸV\         P>                  8X  d@   V PA                  4        V'       d'   V! V P
                  PB                  PD                  4      pMKV\         PF                  8X  d   V PI                  4        M%V\         PJ                  8X  d   V PM                  4        V P                  PO                  4        EK  R# )rö   Nú
The node 'zP' has successfully synced its local changes with other nodes in the rendezvous 'ú'.z]' has a stale state and failed to sync its local changes with other nodes in the rendezvous 'r   rV   )(r&  r3  rN  rÒ   rM  râ   r‡   rñ   rÄ   rÅ   rD   rá   r5  r1  r   r2  r   r0  r   r'  Ú_keep_aliver(  Ú_add_to_participantsr)  Ú_add_to_wait_listr*  Ú_add_to_redundancy_listr+  Ú_remove_from_participantsr,  Ú_remove_from_wait_listr-  Ú_remove_from_redundancy_listr~   rU   r.  Ú_mark_rendezvous_completer/  Ú_mark_rendezvous_closedrÖ   )r7   r@  r¶   rA  Úactionr  rÆ   Úctxs   &&&&    r&   rE  Ú$_DistributedRendezvousOpExecutor.run}  sZ  € ð ˆØœŸ™Õ&ð ×(Ñ(×-Ñ-Ó/ˆGØÒ"ßà$ T§Z¡Z Lð 1:Ø:>¿.¹.×:OÑ:OÐ9PÐPRðTñ ð % T§Z¡Z Lð 1GØGKÇ~Á~×G\ÑG\ÐF]Ð]_ðað ð
 —‘ S�Ô)Ü—‘˜SÔ!à×,Ñ,×2Ñ2ˆDŒKä$ T§Z¡Z°·±¸d¿n¹nÓMˆCñ # 3Ó1ˆFàœŸ™Ô'Úàœ×-Ñ-Ô-Ü+Ð+àœ×.Ñ.Ô.Ü,Ð,àœŸ™Ô%ô ˜q×!Ð!àœW×/Ñ/Ô/Ø×$Ñ$Ö&Øœw×:Ñ:Ô:Ø×-Ñ-Ö/Øœw×7Ñ7Ô7Ø×*Ñ*Ö,Øœw×=Ñ=Ô=Ø×0Ñ0Õ2Øœw×?Ñ?Ô?Ø×2Ñ2Õ4Øœw×<Ñ<Ô<Ø×/Ñ/Õ1Øœw×BÑBÔBØ×5Ñ5Ô7ç&Ù#2°4·>±>×3IÑ3I×3NÑ3NÓ#O˜øØœw×?Ñ?Ô?Ø×2Ñ2Õ4Øœw×=Ñ=Ô=Ø×0Ñ0Ô2ð ×"Ñ"×-Ñ-×/ñC 'r(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rK  È  s   ø€ ÷ Mñ M˜Tñ Mr(   c                ó,  € R V P                    RV P                  P                   R2pV P                  VR7       \        P                  V4       \        P                  ! \        P                  4      V P                  P                  V P                   &   R# )rV  z<' updated its keep-alive heartbeat time for the rendezvous 'ú'. Pending sync.r   N)rM  râ   r‡   rñ   rÄ   rÅ   r   r  r	   r  rá   r¼   ©r7   rÆ   s   & r&   rX  Ú,_DistributedRendezvousOpExecutor._keep_aliveÈ  sp   € à˜Ÿ™˜ð %Ø—‘×%Ñ%Ð&Ð&6ð8ð 	ð 	�‰˜SˆÔ!Ü�‰�SÔä2:·,²,¼x¿|¹|Ó2Lˆ�‰×#Ñ# D§J¡JÓ/r(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rK  Ò  s   ø€ ÷ -ñ - dñ -r(   c                ó   € R V P                    RV P                  P                   RV P                  P                   R2pV P                  VR7       \        P                  V4       V P                  p VP                  P                  V P                   4       ^ VP                  V P                   &   V P                  4        \        VP                  4      V P                  P                  8X  dO   \        P                   ! \"        P$                  4      V P                  P&                  P(                  ,           Vn        \        VP                  4      V P                  P,                  8X  d   V P/                  4        R# R#   \         d     Lôi ; i)rV  z,' added itself to the participants of round ú of the rendezvous 'rf  r   N)rM  rá   r´   râ   r‡   rñ   rÄ   rÅ   rº   r  r  r¸   rX  r!   rˆ   r   r  r	   r  r~   rX   r¶   r‰   r_  ©r7   rÆ   rD   s   &  r&   rY  Ú5_DistributedRendezvousOpExecutor._add_to_participantsÒ  s/  € à˜Ÿ™˜Ð$PØ�{‰{× Ñ Ð!Ð!5°d·n±n×6KÑ6KÐ5LÐL\ð^ð 	ð 	�‰˜SˆÔ!Ü�‰�SÔà—‘ˆð	Ø�O‰O×"Ñ" 4§:¡:Ô.ð *+ˆ×Ñ˜4Ÿ:™:Ñ&à×ÑÔäˆu×!Ñ!Ó" d§n¡n×&>Ñ&>Ô>ä—’œXŸ\™\Ó*¨T¯^©^×-CÑ-C×-MÑ-MÕMð ŒNô ˆu×!Ñ!Ó" d§n¡n×&>Ñ&>Ô>Ø×*Ñ*Ö,ñ ?øô ô 	Ùð	ús   Á3%E? Å?FÆFc                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rK  ï  s   ø€ ÷ ñ  4ñ r(   c                ó  € R V P                    RV P                  P                  ^,            RV P                  P                   R2pV P                  VR7       \        P                  V4       V P                   V P                  P                  9   d0   V P                  P                  P                  V P                   4       V P                  P                  P                  V P                   4       V P                  4        R# )rV  z)' added itself to the wait list of round rk  rf  r   N)rM  rá   r´   râ   r‡   rñ   rÄ   rÅ   r»   r  rº   ÚaddrX  rg  s   & r&   rZ  Ú2_DistributedRendezvousOpExecutor._add_to_wait_listï  s»   € à˜Ÿ™˜Ð$MØ�{‰{× Ñ  1Õ$Ð%Ð%9¸$¿.¹.×:OÑ:OÐ9PÐP`ðbð 	ð 	�‰˜SˆÔ!Ü�‰�SÔà�:‰:˜Ÿ™×4Ñ4Ô4Ø�K‰K×'Ñ'×.Ñ.¨t¯z©zÔ:Ø�‰×Ñ×!Ñ! $§*¡*Ô-à×ÑÖr(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rK  ý  s   ø€ ÷ 
ñ 
¨ñ 
r(   c                ó\  € R V P                    RV P                  P                  ^,            RV P                  P                   R2pV P                  VR7       \        P                  V4       V P                  P                  P                  V P                   4       V P                  4        R# )rV  z/' added itself to the redundancy list of round rk  rf  r   N)rM  rá   r´   râ   r‡   rñ   rÄ   rÅ   r»   rp  rX  rg  s   & r&   r[  Ú8_DistributedRendezvousOpExecutor._add_to_redundancy_listý  s‰   € à˜Ÿ™˜Ð$SØ�{‰{× Ñ  1Õ$Ð%Ð%9¸$¿.¹.×:OÑ:OÐ9PÐP`ðbð 	ð 	�‰˜SˆÔ!Ü�‰�SÔà�‰×#Ñ#×'Ñ'¨¯
©
Ô3à×ÑÖr(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rK  	  s   ø€ ÷ <ñ <¨4ñ <r(   c                ón  € R V P                    RV P                  P                   RV P                  P                   R2pV P                  VR7       \        P                  V4       V P                  pVP                  V P                    VP                  V P                    \        W P                  4       R# )rV  z0' removed itself from the participants of round rk  rf  r   N)rM  rá   r´   râ   r‡   rñ   rÄ   rÅ   r¸   r¼   rÇ   rl  s   &  r&   r\  Ú:_DistributedRendezvousOpExecutor._remove_from_participants	  s—   € à˜Ÿ™˜Ð$TØ�{‰{× Ñ Ð!Ð!5°d·n±n×6KÑ6KÐ5LÐL\ð^ð 	ð 	�‰˜SˆÔ!Ü�‰�SÔà—‘ˆà×Ñ˜tŸz™zÐ*à×!Ñ! $§*¡*Ð-ô 	% U¯N©NÖ;r(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rK    s   ø€ ÷ 
4ñ 
4¨ñ 
4r(   c                ó~  € R V P                    RV P                  P                  ^,            RV P                  P                   R2pV P                  VR7       \        P                  V4       V P                  P                  P                  V P                   4       V P                  P                  V P                    R# )rV  z-' removed itself from the wait list of round rk  rf  r   N)rM  rá   r´   râ   r‡   rñ   rÄ   rÅ   rº   r  r¼   rg  s   & r&   r]  Ú7_DistributedRendezvousOpExecutor._remove_from_wait_list  s“   € à˜Ÿ™˜Ð$QØ�{‰{× Ñ  1Õ$Ð%Ð%9¸$¿.¹.×:OÑ:OÐ9PÐP`ðbð 	ð 	�‰˜SˆÔ!Ü�‰�SÔà�‰×Ñ×$Ñ$ T§Z¡ZÔ0à�K‰K×'Ñ'¨¯
©
Ò3r(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rK  '  s   ø€ ÷ 
4ñ 
4¨dñ 
4r(   c                ó~  € R V P                    RV P                  P                  ^,            RV P                  P                   R2pV P                  VR7       \        P                  V4       V P                  P                  P                  V P                   4       V P                  P                  V P                    R# )rV  z2' removed itself from the redundant list of round rk  rf  r   N)rM  rá   r´   râ   r‡   rñ   rÄ   rÅ   r»   r  r¼   rg  s   & r&   r^  Ú=_DistributedRendezvousOpExecutor._remove_from_redundancy_list'  s“   € à˜Ÿ™˜Ð$VØ�{‰{× Ñ  1Õ$Ð%Ð%9¸$¿.¹.×:OÑ:OÐ9PÐP`ðbð 	ð 	�‰˜SˆÔ!Ü�‰�SÔà�‰×#Ñ#×*Ñ*¨4¯:©:Ô6à�K‰K×'Ñ'¨¯
©
Ò3r(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rK  3  s   ø€ ÷ ,ñ ,¨4ñ ,r(   c                óŒ  € R V P                    RV P                  P                   RV P                  P                   R2pV P                  V\        P                  R7       \        P                  V4       V P                  pRVn
        RVn        \        \        VP                  4      4       F  w  r4W2P                  V&   K  	  R# )rV  z' marked round rk  z' as complete. Pending sync.©rê   rë   TN)rM  rá   r´   râ   r‡   rñ   r   Ú	SUCCEEDEDrÄ   rÅ   rµ   r¶   Ú	enumerateÚsortedr¸   )r7   rÆ   rD   Úrankr  s   &    r&   r_  Ú:_DistributedRendezvousOpExecutor._mark_rendezvous_complete3  sª   € à˜Ÿ™˜ O°D·K±K×4EÑ4EÐ3Fð GØ—‘×%Ñ%Ð&Ð&BðDð 	ð 	�‰˜S¬Y×-@Ñ-@ˆÔAÜ�‰�SÔà—‘ˆàˆŒØˆŒô $¤F¨5×+=Ñ+=Ó$>Ö?‰JˆDØ'+×Ñ˜tÓ$ó @r(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   rK  D  s   ø€ ÷ "ñ "¨ñ "r(   c                óâ   € R V P                    RV P                  P                   R2pV P                  V\        P
                  R7       \        P                  V4       RV P                  n	        R# )rV  z' marked the rendezvous 'z' as closed. Pending sync.r€  TN)
rM  râ   r‡   rñ   r   r�  rÄ   rÅ   rá   r·   rg  s   & r&   r`  Ú8_DistributedRendezvousOpExecutor._mark_rendezvous_closedD  s_   € à˜Ÿ™˜Ð$=¸d¿n¹n×>SÑ>SÐ=Tð Uð ð 	ð 	�‰˜S¬Y×-@Ñ-@ˆÔAÜ�‰�SÔà!ˆ�‰Ör(   c                óJ   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   S[;R&   # )r,   rM  rá   rN  râ   )r�   r°   rÉ   r   )r0   r1   s   "€r&   r2   rK  U  s9   ø‡ ‚ ñ Ññ ñ Ññ ñ  *Ñ)ñ! ñ" "Ñ!ò# r(   )rM  râ   rá   rN  rJ   )rK   rL   rM   rN   rO   r`   r   r$  rñ   rE  rX  rY  rZ  r[  r\  r]  r^  r_  r`  r�   rQ   rR   rS   s   @r&   rH  rH  U  s›   ø‡ € ñ÷$"ð "ð =F×<MÑ<M÷ 	
ò 	
÷I0ò I0÷VMð M÷-ð -÷:ð ÷
ð 
÷<ð <÷$
4ð 
4÷
4ð 
4÷,ð ,÷""ð "÷_ ƒ r(   rH  c                ó0   € V ^8„  d   QhR\         R\        /# )r,   rb  r-   )r5  rF   )r0   s   "r&   r2   r2   O  s   € ÷ 	ñ 	Ô.ð 	´4ñ 	r(   c                óú   €  V P                   P                  V P                  ,          pT\        P
                  ! \        P                  4      T P                  P                  ,
          8*  #   \         d     R# i ; i)z8Determine whether a keep-alive heartbeat should be sent.F)
rD   r¼   r  r  r   r  r	   r  rÂ   rŠ   )rb  r  s   & r&   Ú_should_keep_aliverŒ  O  s^   € ðØŸ™×2Ñ2°3·8±8Õ<ˆð
 	œ(Ÿ,š,¤x§|¡|Ó4°s·|±|×7WÑ7WÕWÑWðøô ô Úðús   ‚'A+ Á+A:Á9A:c                   ó6   a € ] tR tRt o RtV 3R lR ltRtV tR# )Ú_RendezvousExitOpi[  z&Represent a rendezvous exit operation.c                ó,   <€ V ^8„  d   QhRS[ RS[RS[/# ©r,   rb  r¶   r-   ©r5  r"  r&  )r0   r1   s   "€r&   r2   Ú_RendezvousExitOp.__annotate__^  ó#   ø€ ÷ ñ Ñ.ð ¹%ð ÁGñ r(   c                óà   € VP                   VP                  P                  9   d;   \        P                  ! 4       V8”  d   \
        P                  # \
        P                  # \
        P                  # rJ   )	r  rD   r¸   r  r  r&  r2  r+  r3  ©r7   rb  r¶   s   &&&r&   Ú__call__Ú_RendezvousExitOp.__call__^  sI   € Ø�8‰8�s—y‘y×-Ñ-Ô-Ü�~Š~Ó (Ô*Ü×,Ñ,Ð,Ü×3Ñ3Ð3Ü�~‰~Ðr(   r5   N©rK   rL   rM   rN   rO   r–  rQ   rR   rS   s   @r&   rŽ  rŽ  [  s   ø‡ € Ù0÷ö r(   rŽ  c                   ó6   a € ] tR tRt o RtV 3R lR ltRtV tR# )Ú_RendezvousJoinOpif  z&Represent a rendezvous join operation.c                ó,   <€ V ^8„  d   QhRS[ RS[RS[/# r�  r‘  )r0   r1   s   "€r&   r2   Ú_RendezvousJoinOp.__annotate__i  s(   ø€ ÷ bñ bÑ.ð b¹%ð bÁGñ br(   c                óœ  € VP                   pVP                  '       dQ   VP                  VP                  9   d&   R VP                  P
                   R2p\        V4      h\        P                  # VP                  VP                  9   dº   RVP                   R2p\        P                  V4       \        VP                  4      VP                  P                  8X  d2   \        V4      '       d   \        P                  # \        P                   # RVP                   R2p\        P                  V4       \        P"                  # VP                  VP                  9   pVP$                  '       d   V'       d   \        P&                  # \(        P*                  ! 4       pWb8”  dc   ^pWbV,           8:  dD   V'       d   \        P,                  # VP                  VP.                  9   d   \        P0                  # \        P2                  # VP$                  '       dÒ   \        VP                  4      VP                  P                  8  d.   VP                  VP.                  9  d   \        P4                  # EM­\        VP                  4      VP                  P                  8¼  dG   VP                  VP                  9  d,   VP                  VP.                  9  d   \        P6                  # EM7V'       Ed   \        VP                  4      VP                  P8                  8¼  dË   \        VP                  4      VP                  P                  8:  d�   VP:                  e�   VP:                  \<        P>                  ! \@        PB                  4      8  d6   RVP                   R2p\        P                  V4       \        PD                  # RVP                   R2p\        P                  V4       M6RVP                   R2p\        P                  V4       M\        PF                  # \        V4      '       d   \        P                  # \        P                   # )	zThe rendezvous 'z,' is closed, terminating pending rendezvous.z	The node z is in redundancy listz  is removed from redundancy listrV  zE' marking the rendezvous complete, quorum established within deadlinez-' can't complete rendezvous: deadline reachedz4' can't complete rendezvous: not enough participants)$rD   r·   r  r»   rÂ   r‡   r   r&  r1  rÄ   rÅ   r!   r¸   r‰   rŒ  r'  r0  r-  rµ   r3  r  r  r+  rº   r,  r2  r)  r*  rˆ   r¶   r   r  r	   r  r.  r(  )r7   rb  r¶   rD   rÆ   Úis_participantr  Úrollback_periods   &&&     r&   r–  Ú_RendezvousJoinOp.__call__i  s  € Ø—	‘	ˆð �<�<ˆ<Ø�x‰x˜5×0Ñ0Ô0Ø(¨¯©×)<Ñ)<Ð(=Ð=iÐj�Ü1°#Ó6Ð6Ü×'Ñ'Ð'à�8‰8�u×,Ñ,Ô,Ø˜cŸh™h˜ZÐ'=Ð>ˆCÜ�L‰L˜Ôä�5×%Ñ%Ó&¨#¯,©,×*@Ñ*@Ô@Ü% c×*Ò*Ü"×-Ñ-Ð-ä"Ÿ<™<Ð'ð " #§(¡( Ð+KÐL�Ü—‘˜SÔ!Ü×:Ñ:Ð:àŸ™ U×%7Ñ%7Ñ7ˆð �>�>ˆ>ŸnÜ—>‘>Ð!ä�nŠnÓˆØŒ>ØˆOð  Õ0Ô0÷ "Ü"×;Ñ;Ð;ð —8‘8˜uŸ™Ô.Ü"×8Ñ8Ð8Ü×(Ñ(Ð(à�>�>ˆ>ô �5×%Ñ%Ó&¨¯©×)?Ñ)?Ô?Ø—8‘8 5§?¡?Ô2Ü"×3Ñ3Ð3ñ 3ä�U×'Ñ'Ó(¨C¯L©L×,BÑ,BÔBà—H‘H E×$9Ñ$9Ô9ØŸ™¨¯©Ô7ä"×9Ñ9Ð9ùßˆ^ô
 �E×&Ñ&Ó'¨3¯<©<×+AÑ+AÔAÜ˜×*Ñ*Ó+¨s¯|©|×/EÑ/EÔEØ—N‘NÒ.à—>‘>¤H§L¢L´·±Ó$>Ô>à$ S§X¡X Jð /=ð >ð ô —L‘L Ô%Ü"×;Ñ;Ð;à& s§x¡x jÐ0]Ð^�CÜ—L‘L Õ%à" 3§8¡8 *Ð,`Ða�Ü—‘˜SÕ!ô ×.Ñ.Ð.ä˜c×"Ò"Ü×%Ñ%Ð%ô �|‰|Ðr(   r5   Nr˜  rS   s   @r&   rš  rš  f  s   ø‡ € Ù0÷bö br(   rš  c                   ó6   a € ] tR tRt o RtV 3R lR ltRtV tR# )Ú_RendezvousCloseOpiÎ  z'Represent a rendezvous close operation.c                ó,   <€ V ^8„  d   QhRS[ RS[RS[/# r�  r‘  )r0   r1   s   "€r&   r2   Ú_RendezvousCloseOp.__annotate__Ñ  s#   ø€ ÷ .ñ .Ñ.ð .¹%ð .ÁGñ .r(   c                óÎ   € VP                   P                  '       d   \        P                  # \        P
                  ! 4       V8”  d   \        P                  # \        P                  # rJ   )rD   r·   r&  r3  r  r  r2  r/  r•  s   &&&r&   r–  Ú_RendezvousCloseOp.__call__Ñ  sC   € Ø�9‰9××ÐÜ—>‘>Ð!Ü�>Š>Ó˜hÔ&Ü×(Ñ(Ð(Ü×-Ñ-Ð-r(   r5   Nr˜  rS   s   @r&   r¢  r¢  Î  s   ø‡ € Ù1÷.ö .r(   r¢  c                   ó6   a € ] tR tRt o RtV 3R lR ltRtV tR# )Ú_RendezvousKeepAliveOpiÙ  z3Represent a rendezvous keep-alive update operation.c                ó,   <€ V ^8„  d   QhRS[ RS[RS[/# r�  r‘  )r0   r1   s   "€r&   r2   Ú#_RendezvousKeepAliveOp.__annotate__Ü  r“  r(   c                ó¸   € \        V4      '       d;   \        P                  ! 4       V8”  d   \        P                  # \        P
                  # \        P                  # rJ   )rŒ  r  r  r&  r2  r'  r3  r•  s   &&&r&   r–  Ú_RendezvousKeepAliveOp.__call__Ü  s>   € Ü˜c×"Ò"Ü�~Š~Ó (Ô*Ü×,Ñ,Ð,Ü×%Ñ%Ð%Ü�~‰~Ðr(   r5   Nr˜  rS   s   @r&   r¨  r¨  Ù  s   ø‡ € Ù=÷ö r(   r¨  c                   ó  a € ] tR tRt o Rt]! 4       t]R2V 3R lR ll4       tV 3R lR lt	]
P                  R3V 3R lR	 lltV 3R
 lR lt]V 3R lR l4       tV 3R lR lt]V 3R lR l4       tV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR lt]V 3R  lR! l4       tV 3R" lR# ltV 3R$ lR% ltV 3R& lR' ltV 3R( lR) ltV 3R* lR+ ltV 3R, lR- lt V 3R. lR/ lt!V 3R0 lt"R1t#V t$R# )3r   iä  zCRepresent a handler that sets up a rendezvous among a set of nodes.Nc                ól   <€ V ^8„  d   QhRS[ RS[RS[RS[RS[RS[ R,          RS[R,          R	S[R
S[/	# )r,   r‡   ÚstorerÛ   rˆ   r‰   r¥   Nr~   rŠ   r‹   )r/   r   r   rŒ   r   )r0   r1   s   "€r&   r2   Ú%DynamicRendezvousHandler.__annotate__ô  sy   ø€ ÷ 2Fñ 2Fáð2Fñ ð2Fñ #ð	2Fñ
 ð2Fñ ð2Fñ ˜$•Jð2Fñ # TÕ)ð2Fñ !ð2Fñ !$ñ2Fr(   c
           
     óÐ   € V P                   P                  V4      p
\        TTTT;'       g    \        4       \	        VR7      V	R7      p\        W;4      pV ! W«VP                  W,4      # )a  Create a new :py:class:`DynamicRendezvousHandler`.

Args:
    run_id:
        The run id of the rendezvous.
    store:
        The C10d store to return as part of the rendezvous.
    backend:
        The backend to use to hold the rendezvous state.
    min_nodes:
        The minimum number of nodes to admit to the rendezvous.
    max_nodes:
        The maximum number of nodes to admit to the rendezvous.
    local_addr:
        The local node address.
    timeout:
        The timeout configuration of the rendezvous.
    keep_alive_interval:
        The amount of time a node waits before sending a heartbeat to keep
        it alive in the rendezvous.
    keep_alive_max_attempt:
        The maximum number of failed heartbeat attempts after which a node
        is considered dead.
rV   ©rŠ   r‹   )Ú_node_desc_generatorr¬   r   r   r   rÙ   r8   )Úclsr‡   r¯  rÛ   rˆ   r‰   r¥   r~   rŠ   r‹   r  rÂ   rJ  s   &&&&&&&&&&   r&   Úfrom_backendÚ%DynamicRendezvousHandler.from_backendó  sh   € ðL ×'Ñ'×0Ñ0°Ó<ˆä%ØØØØ×*Ð*Ô(Ó*Ü )Ð2EÔ FØ#9ô
ˆô 5°WÓGˆá�4 7§<¡<°ÓEÐEr(   c                ó<   <€ V ^8„  d   QhRS[ RS[RS[RS[RS[RR/# )r,   r  rÂ   Úbackend_namer¯  rJ  r-   N)r�   r   r/   r   rÉ   )r0   r1   s   "€r&   r2   r°  (  sO   ø€ ÷ +Fñ +Fáð+Fñ %ð+Fñ ð	+Fñ
 ð+Fñ -ð+Fð 
ñ+Fr(   c                ó  € VP                   '       g   \        R 4      hVP                  ^8  d   \        RVP                   R24      hVP                  VP                  8  d'   \        RVP                   RVP                   R24      hWn        W n        W0n        W@n        WPn        \        V P                  V P                  V P
                  4      V n
        \        P                  ! 4       V n        RV n        RV n        RV n        R# )z&The run id must be a non-empty string.zThe minimum number of nodes (z) must be greater than zero.zThe maximum number of nodes (z@) must be greater than or equal to the minimum number of nodes (z).N)r‡   r|   rˆ   r‰   Ú
_this_noderâ   Ú_backend_nameÚ_storerN  rH  Ú_op_executorrŸ   r    Ú_heartbeat_lockÚ_keep_alive_timerÚ_shared_tcp_store_serverÚ_bootstrap_store_info)r7   r  rÂ   r¸  r¯  rJ  s   &&&&&&r&   r`   Ú!DynamicRendezvousHandler.__init__(  sþ   € ð ��ˆÜÐEÓFÐFà×Ñ Ô!ÜØ/°×0BÑ0BÐ/CÐC_Ð`óð ð ×Ñ × 2Ñ 2Ô2ÜØ/°×0BÑ0BÐ/Cð D3Ø3;×3EÑ3EÐ2FÀbðJóð ð
 Œà!Œà)ÔàŒà)Ôä<Ø�O‰O˜T×/Ñ/°·±ó
ˆÔô  )Ÿ~š~Ó/ˆÔà!%ˆÔð <@ˆÔ%àAEˆÖ"r(   c                ó>   <€ V ^8„  d   QhRS[ RS[RS[R,          RR/# )r,   rê   rë   r„  Nr-   )r/   r   rŒ   )r0   r1   s   "€r&   r2   r°  U  s7   ø€ ÷ 
ñ 
áð
ñ ð
ñ �D�jð	
ð
 
ñ
r(   c                ó  € \        V P                  P                   R \        4        2V P                  P
                  VVV P                  P                  V P                  P                  V P                  P                  VR7       R# )rî   )r8   r‡   rê   rë   rR  r•   r–   r„  N)
r   rï   rK   r'   râ   r‡   rº  r”   r•   r–   )r7   rê   rë   r„  s   &&&&r&   rñ   Ú DynamicRendezvousHandler._recordU  sf   € ô 	(Ø—N‘N×+Ñ+Ð,¨A¬oÓ.?Ð-@ÐAØ—>‘>×(Ñ(ØØ!Ø—_‘_×)Ñ)Ø—‘×#Ñ#Ø—_‘_×-Ñ-Ø÷		
r(   c                ó4   <€ V ^8„  d   QhRS[ P                  /# r+   ©ÚdistÚTCPStore)r0   r1   s   "€r&   r2   r°  f  s   ø€ ÷ 
ñ 
ÁDÇMÁMñ 
r(   c                ó6   € \         P                  ! VVR R R7      # )T)Ú	host_nameÚportÚ	is_masterÚmulti_tenantrÇ  )r7   Úmaster_addrÚmaster_ports   &&&r&   Ú_create_tcp_store_serverÚ1DynamicRendezvousHandler._create_tcp_store_serverf  s   € Ü�}Š}Ø!ØØØô	
ð 	
r(   c                ó    <€ V ^8„  d   QhRS[ /# r+   )r   )r0   r1   s   "€r&   r2   r°  o  s   ø€ ÷ ñ Ñ,ñ r(   c                ó   € V P                   # )z#Get the settings of the rendezvous.)râ   r6   s   &r&   rÂ   Ú!DynamicRendezvousHandler.settingsn  s   € ð �~‰~Ðr(   c                ó    <€ V ^8„  d   QhRS[ /# r+   r.   )r0   r1   s   "€r&   r2   r°  s  s   ø€ ÷ "ñ "™Sñ "r(   c                ó   € V P                   # rõ   )r»  r6   s   &r&   Úget_backendÚ$DynamicRendezvousHandler.get_backends  s   € à×!Ñ!Ð!r(   c                ó    <€ V ^8„  d   QhRS[ /# r+   rÐ   )r0   r1   s   "€r&   r2   r°  x  s   ø€ ÷ Kñ K¡ñ Kr(   c                ó6   € \         P                  ! RR4      R8g  # )rö   Ú"TORCH_DISABLE_SHARE_RDZV_TCP_STOREÚ0Ú1)rª   Úgetenvr6   s   &r&   Úuse_agent_storeÚ(DynamicRendezvousHandler.use_agent_storew  s   € ô �yŠyÐ=¸sÓCÀsÑJÐJr(   c                ó    <€ V ^8„  d   QhRS[ /# r+   )r   )r0   r1   s   "€r&   r2   r°  |  s   ø€ ÷ X
ñ X
¡ñ X
r(   c                óž  € RV P                    RV P                  P                   R2pV P                  VR7       \        P                  V4        V P                  4        V P                  P                  P                  ^ 8X  d   \        RR7       \        4       p\        4       pV P                  V P                  P                  P                  4      pV P                   P#                  W$4       V P                   P#                  W4V P                  4       V P%                  4        V P'                  4       w  rVV P)                  4       pRT P                    R	T P                  P                  P                   R
T P                  P                   RT RT R2pT P                  YR7       \        P                  T4       \6        P8                  ! RR4      R8X  d;   \:        P<                  ! YWT P                   P>                  R7      p	\A        TTTT	4      # T PB                  e   T^ 8X  dŒ   T PD                  f~   ^ p
T^ 8X  dB   T PG                  T P                   P>                  T
4      T n"        T PD                  PH                  p
\:        P<                  ! TTT P                   P>                  T
R7      T n!        T PB                  f   \J        hT^ 8X  d   T PD                  f   \J        h\A        TTTT PB                  4      #   \*         dI   pT P                  \-        T4      P.                   R\1        T4       2\2        P4                  R7       h Rp?ii ; i)rö   rV  z5' attempts to join the next round of the rendezvous 'rW  r   rV   ú: r€  Nz' has joined round rk  z
' as rank z in a world of size rî   )rê   r„  rÜ  rÝ  rÞ  )r¥   )r¥   Úserver_port)r   g333333Ó?)&rº  râ   r‡   rñ   rÄ   ÚinfoÚ_stop_heartbeatsrN  rD   r´   r   rŽ  rš  Ú_get_deadliner~   rU   r½  rE  Ú_start_heartbeatsÚ
_get_worldÚ
_get_storeÚ	ExceptionÚtyperK   r/   r   ÚFAILEDrª   rß  r   Úbuildr”   r   rÁ  rÀ  rÑ  rÌ  ÚAssertionError)r7   rÆ   Úexit_opÚjoin_opr¶   r„  Ú
world_sizer¯  ÚeÚbootstrap_store_inforå  s   &          r&   Únext_rendezvousÚ(DynamicRendezvousHandler.next_rendezvous|  só  € ð ˜Ÿ™Ð)ð *Ø—‘×%Ñ%Ð& bð*ð 	ð 	�‰˜SˆÔ!Ü�‰�CÔð	Ø×!Ñ!Ô#ð
 ×!Ñ!×'Ñ'×-Ñ-°Ô2Ü˜xÕ(ä'Ó)ˆGÜ'Ó)ˆGà×)Ñ)¨$¯.©.×*@Ñ*@×*EÑ*EÓFˆHØ×Ñ×!Ñ! 'Ô4Ø×Ñ×!Ñ! '°T×5GÑ5GÔHà×"Ñ"Ô$à#Ÿ™Ó0ÑˆDØ—O‘OÓ%ˆEð ˜Ÿ™Ð)Ð)<¸T×=OÑ=O×=UÑ=U×=[Ñ=[Ð<\ð ]Ø#Ÿ~™~×4Ñ4Ð5°ZÀ¸vÐEYØˆl˜!ðð 	ð
 	�‰˜SˆÔ,Ü�‰�CÔô �9Š9Ð9¸3Ó?À3ÔFÜ#6×#<Ò#<Ø¨¯©×(<Ñ(<ô$Ð ô "ØØØØ$ó	ð ð ×%Ñ%Ò-Ø�AŒI˜$×7Ñ7Ò?àˆKØ�qŒyØ04×0MÑ0MØ—O‘O×(Ñ(¨+ó1�Ô-ð #×;Ñ;×@Ñ@�Ü)<×)BÒ)BØØØŸ?™?×/Ñ/Ø'ô	*ˆDÔ&ð ×%Ñ%Ò-Ü Ð Ø�1Œ9Ø×,Ñ,Ò4Ü$Ð$äØØØØ×&Ñ&ó	
ð 	
øôk ô 	Ø�L‰LÜ ›7×+Ñ+Ð,¨B¬s°1«v¨hÐ7Ü$×+Ñ+ð ô ð ûð	ús   ÁC7K9 Ë9MÌAMÍMc                ó    <€ V ^8„  d   QhRS[ /# r+   rÐ   )r0   r1   s   "€r&   r2   r°  Ö  s   ø€ ÷ ñ ™4ñ r(   c                óŠ  €  V P                   ;_uu_ 4        V P                  P                  4        V P                  P                  P                  uuRRR4       #   + '       g   i     R# ; i  \
         dI   pT P                  \        T4      P                   R\        T4       2\        P                  R7       h Rp?ii ; i©rö   Nrä  r€  )r¾  rN  rÒ   rD   r·   rì  rñ   rí  rK   r/   r   rî  ©r7   rô  s   & r&   Ú	is_closedÚ"DynamicRendezvousHandler.is_closedÖ  s–   € ð	Ø×%×%Ó%Ø×"Ñ"×'Ñ'Ô)à×)Ñ)×/Ñ/×6Ñ6÷ &×%×%Ó%ûô
 ô 	Ø�L‰LÜ ›7×+Ñ+Ð,¨B¬s°1«v¨hÐ7Ü$×+Ñ+ð ô ð ûð	ús5   ‚A/ –:AÁ
A/ ÁA,	Á&A/ Á,A/ Á/CÁ:AB=Â=Cc                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   r°  å  s   ø€ ÷ 
ñ 
˜Dñ 
r(   c                ó6  €  V P                   ;_uu_ 4        V P                  4        RRR4       R#   + '       g   i     R# ; i  \         dI   pT P                  \	        T4      P
                   R\        T4       2\        P                  R7       h Rp?ii ; irú  )	r¾  rn   rì  rñ   rí  rK   r/   r   rî  rû  s   & r&   Ú
set_closedÚ#DynamicRendezvousHandler.set_closedå  sv   € ð	Ø×%×%Ó%Ø—‘”÷ &×%×%Ò%ûäô 	Ø�L‰LÜ ›7×+Ñ+Ð,¨B¬s°1«v¨hÐ7Ü$×+Ñ+ð ô ð ûð	ús1   ‚A –1§A ±A	¼A ÁA ÁBÁABÂBc                ó    <€ V ^8„  d   QhRS[ /# r+   )rŒ   )r0   r1   s   "€r&   r2   r°  ñ  s   ø€ ÷ ñ ¡3ñ r(   c                óœ  €  V P                   ;_uu_ 4        V P                  P                  4        \        V P                  P                  P
                  4      uuRRR4       #   + '       g   i     R# ; i  \         dI   pT P                  \        T4      P                   R\        T4       2\        P                  R7       h Rp?ii ; irú  )r¾  rN  rÒ   r!   rD   rº   rì  rñ   rí  rK   r/   r   rî  rû  s   & r&   Únum_nodes_waitingÚ*DynamicRendezvousHandler.num_nodes_waitingñ  s›   € ð	Ø×%×%Ó%Ø×"Ñ"×'Ñ'Ô)ä˜4×-Ñ-×3Ñ3×=Ñ=Ó>÷ &×%×%Ó%ûô
 ô 	Ø�L‰LÜ ›7×+Ñ+Ð,¨B¬s°1«v¨hÐ7Ü$×+Ñ+ð ô ð ûð	ús6   ‚A8 –AA$Á
A8 Á$A5	Á/A8 Á5A8 Á8CÂACÃCc                ó    <€ V ^8„  d   QhRS[ /# r+   r.   )r0   r1   s   "€r&   r2   r°     s   ø€ ÷ %ñ %™Cñ %r(   c                ó.   € V P                   P                  # rõ   )râ   r‡   r6   s   &r&   Ú
get_run_idÚ#DynamicRendezvousHandler.get_run_id   s   € à�~‰~×$Ñ$Ð$r(   c                ó    <€ V ^8„  d   QhRS[ /# r+   rÐ   )r0   r1   s   "€r&   r2   r°    s   ø€ ÷ ñ ™$ñ r(   c           	     ó  € V P                  4         V P                  4        R#   \         d   pRT P                   RT P                  P
                   R\        T4      P                   R2pT P                  T\        P                  R7       \        P                  T4        Rp?R# Rp?i\         dI   pT P                  \        T4      P                   R	\        T4       2\        P                  R7       h Rp?ii ; i)
rö   TrV  z)' has failed to shutdown the rendezvous 'ú' due to an error of type rî   r€  NFrä  )rç  rn   r   rº  râ   r‡   rí  rK   rñ   r   rî  rÄ   Úwarningrì  r/   )r7   ÚexrÆ   rô  s   &   r&   ÚshutdownÚ!DynamicRendezvousHandler.shutdown  sÜ   € à×ÑÔð	Ø�K‰KŒMáøÜô 	à˜TŸ_™_Ð-ð .Ø—N‘N×)Ñ)Ð*Ð*DÄTÈ"ÃX×EVÑEVÐDWÐWXðZð ð �L‰L ´×1AÑ1AˆLÔBÜ�N‰N˜3ÔåûÜô 	Ø�L‰LÜ ›7×+Ñ+Ð,¨B¬s°1«v¨hÐ7Ü$×+Ñ+ð ô ð ûð	ús(   ’$ ¤C>¯A3B(Â(C>Â5C>Â6AC9Ã9C>c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   r°    s   ø€ ÷ 	ñ 	˜ñ 	r(   c                óh  € \        4       pV P                  V P                  P                  P                  4      pV P
                  P                  W4       R V P                   RV P                  P                   R2pV P                  V\        P                  R7       \        P                  V4       R# )rV  z' has closed the rendezvous 'rW  r€  N)r¢  rè  râ   r~   rY   r½  rE  rº  r‡   rñ   r   r�  rÄ   ræ  )r7   Úopr¶   rÆ   s   &   r&   rn   ÚDynamicRendezvousHandler._close  s†   € ÜÓ!ˆà×%Ñ% d§n¡n×&<Ñ&<×&BÑ&BÓCˆà×Ñ×Ñ˜bÔ+à˜4Ÿ?™?Ð+Ð+HÈÏÉ×I^ÑI^ÐH_Ð_aÐbˆØ�‰˜S¬Y×-@Ñ-@ˆÔAÜ�‰�CÖr(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   r°  (  s   ø€ ÷ ñ  tñ r(   c                ó@   € V ! 4       pVe   VP                  4        R # R # rJ   )rX  )Ú	weak_selfr7   s   & r&   Ú_keep_alive_weakÚ)DynamicRendezvousHandler._keep_alive_weak'  s    € á‹{ˆØÒØ×ÑÖñ r(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   r°  -  s   ø€ ÷ $ñ $˜Tñ $r(   c                óÄ  € V P                   ;_uu_ 4        \        4       pV P                  V P                  P                  P
                  4      p V P                  P                  W4       R V P                   RV P                  P                   R2pV P                  VR7       \        P                  V4       RRR4       R#   \         d~   pR T P                   RT P                  P                   R\        T4      P                   R2pT P                  T\         P"                  R7       \        P%                  T4        Rp?L�Rp?ii ; i  + '       g   i     R# ; i)	rV  z5' has sent a keep-alive heartbeat to the rendezvous 'rW  r   z?' has failed to send a keep-alive heartbeat to the rendezvous 'r  rî   r€  N)r¾  r¨  rè  râ   r~   rZ   r½  rE  rº  r‡   rñ   rÄ   rÅ   r   rí  rK   r   rî  r  )r7   r  r¶   rÆ   r  s   &    r&   rX  Ú$DynamicRendezvousHandler._keep_alive-  s+  € Ø×!×!Ó!Ü'Ó)ˆBà×)Ñ)¨$¯.©.×*@Ñ*@×*JÑ*JÓKˆHð$Ø×!Ñ!×%Ñ% bÔ3ð ! §¡Ð 1ð 2ØŸ™×-Ñ-Ð.¨bð2ð ð —‘ S�Ô)Ü—‘˜SÔ!÷ "Ñ!øô #ô $à  §¡Ð 1ð 2#Ø#'§>¡>×#8Ñ#8Ð"9Ð9SÔTXÐY[ÓT\×TeÑTeÐSfÐfgðið ð —‘ S´Y×5EÑ5E�ÔFÜ—‘˜s×#Ñ#ûð$ú÷ "×!Ð!ús1   •:EÁA)CÃEÃA3EÅEÅEÅEÅE	c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   r°  D  s   ø€ ÷ 	'ñ 	' 4ñ 	'r(   c                ó&  € \        V P                  P                  V P                  \        P
                  ! V 4      4      V n        V P                  P                  R V P                  P                   24       V P                  P                  4        R# )ÚRendezvousKeepAliveTimer_N)r   râ   rŠ   r  ÚweakrefÚrefr¿  Úset_namerº  r–   Ústartr6   s   &r&   ré  Ú*DynamicRendezvousHandler._start_heartbeatsD  so   € Ü!/Ø�N‰N×.Ñ.°×0EÑ0EÄwÇ{Â{ÐSWÓGXó"
ˆÔð 	×Ñ×'Ñ'Ø'¨¯©×(@Ñ(@Ð'AÐBô	
ð 	×Ñ×$Ñ$Ö&r(   c                ó   <€ V ^8„  d   QhRR/# r<   r5   )r0   r1   s   "€r&   r2   r°  O  s   ø€ ÷ (ñ ( $ñ (r(   c                óZ   € V P                   f   R # V P                   P                  4        R # rJ   )r¿  Úcancelr6   s   &r&   rç  Ú)DynamicRendezvousHandler._stop_heartbeatsO  s#   € Ø×!Ñ!Ò)Ùà×Ñ×%Ñ%Ö'r(   c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# r+   )r=   rŒ   )r0   r1   s   "€r&   r2   r°  U  s   ø€ ÷ Lñ L™E¡#¡s (�Oñ Lr(   c                ó’   € V P                   P                  pVP                  V P                  ,          \	        VP                  4      3# rJ   )rN  rD   r¸   rº  r!   )r7   rD   s   & r&   rê  Ú#DynamicRendezvousHandler._get_worldU  s8   € Ø×"Ñ"×(Ñ(ˆà×!Ñ! $§/¡/Õ2´C¸×8JÑ8JÓ4KÐKÐKr(   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# )r,   r¯  r-   r   )r0   r1   s   "€r&   r2   r°  Z  s   ø€ ÷ 3ñ 3¡ð 3©5ñ 3r(   c                ó¢   € R V P                   P                   RV P                  P                  P                   2p\
        P                  ! W!4      # )ztorch.rendezvous.rî   )râ   r‡   rN  rD   r´   rÈ  ÚPrefixStore)r7   r¯  Ú
key_prefixs   && r&   Ú_wrap_storeÚ$DynamicRendezvousHandler._wrap_storeZ  sH   € à §¡× 5Ñ 5Ð6°a¸×8JÑ8J×8PÑ8P×8VÑ8VÐ7WÐXð 	ô ×Ò 
Ó2Ð2r(   c                ó    <€ V ^8„  d   QhRS[ /# r+   r   )r0   r1   s   "€r&   r2   r°  a  s   ø€ ÷ -ñ -™Eñ -r(   c                ó8   € V P                  V P                  4      # rJ   )r0  r¼  r6   s   &r&   rë  Ú#DynamicRendezvousHandler._get_storea  s   € Ø×Ñ §¡Ó,Ð,r(   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r,   r~   r-   )r   r"  )r0   r1   s   "€r&   r2   r°  d  s   ø€ ÷ :ñ :¡Yð :±5ñ :r(   c                óV   € \         P                  ! 4       VP                  4       ,           # rJ   )r  r  Útotal_seconds)r7   r~   s   &&r&   rè  Ú&DynamicRendezvousHandler._get_deadlined  s   € Ü�~Š~Ó '×"7Ñ"7Ó"9Õ9Ð9r(   c                óœ   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[;R&   S[P                  ;R&   S[R,          ;R	&   # )
r,   rº  râ   r»  r¼  rN  r½  r¾  Nr¿  )	r�   r   r/   r   rÉ   r=  rŸ   r    r   )r0   r1   s   "€r&   r2   r°  ä  su   ø‡ ‚ ñ Ññ ñ "Ñ!ñ ñ Ññ ñ �Mñ ñ *Ñ)ñ ñ (Ñ'ñ ñ —^‘^Ñ#ñ ñ &¨Õ,Ñ,ò r(   )
r»  rÁ  r¾  r¿  r½  râ   rÀ  rN  r¼  rº  )NNé   é   )%rK   rL   rM   rN   rO   r›   r³  Úclassmethodrµ  r`   r   r$  rñ   rÑ  rP   rÂ   rØ  rà  rö  rü  r   r  r  r  rn   Ústaticmethodr  rX  ré  rç  rê  r0  rë  rè  r�   rQ   rR   rS   s   @r&   r   r   ä  s@  ø‡ € ÙMñ .Ó/Ðð ÷2Fñ 2Fó ð2F÷h+Fð +Fð` !*× 1Ñ 1Ø÷	
ò 
÷"
ð 
ð ÷ó ð÷"ð "ð ÷Kó ðK÷X
ð X
÷tð ÷
ð 
÷ð ÷%ð %÷ð ÷0	ð 	ð ÷ó ð÷
$ð $÷.	'ð 	'÷(ð (÷Lð L÷
3ð 3÷-ð -÷:ð :÷A ƒ r(   c                óJ   € V ^8„  d   QhR\         R\        R\        R,          /# )r,   ÚparamsÚkeyr-   N)r   r/   r   )r0   s   "r&   r2   r2   h  s'   € ÷ &ñ &Ô-ð &´Cð &¼IÈÕ<Lñ &r(   c                 óV   € V P                  VR ,           4      pVf   R# \        VR7      # )Ú_timeoutNrV   )Ú
get_as_intr   )r?  r@  r~   s   && r&   Ú_get_timeoutrD  h  s*   € Ø×Ñ  jÕ 0Ó1€GØ‚ÙÜ˜WÔ%Ð%r(   c                óH   € V ^8„  d   QhR\         R\        R\        R\        /# )r,   r¯  rÛ   r?  r-   )r   r   r   r   )r0   s   "r&   r2   r2   o  s2   € ÷ Cñ CÜðCÜ,ðCÜ6JðCäñCr(   c                ó6  €  \        \        VR4      \        VR4      \        VR4      \        VR4      4      pVP                  R^4      pVf   \        R4      hVP                  R^4      pVf   \        R	4      h\        P                  VP                  V VVP                  VP                  VP                  VVVR
7	      #   \         dN   p\        \        T4      P                   R\        T4       2TP                  \        P                   R7       h Rp?ii ; i)aê  Create a new :py:class:`DynamicRendezvousHandler` from the specified parameters.

Args:
    store:
        The C10d store to return as part of the rendezvous.
    backend:
        The backend to use to hold the rendezvous state.

+-------------------+------------------------------------------------------+
| Parameter         | Description                                          |
+===================+======================================================+
| join_timeout      | The total time, in seconds, within which the         |
|                   | rendezvous is expected to complete. Defaults to 600  |
|                   | seconds.                                             |
+-------------------+------------------------------------------------------+
| last_call_timeout | An additional wait amount, in seconds, before        |
|                   | completing the rendezvous once the minimum number of |
|                   | nodes has been reached. Defaults to 30 seconds.      |
+-------------------+------------------------------------------------------+
| close_timeout     | The time, in seconds, within which the rendezvous is |
|                   | expected to close after a call to                    |
|                   | :py:meth:`RendezvousHandler.set_closed` or           |
|                   | :py:meth:`RendezvousHandler.shutdown`. Defaults to   |
|                   | 30 seconds.                                          |
+-------------------+------------------------------------------------------+
| heartbeat         | The time, in seconds, within which a keep-alive      |
|                   | heartbeat is expected to complete                    |
+-------------------+------------------------------------------------------+
rU   rX   rY   rZ   rŠ   NzJYou passed 'keep_alive_interval=None' as a rendezvous configuration optionr‹   zMYou passed 'keep_alive_max_attempt=None' as a rendezvous configuration optionr²  rä  )rê   r‡   rë   )r   rD  rC  Ú	TypeErrorr   rµ  r‡   rˆ   r‰   r¥   rì  r   rí  rK   r/   r   rî  )r¯  rÛ   r?  r~   rŠ   r‹   rô  s   &&&    r&   Úcreate_handlerrH  o  s)  € ð@#Ü#Ü˜ Ó(Ü˜ Ó-Ü˜ Ó)Ü˜ Ó-ó	
ˆð %×/Ñ/Ð0EÀqÓIÐØÒ&ÜØ\óð ð "(×!2Ñ!2Ð3KÈQÓ!OÐØ!Ò)ÜØ_óð ô (×4Ñ4Ø�M‰MØØØ×ÑØ×ÑØ×ÑØØ 3Ø#9ð 5ó 

ð 
	
øô ô Ü'Ü˜A“w×'Ñ'Ð(¨¬3¨q«6¨(Ð3Ø—=‘=Ü ×'Ñ'õ	
ð
 	ûðús   ‚B=C  Ã DÃADÄD)r   r   r   r   rH  )r,   )Er"   r	  rª   r  r¨   rŸ   r  r   Úabcr   r   Úcollections.abcr   Údataclassesr   r   r   r	   Úenumr
   Útypingr   Útorch.distributedÚdistributedrÈ  r   Ú torch.distributed.elastic.eventsr   r   Úapir   r   r   r   r   r   r   r   r   Úutilsr   r   Ú__all__Ú	getLoggerrK   rÄ   r'   r?   r   r   r   r�   r›   r°   rÇ   rÉ   rÙ   r&  r5  r=  rH  rŒ  rŽ  rš  r¢  r¨  r   rD  rH  r5   r(   r&   Ú<module>rU     sŒ  ðó Û Û 	Û Û Û Û Û ß #Ý $Ý !ß 2Ñ 2Ý Ý å  Ý #ß W÷
÷ 
õ 
÷ *ò€ð 
×	Ò	˜8Ó	$€ôð 	€Ø Gô:˜ô :÷zE/ñ E/ñP �˜%¨Ô-÷ ð  ó .ð ñ8 ˆd˜$ tÔ,÷9ð 9ó -ð9÷(Pñ P÷6+"ñ +"õ\"ô*-˜Sô -ô,bÐ$:ô bôJˆdô ÷$!ñ !ô2˜Cô ô8w"Ð'<ô w"õt	÷ñ ÷eñ e÷P.ñ .÷ñ ôA:Ð0ô A:õH&÷Cr(   