fix: create a Scheduler instance after server initialization completes (#2043)

This commit is contained in:
Nico Miguelino
2024-08-30 12:56:58 -07:00
committed by GitHub
parent d5f5c63e1e
commit a5e71c95ae
2 changed files with 3 additions and 5 deletions

View File

@@ -11,9 +11,6 @@ python = ">=3.8,<3.12"
[tool.poetry.group.dev-host.dependencies]
flake8 = "^5.0.4"
[tool.poetry.scripts]
wee = "ls -l"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

View File

@@ -59,6 +59,7 @@ ZMQ_HOST_PUB_URL = 'tcp://host.docker.internal:10001'
MAX_BALENA_IP_RETRIES = 90
BALENA_IP_RETRY_DELAY = 1
SERVER_WAIT_TIMEOUT = 60
current_browser_url = None
browser = None
@@ -520,9 +521,9 @@ def main():
subscriber_2.daemon = True
subscriber_2.start()
scheduler = Scheduler()
wait_for_server(SERVER_WAIT_TIMEOUT)
wait_for_server(60)
scheduler = Scheduler()
if settings['show_splash']:
if is_balena_app():