MCPcopy Index your code
hub / github.com/feast-dev/feast / async_refresh

Function async_refresh

sdk/python/feast/feature_server.py:384–393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382 active_timer.cancel()
383
384 def async_refresh():
385 if shutting_down:
386 return
387
388 store.refresh_registry()
389
390 if registry_ttl_sec:
391 nonlocal active_timer
392 active_timer = threading.Timer(registry_ttl_sec, async_refresh)
393 active_timer.start()
394
395 @asynccontextmanager
396 async def lifespan(app: FastAPI):

Callers 1

lifespanFunction · 0.70

Calls 1

refresh_registryMethod · 0.45

Tested by

no test coverage detected