Just warn on `ib` symbol search lags

pre_multi_feedz
Tyler Goodlet 2022-11-08 14:50:31 -05:00
parent 4eea8042ff
commit 9b6f4d24be
1 changed files with 7 additions and 1 deletions

View File

@ -1038,7 +1038,13 @@ async def open_symbol_search(
stock_results = [] stock_results = []
async def stash_results(target: Awaitable[list]): 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): for i in range(10):
with trio.move_on_after(3) as cs: with trio.move_on_after(3) as cs: