Change schema sync env var to HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL

GitOrigin-RevId: 13ed047c9ff391e212c8a50dd13dd0adad666a9e
This commit is contained in:
Lyndon Maydwell 2021-04-29 08:26:32 +10:00 committed by hasura-bot
parent c834629afb
commit 507d3aac2c
3 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,7 @@
- cli: fix regression - `metadata apply —dry-run` was overwriting local metadata files with metadata on server when it should just display the differences.
- cli: add support for `api_limits` metadata object
- server: decrease polling interval for scheduled triggers from 60 to 10 seconds
- server: Change `HASURA_GRAPHQL_SCHEMA_POLL_INTERVAL` env var to `HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL` and `schema-poll-interval` option to `--schema-sync-poll-interval`.
## v2.0.0-alpha.9

View File

@ -262,6 +262,10 @@ For the ``serve`` sub-command these are the available flags and ENV variables:
*(Available for versions > v2.0.0)*
* - ``--schema-sync-poll-interval``
- ``HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL``
- Interval to poll metadata storage for updates in milliseconds - Default 1000 (1s) - Set to 0 to disable.
* - ``--experimental-features``
- ``HASURA_GRAPHQL_EXPERIMENTAL_FEATURES``
- List of experimental features to be enabled. A comma separated value is expected. Options: ``inherited_roles``.

View File

@ -668,7 +668,7 @@ maintenanceModeEnv =
schemaPollIntervalEnv :: (String, String)
schemaPollIntervalEnv =
( "HASURA_GRAPHQL_SCHEMA_POLL_INTERVAL"
( "HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL"
, "Interval to poll metadata storage for updates in milliseconds - Default 1000 (1s) - Set to 0 to disable"
)
@ -1050,7 +1050,7 @@ parseEnableMaintenanceMode =
parseSchemaPollInterval :: Parser (Maybe Milliseconds)
parseSchemaPollInterval = optional $
option (eitherReader readEither)
( long "schema-poll-interval" <>
( long "schema-sync-poll-interval" <>
metavar (fst schemaPollIntervalEnv) <>
help (snd schemaPollIntervalEnv)
)