feat: 守护模式,无数据时等待10秒继续检查
This commit is contained in:
@@ -263,8 +263,9 @@ class ImageSimilarityRecalc:
|
||||
images = self.get_recalc_images()
|
||||
|
||||
if not images:
|
||||
self.logger.info("没有需要重新计算的图片")
|
||||
break
|
||||
self.logger.info("没有需要重新计算的图片,等待 10 秒后继续检查...")
|
||||
time.sleep(10)
|
||||
continue
|
||||
|
||||
batch_num += 1
|
||||
self.logger.info(f"\n--- 批次 {batch_num}: {len(images)} 张 (recalc) ---")
|
||||
|
||||
Reference in New Issue
Block a user