Refactor configurable options and add sphinx docs - #1174
Conversation
There was a problem hiding this comment.
Excluded docs for this on purpose since it's only used internally.
There was a problem hiding this comment.
It's only used by wait_retry_backoff. Although it can be configured for ingest method, not sure if we want to expose that.
There was a problem hiding this comment.
It's just strange how we allow users to set it but we dont document it. I think it should be documented.
There was a problem hiding this comment.
Shifted out of configurable options.
d2155fe to
1cd114d
Compare
Signed-off-by: Terence <terencelimxp@gmail.com>
1cd114d to
22838c8
Compare
Signed-off-by: Terence <terencelimxp@gmail.com>
2bc2037 to
eddf9e8
Compare
Signed-off-by: Terence <terencelimxp@gmail.com>
eddf9e8 to
fc5c87b
Compare
Signed-off-by: Terence <terencelimxp@gmail.com>
|
I love this PR. |
Signed-off-by: Terence <terencelimxp@gmail.com>
Signed-off-by: Terence <terencelimxp@gmail.com>
| #: Feast Spark Job ingestion jobs staging location | ||
| SPARK_STAGING_LOCATION: str = "" | ||
|
|
||
| #: Feast Spark Job ingestion jar file |
There was a problem hiding this comment.
It currently depends on spark launcher: in dataproc http and gs is supported; in emr http and s3, in local mode http and file
| #: Spark Job launcher | ||
| SPARK_LAUNCHER: str = "dataproc" # standalone, dataproc, emr | ||
|
|
||
| #: Feast Spark Job ingestion jobs staging location |
| #: Time to wait for historical feature requests before timing out. | ||
| BATCH_FEATURE_REQUEST_WAIT_TIME_SECONDS: str = "600" | ||
|
|
||
| #: Authentication Provider - Google OpenID/OAuth |
| #: Enable user authentication to Feast Core | ||
| ENABLE_AUTH: str = "False" | ||
|
|
||
| #: Auth token for user authentication to Feast |
There was a problem hiding this comment.
What kind of auth? What does this mean?
| #: Default StatsD port | ||
| STATSD_PORT: str = "" | ||
|
|
||
| #: IngestionJob DeadLetter Destination |
There was a problem hiding this comment.
Again gs supported by dataproc launcher, s3 by emr.
We do not include s3 support in dataproc launcher and vice versa
| AUTH_PROVIDER: str = "google" | ||
|
|
||
| #: Spark Job launcher | ||
| SPARK_LAUNCHER: str = "dataproc" # standalone, dataproc, emr |
There was a problem hiding this comment.
Should we change this to standalone so that users arent forced to use dataproc by default?
There was a problem hiding this comment.
Defaults to None. Users should set this on their own.
Signed-off-by: Terence <terencelimxp@gmail.com>
e1b9676 to
6fce7e9
Compare
Signed-off-by: Terence <terencelimxp@gmail.com>
6fce7e9 to
36bc636
Compare
Signed-off-by: Terence <terencelimxp@gmail.com>
Signed-off-by: Terence <terencelimxp@gmail.com>
|
/retest |
| class ConfigMeta(type): | ||
| """ | ||
| Class factory which customizes ConfigOptions class instantiation. | ||
| Specifically, setting its name to lowercase of capitalized variable. |
Signed-off-by: Terence <terencelimxp@gmail.com>
Signed-off-by: Terence <terencelimxp@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pyalex, terryyylim The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
* Refactor constants and add sphinx docs Signed-off-by: Terence <terencelimxp@gmail.com> * Set default jobservice to none Signed-off-by: Terence <terencelimxp@gmail.com> * Fix auth tests Signed-off-by: Terence <terencelimxp@gmail.com> * Some fixes Signed-off-by: Terence <terencelimxp@gmail.com> * Address comments Signed-off-by: Terence <terencelimxp@gmail.com> * Address comments Signed-off-by: Terence <terencelimxp@gmail.com> * Test none default Signed-off-by: Terence <terencelimxp@gmail.com> * Set default as none Signed-off-by: Terence <terencelimxp@gmail.com> * Update docs Signed-off-by: Terence <terencelimxp@gmail.com> * Cleanup spark launcher constant Signed-off-by: Terence <terencelimxp@gmail.com> * Update constants and clarify docstring Signed-off-by: Terence <terencelimxp@gmail.com> * Polish docstrings Signed-off-by: Terence <terencelimxp@gmail.com>
Signed-off-by: Terence terencelimxp@gmail.com
What this PR does / why we need it:
Currently, constants used for
Configclass are declared separately from default values and the term is used interchangeably with config options, making it difficult to maintain as the number of configurable options increase.This PR addresses the following:
eg.
CONFIG_SPARK_HISTORICAL_FEATURE_OUTPUT_FORMAT = "historical_feature_output_format"toCONFIG_HISTORICAL_FEATURE_OUTPUT_FORMAT = "historical_feature_output_format"Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?: