SIENTIAPDE-1445

Enhance MongoDB activity to handle missing topic configurations gracefully by using get() method and skipping empty collections, improving robustness in pipeline processing.
This commit is contained in:
vitor-aignosi
2025-12-18 12:16:37 -03:00
parent 5d2d297aa2
commit 886c6362ce

View File

@@ -393,7 +393,9 @@ class MongoDB(SientiaMonitoring):
created_indexes = []
for _pipeline_name, pipeline_config in pipelines.items():
collection = pipeline_config['topic']
collection = pipeline_config.get('topic', None)
if not collection:
continue
try:
# Check if collection exists