Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
0b944476
Commit
0b944476
authored
2 months ago
by
geant-release-service
Browse files
Options
Downloads
Plain Diff
Finished release 2.43.
parents
7c8a484f
4d9ff6f9
No related branches found
No related tags found
No related merge requests found
Pipeline
#92504
passed
2 months ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Changelog.md
+4
-0
4 additions, 0 deletions
Changelog.md
gso/workflows/tasks/send_email_notifications.py
+12
-5
12 additions, 5 deletions
gso/workflows/tasks/send_email_notifications.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
17 additions
and
6 deletions
Changelog.md
+
4
−
0
View file @
0b944476
# Changelog
## [2.43] - 2025-03-14
-
fix send email notification for failed prefix list checks.
## [2.42] - 2025-03-13
-
Send a separate notification email for failed prefix list checks.
-
Upgrade
`orchestrator-core`
to 3.1.1.
...
...
This diff is collapsed.
Click to expand it.
gso/workflows/tasks/send_email_notifications.py
+
12
−
5
View file @
0b944476
...
...
@@ -5,8 +5,6 @@ of subscription validation workflows. The second email contains an overview of t
failed.
"""
from
typing
import
Any
from
orchestrator.targets
import
Target
from
orchestrator.workflow
import
StepList
,
conditional
,
done
,
init
,
step
,
workflow
from
pydantic_forms.types
import
State
...
...
@@ -23,11 +21,20 @@ def gather_failed_tasks() -> State:
failed_prefix_list_tasks
=
get_failed_tasks_by_workflow_name
(
"
validate_prefix_list
"
)
all_other_tasks
=
list
(
set
(
get_failed_tasks
())
-
set
(
failed_prefix_list_tasks
))
return
{
"
failed_tasks
"
:
all_other_tasks
,
"
failed_prefix_list_checks
"
:
failed_prefix_list_tasks
}
return
{
"
failed_tasks
"
:
[
{
"
process_id
"
:
failure
.
process_id
,
"
last_step
"
:
failure
.
last_step
,
"
failed_reason
"
:
failure
.
failed_reason
}
for
failure
in
all_other_tasks
],
"
failed_prefix_list_checks
"
:
[
{
"
process_id
"
:
failure
.
process_id
,
"
last_step
"
:
failure
.
last_step
,
"
failed_reason
"
:
failure
.
failed_reason
}
for
failure
in
failed_prefix_list_tasks
],
}
@step
(
"
Send notification email for failed tasks
"
)
def
send_email_notification
(
failed_tasks
:
list
[
dict
[
str
,
Any
]
])
->
None
:
def
send_email_notification
(
failed_tasks
:
list
[
dict
])
->
None
:
"""
Send out an email notification for all tasks that have failed.
"""
general_settings
=
load_oss_params
().
GENERAL
all_alerts
=
""
...
...
@@ -56,7 +63,7 @@ def send_email_notification(failed_tasks: list[dict[str, Any]]) -> None:
@step
(
"
Send notification emails for failed prefix list tasks
"
)
def
send_prefix_list_email_notification
(
failed_prefix_list_checks
:
list
[
dict
[
str
,
Any
]
])
->
None
:
def
send_prefix_list_email_notification
(
failed_prefix_list_checks
:
list
[
dict
])
->
None
:
"""
Send out an email notification for all prefix list validation tasks that have failed.
"""
general_settings
=
load_oss_params
().
GENERAL
all_alerts
=
""
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
0b944476
...
...
@@ -4,7 +4,7 @@ from setuptools import find_packages, setup
setup
(
name
=
"
geant-service-orchestrator
"
,
version
=
"
2.4
2
"
,
version
=
"
2.4
3
"
,
author
=
"
GÉANT Orchestration and Automation Team
"
,
author_email
=
"
goat@geant.org
"
,
description
=
"
GÉANT Service Orchestrator
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment