Skip to content

Commit

Permalink
Change schema sync env var to HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 13ed047
  • Loading branch information
sordina authored and hasura-bot committed Apr 28, 2021
1 parent c834629 commit 507d3aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down
4 changes: 2 additions & 2 deletions server/src-lib/Hasura/Server/Init.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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)
)
Expand Down

0 comments on commit 507d3aa

Please sign in to comment.