Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/labelfab/agent/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
#: Backoff between reconnect attempts within one send, in seconds.
_BACKOFF_S = (1.0, 3.0, 9.0)

#: How long the startup probe waits for the printer's replies to arrive on the
#: transport's reader thread before reading them.
#: How long a probe waits for the printer's replies to arrive on the transport's
#: reader thread before reading them.
_PROBE_SETTLE_S = 1.0


Expand Down Expand Up @@ -312,11 +312,11 @@ def probe_device(self) -> bool:
printer.refresh_telemetry()
except D30Error as exc:
printer.close()
log.info("startup probe: printer did not answer (%s); keeping the stored status", exc)
log.info("probe: printer did not answer (%s); keeping the stored status", exc)
return False
except Exception: # a status nicety must never be what stops the agent starting
printer.close()
log.exception("startup probe failed; keeping the stored status")
log.exception("probe failed; keeping the stored status")
return False
# Replies land asynchronously on the transport's reader thread, and unlike the
# print path there is no print duration to cover the wait. Settling short is
Expand Down
Loading