SIENTIAPDE-1174

Update requirements and refactor manager classes to remove pod_id

- Updated the sientia-dataops-library dependency version to 1.3.8 in requirements.txt.
- Refactored IngestorManager, OpcManager, and ResourceManager classes to remove pod_id from their initialization and internal handling, enhancing code clarity and consistency.
- Adjusted unit tests to reflect the removal of pod_id, ensuring they remain functional and accurate.
This commit is contained in:
vitor-aignosi
2025-08-05 10:59:29 -03:00
parent bb40e723ba
commit 47e61360ff
7 changed files with 26 additions and 43 deletions

View File

@@ -14,7 +14,7 @@ import ingestor.metrics as metrics
class IngestorManager(BaseActivity):
def __init__(self,
kafka_servers: str, redis_data: dict,
lease_ttl: int, heartbeat_ttl: int, pod_id: str,
lease_ttl: int, heartbeat_ttl: int,
poll_interval: int, mongo_connection_string: str, mongo_database: str,
metadata: dict,
logger: Logger, notification_handler: NotificationHandler,
@@ -40,7 +40,6 @@ class IngestorManager(BaseActivity):
port=redis_port,
lease_ttl=lease_ttl,
heartbeat_ttl=heartbeat_ttl,
pod_id=pod_id,
metadata=metadata,
logger=logger,
notification_handler=notification_handler,
@@ -52,7 +51,6 @@ class IngestorManager(BaseActivity):
self.managed_tags = {}
self.opc_servers = {}
self.pod_id = pod_id
self.metadata = metadata
BaseActivity.__init__(self, logger=logger,
@@ -88,7 +86,6 @@ class IngestorManager(BaseActivity):
logger=self.logger,
server_uri=server_config['server_uri'],
notification_handler=self.notification_handler,
pod_id=self.pod_id,
metadata=self.metadata,
cert_path=server_config.get('cert_path'),
private_key_path=server_config.get('private_key_path'),