feat(sfm): start/stop monitoring for Series 4 -- identity, state, dry run, audit, read-back, never retried
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
1 parent
ff0cce1cb2
commit
eada7ba767
7 files changed
+326
-13
No files matched your search
@@ -11,7 +11,7 @@ from minimateplus import MiniMateClient
|
||||
from minimateplus.blastware_file import blastware_filename
|
||||
from minimateplus.transport import TcpTransport
|
||||
|
||||
from .errors import DeviceError, EventNotFound, MalformedReply, NoAnswer, StaleEvent, WrongUnit, translate
|
||||
from .errors import DeviceError, EventNotFound, MalformedReply, NoAnswer, NotSupported, StaleEvent, WrongUnit, translate
|
||||
from .events import iso_of, make_event_id, stamp_of
|
||||
from .models import DownloadedEvent, EventList, EventRef, UnitAddress, UnitInfo, UnitSettings, UnitStatus
|
||||
|
||||
@@ -85,6 +85,9 @@ class Series3Adapter:
|
||||
def __init__(self, client_factory: Callable[..., Any] = default_s3_client_factory) -> None:
|
||||
self._factory = client_factory
|
||||
|
||||
def change_monitoring(self, address: UnitAddress, serial: str, **kw: Any) -> Any:
|
||||
raise NotSupported("Series 3 start/stop through DeviceAccess arrives in Task 5")
|
||||
|
||||
def _run(self, address: UnitAddress, fn: Callable[[Any], Any], timeout: Optional[float] = None) -> Any:
|
||||
def attempt() -> Any:
|
||||
client = self._factory(address) if timeout is None else self._factory(address, timeout=timeout)
|
||||
|
||||
Reference in new issue
Block a user