Function
start_server
(
store: "feast.FeatureStore",
host: str,
port: int,
project_id: str,
root_path: str = "",
tls_key_path: str = "",
tls_cert_path: str = "",
)
Source from the content-addressed store, hash-verified
| 1104 | |
| 1105 | |
| 1106 | def start_server( |
| 1107 | store: "feast.FeatureStore", |
| 1108 | host: str, |
| 1109 | port: int, |
| 1110 | project_id: str, |
| 1111 | root_path: str = "", |
| 1112 | tls_key_path: str = "", |
| 1113 | tls_cert_path: str = "", |
| 1114 | ): |
| 1115 | app = get_app( |
| 1116 | store, |
| 1117 | project_id, |
| 1118 | root_path, |
| 1119 | ) |
| 1120 | |
| 1121 | logger.info(f"Starting Feast UI server on {host}:{port}") |
| 1122 | |
| 1123 | if tls_key_path and tls_cert_path: |
| 1124 | uvicorn.run( |
| 1125 | app, |
| 1126 | host=host, |
| 1127 | port=port, |
| 1128 | ssl_keyfile=tls_key_path, |
| 1129 | ssl_certfile=tls_cert_path, |
| 1130 | ) |
| 1131 | else: |
| 1132 | uvicorn.run(app, host=host, port=port) |
Callers
nothing calls this directly
Tested by
no test coverage detected