From 5bf3cb8e4b45d82f62a1b35abdd6120e245f3a0a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 8 Nov 2022 14:50:31 -0500 Subject: [PATCH] Just warn on `ib` symbol search lags --- piker/brokers/ib/feed.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/piker/brokers/ib/feed.py b/piker/brokers/ib/feed.py index e15e8462..442cbdeb 100644 --- a/piker/brokers/ib/feed.py +++ b/piker/brokers/ib/feed.py @@ -1047,7 +1047,13 @@ async def open_symbol_search( stock_results = [] async def stash_results(target: Awaitable[list]): - stock_results.extend(await target) + try: + results = await target + except tractor.trionics.Lagged: + print("IB SYM-SEARCH OVERRUN?!?") + return + + stock_results.extend(results) for i in range(10): with trio.move_on_after(3) as cs: