Skip to content
Snippets Groups Projects
Commit f8d344ed authored by David Hammer's avatar David Hammer
Browse files

Configure preview assemblers with new maxIdle parameter

parent 5b17e66a
No related branches found
No related tags found
1 merge request!12Snapshot: field test deployed version as of end of run 202201
...@@ -382,6 +382,16 @@ class CalibrationManager(DeviceClientBase, Device): ...@@ -382,6 +382,16 @@ class CalibrationManager(DeviceClientBase, Device):
accessMode=AccessMode.INITONLY, accessMode=AccessMode.INITONLY,
assignment=Assignment.MANDATORY) assignment=Assignment.MANDATORY)
maxIdle = Double(
displayedName='Preview source timeout',
description='TrainMatcher (used for preview assemblers) has an option '
'(maxIdle) to automatically ignore sources which have not '
'sent data in the last maxIdle seconds (if maxIdle > 0). '
'Useful in case a module fails. If missing source comes '
'back, it will be matched again.',
defaultValue=1,
accessMode=AccessMode.RECONFIGURABLE)
webserverApi = Node( webserverApi = Node(
WebserverApiNode, WebserverApiNode,
displayedName='Webserver API', displayedName='Webserver API',
...@@ -1295,6 +1305,7 @@ class CalibrationManager(DeviceClientBase, Device): ...@@ -1295,6 +1305,7 @@ class CalibrationManager(DeviceClientBase, Device):
for (virtual_id, device_id) for (virtual_id, device_id)
in correct_device_id_by_module.items()] in correct_device_id_by_module.items()]
config['geometryDevice'] = self.geometryDevice.value config['geometryDevice'] = self.geometryDevice.value
config['maxIdle'] = self.maxIdle.value
if not await self._instantiate_device( if not await self._instantiate_device(
server, class_ids['assembler'], assembler_device_id, config server, class_ids['assembler'], assembler_device_id, config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment