Skip to content

Commit

Permalink
Change abort type from parallel to operation
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Nov 20, 2024
1 parent 7c7df2f commit 93ac8ed
Showing 1 changed file with 23 additions and 31 deletions.
54 changes: 23 additions & 31 deletions mta-v7.x/mta.sw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -535,39 +535,31 @@ states:
refName: errorResult
end: true
- name: CancelTaskAbort
type: parallel
type: operation
usedForCompensation: true
branches:
actions:
- name: logInfo
actions:
- name: logInfo
functionRef:
refName: logInfo
arguments:
message: '${"MTA workflow: " + $WORKFLOW.instanceId + " was aborted while task was still in progress}"'
functionRef:
refName: logInfo
arguments:
message: '${"MTA workflow: " + $WORKFLOW.instanceId + " was aborted while task was still in progress}"'
- name: "abortTasks"
actions:
- name: "abortTasks"
functionRef:
refName: deleteTaskGroup
arguments:
id: ".taskgroup.id"
functionRef:
refName: deleteTaskGroup
arguments:
id: ".taskgroup.id"
- name: createNotification
actions:
- name: createNotification
functionRef:
refName: createNotification
arguments:
recipients:
type: "entity"
entityRef: .recipients
payload:
title: "MTA analysis aborted"
description: '"MTA analysis for " + .application.repository.url + " aborted while tasks still in progress, tasks were cancelled"'
topic: "MTA Analysis Workflow"
severity: "critical"
functionRef:
refName: createNotification
arguments:
recipients:
type: "entity"
entityRef: .recipients
payload:
title: "MTA analysis aborted"
description: '"MTA analysis for " + .application.repository.url + " aborted while tasks still in progress, tasks were cancelled"'
topic: "MTA Analysis Workflow"
severity: "critical"
- name: reportAbort
actions:
- name: reportAbort
functionRef:
refName: abortResult
functionRef:
refName: abortResult

0 comments on commit 93ac8ed

Please sign in to comment.