修改时间

This commit is contained in:
wzy-warehouse
2026-05-12 16:40:52 +08:00
parent 2d71ad4a92
commit 784df78826
+3 -6
View File
@@ -68,12 +68,9 @@ class RainfallManager:
# 更新最后记录的ID # 更新最后记录的ID
self.last_max_id = max_id self.last_max_id = max_id
# 等待一段时间后再次检查(例如每5分钟) # 等待一段时间后再次检查
time.sleep(300) time.sleep(5)
# 更新查询时间为当前时间
query_time = datetime.now()
except Exception as e: except Exception as e:
self.logger.error(f"监测循环出错: {e}", exc_info=True) self.logger.error(f"监测循环出错: {e}", exc_info=True)
time.sleep(60) # 出错后等待1分钟再继续 time.sleep(60) # 出错后等待1分钟再继续