This commit is contained in:
kf_wuhao 2021-01-14 15:06:19 +08:00
parent fab527c87b
commit 407f2e3075

View File

@ -31,9 +31,11 @@ def run_task(kwargs):
msg = traceback.format_exc() msg = traceback.format_exc()
ddsend_msg(f'异常退出 {msg}') ddsend_msg(f'异常退出 {msg}')
logger.error(msg) logger.error(msg)
finally: else:
pass
# ddsend_msg(f'正常完成任务 {kwargs.get("task_name")} 耗时 {int(time.time()) - start_ts}') # ddsend_msg(f'正常完成任务 {kwargs.get("task_name")} 耗时 {int(time.time()) - start_ts}')
logger.debug(f'任务结束.。 {kwargs.get("task_name")} 耗时 {int(time.time()) - start_ts}') finally:
logger.debug(f'任务结束。 {kwargs.get("task_name")} 耗时 {int(time.time()) - start_ts}')
if __name__ == '__main__': if __name__ == '__main__':