Add ntfy notification system and enhance logging for error handling

This commit is contained in:
Misaka_Company
2026-01-08 13:30:38 +08:00
parent 1e91071769
commit c50573fd78
5 changed files with 211 additions and 87 deletions

View File

@@ -323,7 +323,17 @@ SYNC_MAPPING = {
}
}
}
# ================= ntfy 配置 =================
NTFY_CONFIG = {
'enabled': True, # 是否启用通知
'server_url': 'https://ntfy.server10086.icu', # 如果是自建服务器,请修改为自己的 URL
'topic': 'bld', # 你的订阅主题
'token': 'tk_eop5fs66acxtwxf6vlkiojhdvkgb0', # <--- 在这里填入你的 Access Token
'priority': {
'error': 'high', # 错误消息优先级
'critical': 'urgent' # 严重错误优先级
}
}
# ================= 运行参数 =================
POLL_INTERVAL = 5 # 轮询间隔(秒)
BATCH_SIZE = 10000 # 批量处理大小