forked from xhgit/webup-cloud
Follow the latest task logs while reading the tail
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user