SIENTIAPDE-1182
SIENTIAPDE-1206: Add early return for empty receiver groups in Alerts workflow - Implemented an early return in the Alerts class to handle cases where no receiver groups are provided, preventing unnecessary processing in the notification workflow.
This commit is contained in:
@@ -70,6 +70,9 @@ class Alerts:
|
||||
retry_policy=retry_policy
|
||||
)
|
||||
|
||||
if not receiver_groups:
|
||||
return
|
||||
|
||||
# Call subworkflow "process_notifications" passing the notification package
|
||||
log_report = await workflow.execute_child_workflow(
|
||||
'process_notifications',
|
||||
|
||||
Reference in New Issue
Block a user