feat: 守护模式,无数据时等待10秒继续检查

This commit is contained in:
2026-02-05 21:32:28 +08:00
parent 5a6fbcbf28
commit 40b861ae3d
4 changed files with 569 additions and 4 deletions

View File

@@ -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) ---")