Skip to content

Commit

Permalink
Refactor constants and add sphinx docs
Browse files Browse the repository at this point in the history
Signed-off-by: Terence <[email protected]>
  • Loading branch information
terryyylim committed Nov 18, 2020
1 parent 977f659 commit 22838c8
Show file tree
Hide file tree
Showing 10 changed files with 329 additions and 315 deletions.
9 changes: 8 additions & 1 deletion sdk/python/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,11 @@ Feature

.. automodule:: feast.feature
:inherited-members:
:members:
:members:

Constants
==================

.. automodule:: feast.constants
:members:
:exclude-members: AuthProvider
6 changes: 3 additions & 3 deletions sdk/python/feast/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from feast.client import Client
from feast.config import Config
from feast.constants import CONFIG_SPARK_LAUNCHER
from feast.constants import ConfigOptions
from feast.entity import Entity
from feast.feature_table import FeatureTable
from feast.job_service import start_job_service
Expand Down Expand Up @@ -422,7 +422,7 @@ def stop_stream_to_online(feature_table: str):
Stop stream to online sync job
"""

spark_launcher = Config().get(CONFIG_SPARK_LAUNCHER)
spark_launcher = Config().get(ConfigOptions.SPARK_LAUNCHER)

if spark_launcher == "emr":
import feast.pyspark.aws.jobs
Expand All @@ -441,7 +441,7 @@ def list_jobs():
"""
from tabulate import tabulate

spark_launcher = Config().get(CONFIG_SPARK_LAUNCHER)
spark_launcher = Config().get(ConfigOptions.SPARK_LAUNCHER)

if spark_launcher == "emr":
import feast.pyspark.aws.jobs
Expand Down
Loading

0 comments on commit 22838c8

Please sign in to comment.