Skip to content

Commit

Permalink
Change config name to match existing conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
antesaj committed Apr 5, 2023
1 parent 021496c commit 70de2ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/server-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ at [`logging.config` documentation page](https://docs.python.org/3.6/library/log
through the `/query` method, or using the `tabpy.query(...)` syntax with
the `/evaluate` method.
- `TABPY_GZIP_ENABLE` - Enable Gzip support for requests. Enabled by default.
- `TABPY_ARROW_ENABLE` - Enable Arrow connection for data streaming.
- `TABPY_ARROWFLIGHT_PORT` - port for
[Arrow Flight](https://arrow.apache.org/docs/format/Flight.html)
connection used in streaming mode.
Expand Down
2 changes: 1 addition & 1 deletion tabpy/tabpy_server/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def _parse_config(self, config_file):
100, None),
(SettingsParameters.GzipEnabled, ConfigParameters.TABPY_GZIP_ENABLE,
True, parser.getboolean),
(SettingsParameters.ArrowEnabled, ConfigParameters.TABPY_ENABLE_ARROW, False, parser.getboolean),
(SettingsParameters.ArrowEnabled, ConfigParameters.TABPY_ARROW_ENABLE, False, parser.getboolean),
(SettingsParameters.ArrowFlightPort, ConfigParameters.TABPY_ARROWFLIGHT_PORT, 13622, parser.getint),
]

Expand Down
2 changes: 1 addition & 1 deletion tabpy/tabpy_server/app/app_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ConfigParameters:
TABPY_GZIP_ENABLE = "TABPY_GZIP_ENABLE"

# Arrow specific settings
TABPY_ENABLE_ARROW = "TABPY_ENABLE_ARROW"
TABPY_ARROW_ENABLE = "TABPY_ARROW_ENABLE"
TABPY_ARROWFLIGHT_PORT = "TABPY_ARROWFLIGHT_PORT"


Expand Down

0 comments on commit 70de2ce

Please sign in to comment.