Remove the fixed round limit from AI development tasks
Verify control plane / verify (push) Canceled after 0s
Verify control plane / verify (pull_request) Canceled after 0s

This commit is contained in:
WebUp Cloud committed 2026-11-08 00:43:51 +08:00
1 parent 36ee771ef0
commit 66d339fbed
5 files changed
+34 -13

No files matched your search

@@ -429,10 +429,7 @@ public class TaskService {
if (action.equals("cancel") && (stopping || status.equals("CANCELLED"))) return find(id, user);
if (stopping) throw new ApiError.Failure(409, "任务正在停止");
if (action.equals("resume") && status.equals("PAUSED")) {
db.update(
"UPDATE ai_tasks SET status='QUEUED',error='',requested_action='',max_steps=CASE WHEN"
+ " max_steps<=step_count THEN step_count+30 ELSE max_steps END WHERE id=?",
id);
db.update("UPDATE ai_tasks SET status='QUEUED',error='',requested_action='' WHERE id=?", id);
event(id, "QUEUED", "用户继续任务");
} else if (action.equals("pause") && (status.equals("QUEUED") || status.equals("RUNNING"))) {
if (status.equals("QUEUED")) db.update("UPDATE ai_tasks SET status='PAUSED' WHERE id=?", id);