Skip to content

Commit

Permalink
Add DASH_HOT_RELOAD_MAX_RETRY environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Nov 14, 2018
1 parent f68f031 commit 8ed142a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions dash/_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def env_configs():
'DASH_HOT_RELOAD',
'DASH_HOT_RELOAD_INTERVAL',
'DASH_HOT_RELOAD_WATCH_INTERVAL',
'DASH_HOT_RELOAD_MAX_RETRY',
'DASH_SILENCE_ROUTES_LOGGING'
)})

Expand Down
15 changes: 13 additions & 2 deletions dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,14 @@ def enable_dev_tools(self,
Available dev_tools environment variables:
- DASH_DEBUG
- DASH_SERVE_DEV_BUNDLES
- DASH_HOT_RELOAD
- DASH_HOT_RELOAD_INTERVAL
- DASH_HOT_RELOAD_WATCH_INTERVAL
- DASH_HOT_RELOAD_MAX_RETRY
- DASH_SILENCE_ROUTES_LOGGING
:param debug: If True, then activate all the tools unless specifically
disabled by the arguments or by environ variables. Available as
`DASH_DEBUG` environment variable.
Expand All @@ -1097,9 +1105,12 @@ def enable_dev_tools(self,
`DASH_HOT_RELOAD_WATCH_INTERVAL` environment variable.
:type dev_tools_hot_reload_watch_interval: float
:param dev_tools_hot_reload_max_retry: Maximum amount of retries before
failing and display a pop up. Default 30.
failing and display a pop up. Default 30. Available as
`DASH_HOT_RELOAD_MAX_RETRY` environment variable.
:type dev_tools_hot_reload_max_retry: int
:param dev_tools_silence_routes_logging: Silence the `werkzeug` logger,
will remove all routes logging.
will remove all routes logging. Available as
`DASH_SILENCE_ROUTES_LOGGING` environment variable.
:type dev_tools_silence_routes_logging: bool
:return: debug
"""
Expand Down

0 comments on commit 8ed142a

Please sign in to comment.