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.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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'),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user