mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(mavvrik): also use now as end_time for catch-up windows
This commit is contained in:
parent
482ac7ec61
commit
16634bb6b8
1 changed files with 4 additions and 1 deletions
|
|
@ -205,9 +205,12 @@ class MavvrikFocusLogger(FocusLogger):
|
|||
"Mavvrik FOCUS export: catching up missed date %s",
|
||||
catch_up_date.date(),
|
||||
)
|
||||
# Use now as end_time for catch-up windows too — rows for old dates
|
||||
# may have been flushed to DB well after their calendar day ended.
|
||||
catch_up_end = min(catch_up_date + timedelta(days=1), now)
|
||||
window = FocusTimeWindow(
|
||||
start_time=catch_up_date,
|
||||
end_time=catch_up_date + timedelta(days=1),
|
||||
end_time=catch_up_end,
|
||||
frequency="daily",
|
||||
)
|
||||
await self._export_window(window=window, limit=None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue