From 5e2df178e1d5dd901812b574e2c47bf7ed8d5478 Mon Sep 17 00:00:00 2001 From: z3st Date: Tue, 21 Jul 2026 20:45:26 +0800 Subject: [PATCH] feat: re-enable auto-run pipeline after connectivity test --- main.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index b1bd8c9..b57b235 100644 --- a/main.py +++ b/main.py @@ -728,9 +728,22 @@ def main(): log(f"[ModelHub提交] ❌ error={e}") log("=" * 50) - log("连通性测试完成,请查看上方结果") + log("连通性测试完成") log("=" * 50) + # 开始正式提交流程 + log("\n自动触发提交流程...") + try: + state['running'] = True + state['last_run'] = datetime.now().isoformat() + count = run_pipeline(submit_limit=30) + state['last_result'] = {'submitted': count, 'success': True} + except Exception as e: + log(f"流程异常: {traceback.format_exc()}") + state['last_result'] = {'error': str(e), 'success': False} + finally: + state['running'] = False + threading.Thread(target=_startup_test, daemon=True).start() while not shutdown_requested: