
    JiV	                         S SK r S SKJr  \ R                  (       a  S SKJr  SS jr  SS\R                  S\S	\S
\	S\ R                  S/S4   4
S jjrg)    N)_utils)RetryCallStater   returnc                     g)z(Before sleep strategy that does nothing.N )retry_states    W/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/tenacity/before_sleep.pybefore_sleep_nothingr
      s        logger	log_levelexc_info
sec_formatc                 $   ^ ^^^ SUUU U4S jjnU$ )z;Before sleep strategy that logs to some logger the attempt.c                 V  > U R                   c  [        S5      eU R                  c  [        S5      eU R                   R                  (       a[  U R                   R	                  5       nSUR
                  R                   SU 3p2T(       a  U R                   R	                  5       nO SnOSU R                   R                  5       p2SnU R                  c  SnO [        R                  " U R                  5      nTR                  TSU S	T	U R                  R                  -   S
U SU S3	US9  g )Nz&log_it() called before outcome was setz*log_it() called before next_action was setraisedz: Freturnedz	<unknown>z	Retrying z in z seconds as it  .)r   )outcomeRuntimeErrornext_actionfailed	exception	__class____name__resultfnr   get_callback_namelogsleep)
r   exverbvaluelocal_exc_infofn_namer   r   r   r   s
         r	   log_it before_sleep_log.<locals>.log_it%   s!    &GHH""*KLL%%$$..0B"r||'<'<&=Rt$D%!,!4!4!>!>!@!&$k&9&9&@&@&B%"N>>!!G..{~~>G

y !{66<<<=_TFRSTYSZZ[]#	 	 	
r   r   r   r   Nr   )r   r   r   r   r'   s   ```` r	   before_sleep_logr*      s     
  
D Mr   r)   )Fz%.3g)typingtenacityr   TYPE_CHECKINGr   r
   LoggerProtocolintboolstrCallabler*   r   r   r	   <module>r3      sq   "  	'3 	*!!** * 	*
 __&'-.*r   