Terminate early on data unavailable errors
parent
7b1c0939bd
commit
fcb85873de
|
@ -323,7 +323,7 @@ async def start_backfill(
|
||||||
# broker is being a bish and we can't pull
|
# broker is being a bish and we can't pull
|
||||||
# any more..
|
# any more..
|
||||||
log.warning('backend halted on data deliver !?!?')
|
log.warning('backend halted on data deliver !?!?')
|
||||||
# break
|
return input_end_dt, None
|
||||||
|
|
||||||
to_push = diff_history(
|
to_push = diff_history(
|
||||||
array,
|
array,
|
||||||
|
@ -361,6 +361,11 @@ async def start_backfill(
|
||||||
# Then iterate over the return values, as they become available
|
# Then iterate over the return values, as they become available
|
||||||
# (i.e., not necessarily in the original order)
|
# (i.e., not necessarily in the original order)
|
||||||
async for input_end_dt, outcome in outcomes:
|
async for input_end_dt, outcome in outcomes:
|
||||||
|
|
||||||
|
# no data available case..
|
||||||
|
if outcome is None:
|
||||||
|
break
|
||||||
|
|
||||||
try:
|
try:
|
||||||
out = outcome.unwrap()
|
out = outcome.unwrap()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in New Issue