Skip to content

Commit

Permalink
increase service restart retrying period during upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rtertiaer committed Jun 10, 2024
1 parent 19d2fbd commit c116f48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Add serial number to eink display
* Add ability to display status on eink display
* Better logging around failed upgrades
* Make upgrades more stable
* Display
* Add serial number
* Add status code field
Expand Down
4 changes: 2 additions & 2 deletions scripts/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,15 +606,15 @@ def _start_restart_service(name: str, restart: bool, test_url: Union[None, str]
# wait a bit, so initial failures are detected before is-active is called
if tasks[-1].success:
# we need to check if the service is running
for _ in range(25): # retry for 5 seconds, giving the service time to start
for _ in range(50): # retry for 10 seconds, giving the service time to start
task_check, running = _service_status(service)
if running:
break
time.sleep(0.2)
tasks += task_check
if test_url and running:
task = None
for _ in range(40): # retry for 20 seconds, giving the server time to start
for _ in range(60): # retry for 30 seconds, giving the server time to start
task = _check_url(test_url)
if task.success:
break
Expand Down

0 comments on commit c116f48

Please sign in to comment.