Skip to content

Commit

Permalink
Throttle connectivity check on connectivity issue
Browse files Browse the repository at this point in the history
If Supervisor detects a connectivity issue, currenlty every function
which requires internet get delayed by 10s due to the connectivity
check. This especially slows down initial startup when there are
connectivity issues. It is unlikely to resolve immeaditly, so throttle
the connectivity check to check every 30s.
  • Loading branch information
agners committed Oct 9, 2024
1 parent 1504278 commit b66e7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/supervisor.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _check_connectivity_throttle_period(coresys: CoreSys, *_) -> timedelta:
if coresys.supervisor.connectivity:
return timedelta(minutes=10)

return timedelta()
return timedelta(seconds=30)


class Supervisor(CoreSysAttributes):
Expand Down

0 comments on commit b66e7f7

Please sign in to comment.