优化照片识别功能架构
This commit is contained in:
@@ -3,7 +3,7 @@ import traceback
|
||||
|
||||
from auto_email.error_email import send_error_email
|
||||
from log import LOGGING_CONFIG
|
||||
from photo_review import photo_review, SEND_ERROR_EMAIL
|
||||
from photo_review import photo_review, SEND_ERROR_EMAIL, RETRY_TIME
|
||||
|
||||
# 项目必须从此处启动,否则代码中的相对路径可能导致错误的发生
|
||||
if __name__ == '__main__':
|
||||
@@ -11,7 +11,7 @@ if __name__ == '__main__':
|
||||
logging.config.dictConfig(LOGGING_CONFIG)
|
||||
|
||||
# 崩溃后的重试次数
|
||||
for _ in range(2):
|
||||
for _ in range(RETRY_TIME + 1):
|
||||
try:
|
||||
logging.info(f"【{program_name}】开始运行")
|
||||
photo_review.main()
|
||||
|
||||
Reference in New Issue
Block a user