mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +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",
|
"Mavvrik FOCUS export: catching up missed date %s",
|
||||||
catch_up_date.date(),
|
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(
|
window = FocusTimeWindow(
|
||||||
start_time=catch_up_date,
|
start_time=catch_up_date,
|
||||||
end_time=catch_up_date + timedelta(days=1),
|
end_time=catch_up_end,
|
||||||
frequency="daily",
|
frequency="daily",
|
||||||
)
|
)
|
||||||
await self._export_window(window=window, limit=None)
|
await self._export_window(window=window, limit=None)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue