mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 06:14:51 +00:00
rabbit fixes
This commit is contained in:
1 parent
cdbc4695ea
commit
f4331cd3a3
31 files changed
+470
-87
No files matched your search
@@ -173,7 +173,8 @@ class ScheduleRunsRepository:
|
||||
"""Aggregate run stats for an agent's owned schedules over a window.
|
||||
|
||||
Only runs of schedules owned by ``user_id`` on ``agent_id`` whose
|
||||
``scheduled_for`` falls within the last ``days`` days are counted.
|
||||
``scheduled_for`` falls within the last ``days`` days are counted;
|
||||
runs scheduled in the future are not.
|
||||
|
||||
Args:
|
||||
agent_id: Agent UUID the schedules belong to.
|
||||
@@ -198,6 +199,7 @@ class ScheduleRunsRepository:
|
||||
AND s.user_id = :user_id
|
||||
AND r.user_id = :user_id
|
||||
AND r.scheduled_for >= now() - make_interval(days => :days)
|
||||
AND r.scheduled_for <= now()
|
||||
),
|
||||
latest_failure AS (
|
||||
SELECT scheduled_for, status, error_type
|
||||
|
||||
Reference in new issue
Block a user