SIENTIAPDE-1100

Improve error handling in OPC activities; raise exceptions instead of logging errors and add data type validation in OpcRepository
This commit is contained in:
2025-06-12 09:06:31 -03:00
parent e8afa2673e
commit 1057db1d73
3 changed files with 26 additions and 11 deletions

View File

@@ -63,7 +63,7 @@ class OPC(BaseActivity):
level=NotificationLevel.ERROR,
attachment_content=trace
)
self.logger.error(trace)
raise e
@activity.defn(name='write_opc_data')
async def write_opc_data(self, input_data: dict[str, Any]):