update_manager: do not refresh when install validation is pending
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
53fcc7386f
commit
65e24a14dc
|
@ -245,6 +245,10 @@ class UpdateManager:
|
||||||
return eventtime + UPDATE_REFRESH_INTERVAL
|
return eventtime + UPDATE_REFRESH_INTERVAL
|
||||||
vinfo: Dict[str, Any] = {}
|
vinfo: Dict[str, Any] = {}
|
||||||
need_notify = False
|
need_notify = False
|
||||||
|
machine: Machine = self.server.lookup_component("machine")
|
||||||
|
if machine.validation_enabled():
|
||||||
|
self.initial_refresh_complete = True
|
||||||
|
return eventtime + UPDATE_REFRESH_INTERVAL
|
||||||
async with self.cmd_request_lock:
|
async with self.cmd_request_lock:
|
||||||
try:
|
try:
|
||||||
for name, updater in list(self.updaters.items()):
|
for name, updater in list(self.updaters.items()):
|
||||||
|
@ -389,7 +393,10 @@ class UpdateManager:
|
||||||
# Override a request to refresh if:
|
# Override a request to refresh if:
|
||||||
# - An update is in progress
|
# - An update is in progress
|
||||||
# - Klippy is printing
|
# - Klippy is printing
|
||||||
|
# - Validation is pending
|
||||||
|
machine: Machine = self.server.lookup_component("machine")
|
||||||
if (
|
if (
|
||||||
|
machine.validation_enabled() or
|
||||||
self.cmd_helper.is_update_busy() or
|
self.cmd_helper.is_update_busy() or
|
||||||
await self._check_klippy_printing() or
|
await self._check_klippy_printing() or
|
||||||
not self.initial_refresh_complete
|
not self.initial_refresh_complete
|
||||||
|
|
Loading…
Reference in New Issue