update
This commit is contained in:
parent
2545fb6003
commit
44f9dec9d3
4
main.py
4
main.py
@ -30,10 +30,10 @@ def run_task(kwargs):
|
||||
except Exception as e:
|
||||
msg = traceback.format_exc()
|
||||
ddsend_msg(f'异常退出 {msg}')
|
||||
logger.error(repr(e))
|
||||
logger.error(msg)
|
||||
finally:
|
||||
# ddsend_msg(f'正常完成任务 {kwargs.get("task_name")} 耗时 {int(time.time()) - start_ts}')
|
||||
logger.debug(f'正常完成任务 {kwargs.get("task_name")} 耗时 {int(time.time()) - start_ts}')
|
||||
logger.debug(f'任务结束 {kwargs.get("task_name")} 耗时 {int(time.time()) - start_ts}')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user