INNER CODE UNIT · Python
remaining
roboflow/inference · inference_server/inference_server/app.py:154
remaining = deadline - time.monotonic()
if remaining <= _PINNED_PRELOAD_RETRY_S:
logger.error(
"Preload of '%s' gave up after %.0f s; serving without it",
mid,
time.monotonic() - started,
)
return
await asyncio.sleep(_PINNED_PRELOAD_RETRY_S)
try:
await asyncio.gather(
*(_one(mid, key, is_pinned) for mid, (key, is_pinned) in loads.items())
)
finally:
state.preload_finished = True