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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user