From 3eed33f0d836f91e029a8cf60f71763041cd20b6 Mon Sep 17 00:00:00 2001 From: z3st Date: Fri, 24 Jul 2026 20:30:10 +0800 Subject: [PATCH] chore: increase submit limit from 2 to 5 --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 9a328e3..f607dc6 100644 --- a/main.py +++ b/main.py @@ -314,7 +314,7 @@ def submit_model(model_url: str) -> tuple: # 主流程 # ============================================================ -def run_pipeline(submit_limit: int = 2): +def run_pipeline(submit_limit: int = 5): """完整流程:搜索→筛选→提交(只针对目标GPU)""" init_db() log("=" * 50) @@ -487,7 +487,7 @@ class AgentHandler(BaseHTTPRequestHandler): if content_len > 0: body = json.loads(self.rfile.read(content_len)) - limit = body.get('limit', 2) + limit = body.get('limit', 5) self._json({'status': 'started', 'gpu': TARGET_GPU, 'limit': limit}) @@ -704,7 +704,7 @@ def main(): try: state['running'] = True state['last_run'] = datetime.now().isoformat() - count = run_pipeline(submit_limit=2) + count = run_pipeline(submit_limit=5) state['last_result'] = {'submitted': count, 'success': True} except Exception as e: log(f"流程异常: {traceback.format_exc()}")