tell; try to catch if no events occur and state goes to ready

This commit is contained in:
2026-06-24 15:29:59 +02:00
committed by appleb_m
parent 6996a91b59
commit 350068378b
+11
View File
@@ -213,6 +213,17 @@ class TellClient:
timeout=wait_timeout,
)
logger.info(f"event: {event} occurred with value: {value}")
if event == "state" and value == 'Ready':
logger.warning('READY does not mean mount success')
try:
msg = self.check_command_ok(
timeout=wait_timeout, msg=f"Mount {segment}{puck}-{sample}: "
)
logger.info(f"Check command okay response: {msg}")
return TellEventValueEnum.SUCCESS
except Exception as e:
raise TellCommunicationError(f"Error: {e}")
if event is None or event == "state":
logger.info(f"event: {event} occurred with value: {value}, checking command completed okay")
self.check_command_ok(