Follow the latest task logs while reading the tail
Verify control plane / verify (pull_request) Canceled after 0s
Verify control plane / verify (push) Canceled after 0s

This commit is contained in:
WebUp Cloud committed 2026-11-07 18:48:36 +08:00
1 parent db82325ed7
commit 6c5224fb6f
3 files changed
+53 -8

No files matched your search

@@ -68,8 +68,9 @@ public class TaskController {
@AuthenticationPrincipal SecurityConfig.Identity who, @PathVariable UUID id) {
tasks.find(id, who.id());
return db.queryForList(
"SELECT * FROM ai_task_steps WHERE task_id=? AND event NOT IN"
+ " ('AUTO_SETTLEMENT','MANUAL_SETTLEMENT') ORDER BY created_at,id LIMIT 1000",
"SELECT * FROM (SELECT * FROM ai_task_steps WHERE task_id=? AND event NOT IN"
+ " ('AUTO_SETTLEMENT','MANUAL_SETTLEMENT') ORDER BY created_at DESC,id DESC LIMIT"
+ " 1000) AS recent ORDER BY created_at,id",
id);
}