Breakpoint when bad 1m history offsets are detected

epoch_index_backup
Tyler Goodlet 2023-01-05 15:09:31 -05:00
parent 496ef0a9ac
commit 59483dc8e8
1 changed files with 6 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class _FeedsBus(Struct):
target: Awaitable,
*args,
) -> None:
) -> trio.CancelScope:
async def start_with_cs(
task_status: TaskStatus[
@ -308,6 +308,11 @@ async def start_backfill(
- pendulum.from_timestamp(times[-2])
).seconds
if step_size_s == 60:
inow = round(time.time())
if (inow - times[-1]) > 60:
await tractor.breakpoint()
# frame's worth of sample-period-steps, in seconds
frame_size_s = len(array) * step_size_s