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:
@@ -393,7 +393,9 @@ class MongoDB(SientiaMonitoring):
|
|||||||
created_indexes = []
|
created_indexes = []
|
||||||
|
|
||||||
for _pipeline_name, pipeline_config in pipelines.items():
|
for _pipeline_name, pipeline_config in pipelines.items():
|
||||||
collection = pipeline_config['topic']
|
collection = pipeline_config.get('topic', None)
|
||||||
|
if not collection:
|
||||||
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Check if collection exists
|
# Check if collection exists
|
||||||
|
|||||||
Reference in New Issue
Block a user