From 78c7c8524c1f3065bb463bccf8b79ab6f4c48210 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 5 Jan 2023 15:09:31 -0500 Subject: [PATCH] Breakpoint when bad 1m history offsets are detected --- piker/data/feed.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/piker/data/feed.py b/piker/data/feed.py index c517777a..b1678d26 100644 --- a/piker/data/feed.py +++ b/piker/data/feed.py @@ -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