From e7705964d5f4e1eace34bb957089628f9c8f3fdb Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Fri, 27 Mar 2026 14:09:48 -0300 Subject: [PATCH] SIENTIAPDE-1712 Fix error model retrieval in notification_generator.ipynb and add on_conflict parameter to common_config in orchestrator_functions.py for improved error handling. --- notification_generator.ipynb | 2 +- orchestrator/utils/orchestrator_functions.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/notification_generator.ipynb b/notification_generator.ipynb index 8d24f92..6f8b7a4 100644 --- a/notification_generator.ipynb +++ b/notification_generator.ipynb @@ -151,7 +151,7 @@ } ], "source": [ - "error_models = general_events.get('ERROR', {}).get('models', [])\n", + "error_models = general_events.get('ERROR', {}).get('', [])\n", "warning_models = general_events.get('WARNING', {}).get('models', [])\n", "info_models = general_events.get('INFO', {}).get('models', [])\n", "mail_type = 'Alerts'\n", diff --git a/orchestrator/utils/orchestrator_functions.py b/orchestrator/utils/orchestrator_functions.py index 0e6ad32..ba8867b 100644 --- a/orchestrator/utils/orchestrator_functions.py +++ b/orchestrator/utils/orchestrator_functions.py @@ -38,6 +38,7 @@ def common_config(config: dict[str, Any]): 'model_config': model.get('model_config', {}), 'execution_timeout_seconds': config.get('execution_timeout_seconds', 300), 'task_timeout_seconds': config.get('task_timeout_seconds', 300), + 'on_conflict': config.get('on_conflict', 'error'), }