diff --git a/laborious/activities/opc.py b/laborious/activities/opc.py index c99a54d..23b2ac5 100644 --- a/laborious/activities/opc.py +++ b/laborious/activities/opc.py @@ -125,7 +125,15 @@ class OPC(BaseActivity): for server_id, config in opc_output_config.items(): if self.opc_repository.get(server_id) is None: - self.error(f"OPC server {server_id} not found", metadata) + message = f"OPC server {server_id} not found to perform write operation." + self.send_notification( + metadata=metadata, + notification_id="OPC_SERVER_NOT_FOUND", + message=message, + block="write_opc_data", + level=NotificationLevel.ERROR, + attachment_content=f"OPC servers: {list(self.opc_repository.keys())}" + ) continue if 'prediction_tags' in config: