Skip to content

Commit fa74438

Browse files
authored
fix: Set default values for feature_store.serve() function (#4225)
1 parent 6b3094e commit fa74438

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

sdk/python/feast/cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ def serve_command(
680680
port: int,
681681
type_: str,
682682
no_access_log: bool,
683-
no_feature_log: bool,
684683
workers: int,
685684
keep_alive_timeout: int,
686685
registry_ttl_sec: int = 5,
@@ -693,7 +692,6 @@ def serve_command(
693692
port=port,
694693
type_=type_,
695694
no_access_log=no_access_log,
696-
no_feature_log=no_feature_log,
697695
workers=workers,
698696
keep_alive_timeout=keep_alive_timeout,
699697
registry_ttl_sec=registry_ttl_sec,

sdk/python/feast/feature_store.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,12 +2448,11 @@ def serve(
24482448
self,
24492449
host: str,
24502450
port: int,
2451-
type_: str,
2452-
no_access_log: bool,
2453-
no_feature_log: bool,
2454-
workers: int,
2455-
keep_alive_timeout: int,
2456-
registry_ttl_sec: int,
2451+
type_: str = "http",
2452+
no_access_log: bool = True,
2453+
workers: int = 1,
2454+
keep_alive_timeout: int = 30,
2455+
registry_ttl_sec: int = 2,
24572456
) -> None:
24582457
"""Start the feature consumption server locally on a given port."""
24592458
type_ = type_.lower()

0 commit comments

Comments
 (0)