riku
2024-01-10 a9e8e27e0503552b7b2a99c821da732175d4f071
1
2
3
4
5
6
7
8
9
10
11
12
U
½,eñã@s@ddlZddlmZddlmZddlmZdd„Zdd„ZdS)    éN)Údatetime)ÚLogUtils)Ú    DateUtilscs‡fdd„}|S)u失败重试逻辑csXd}d}||krT|dkrTˆƒ}|dkrT|d}t |›d|›d¡t |¡qqTq|S)NFréu失败,程序会在u秒后再次尝试!)rÚerrorÚtimeÚsleep)Z retry_timesÚ    wait_timeÚtagZsucessÚcount©Úfunc©úBe:\PycharmProject\fugitive_dust_new\task\request_task_decorator.pyÚinner s zretry.<locals>.innerr©r rrr rÚretry
s rcstttdœ‡fdd„ }|S)u分时段循环执行逻辑)Ú
start_timeÚend_timeÚintervelcs*t |||¡}|D]}ˆ||fžŽqdS)uÊ
        Args:
            start_time: å¼€å§‹æ—¶é—´
            end_time: ç»“束时间
            intervel: æ—¶é—´åˆ†æ®µé—´éš”,单位小时
            obj: è‡ªå®šä¹‰ä»»æ„ç±»åž‹é™„带参数
        N)rÚ
time_slice)rrrÚobjZ    time_listÚitemr rrrs    z$time_phased_execution.<locals>.inner)rÚintrrr rÚtime_phased_executions r)rrÚutils.log_utilsrÚutils.date_utilsrrrrrrrÚ<module>s