Skip to content

Commit

Permalink
fix: create a Scheduler instance after server initialization comple…
Browse files Browse the repository at this point in the history
…tes (#2043)
  • Loading branch information
nicomiguelino authored Aug 30, 2024
1 parent d5f5c63 commit a5e71c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 3 additions & 2 deletions viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

MAX_BALENA_IP_RETRIES = 90
BALENA_IP_RETRY_DELAY = 1
SERVER_WAIT_TIMEOUT = 60

current_browser_url = None
browser = None
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit a5e71c9

Please sign in to comment.