SIENTIAPDE-1325

Enhance release workflow to trigger only on merged pull requests and streamline data insertion in DataManager

- Updated the release workflow to execute only when a pull request is merged.
- Simplified the document insertion logic in DataManager by consolidating the dictionary construction.
- Refactored OPC Manager tests to utilize asynchronous mocks for improved accuracy in testing.
This commit is contained in:
vitor-aignosi
2025-11-10 09:14:35 -03:00
parent 373245d5a1
commit 89278827e7
5 changed files with 7 additions and 15 deletions

View File

@@ -202,7 +202,7 @@ class OpcManager(SientiaMonitoring):
tags={
'pod_id': self.pod_id,
'server_name': self.name,
}
},
)
try:
self.client = Client(self.url, timeout=10, watchdog_intervall=3600000)
@@ -574,8 +574,6 @@ class OpcManager(SientiaMonitoring):
if self.non_receive_count >= 15:
await self.emit_metric(
metric_object=metrics.OPC_RECONNECTIONS_TOTAL,
method='inc',
value=1,
tags={
'pod_id': self.pod_id,
'server_name': self.name,