Skip to content

Instantly share code, notes, and snippets.

@julie-mills
Created April 18, 2023 18:48
Show Gist options
  • Save julie-mills/38e52f50ebd263dd9105e48f4ac077ab to your computer and use it in GitHub Desktop.
Save julie-mills/38e52f50ebd263dd9105e48f4ac077ab to your computer and use it in GitHub Desktop.
from feast import FeatureStore
from datetime import datetime
def run_server():
store = FeatureStore(repo_path=".")
# Materialize all data within our ttl (50 hours) from the offline(parquet file)
# store to online store(Rockset).
store.materialize_incremental(end_date=datetime.utcnow())
store.serve(host="127.0.0.1", port=6566, type_="http", no_access_log=True, no_feature_log=True)
if __name__ == "__main__":
run_server()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment