1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

increase default UI build timeout & add CLI option to override

This commit is contained in:
checktheroads
2021-01-28 23:04:02 -07:00
parent 81c65ce71e
commit 042ce35672
3 changed files with 16 additions and 35 deletions

View File

@@ -64,13 +64,10 @@ def hg():
@hg.command(
"build-ui", help=cmd_help(E.BUTTERFLY, "Create a new UI build", supports_color)
)
def build_frontend():
"""Create a new UI build.
Raises:
click.ClickException: Raised on any errors.
"""
return build_ui()
@option("-t", "--timeout", required=False, default=180, help="Timeout in seconds")
def build_frontend(timeout):
"""Create a new UI build."""
return build_ui(timeout)
@hg.command( # noqa: C901
@@ -121,7 +118,7 @@ def start(build, direct, workers): # noqa: C901
elif not build and direct:
uvicorn_start(**kwargs)
except KeyboardInterrupt:
except (KeyboardInterrupt, SystemExit):
error("Stopping hyperglass due to keyboard interrupt.")
except BaseException as err: