File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import (
3030 "github.com/AliceO2Group/Control/common/event"
3131 "github.com/AliceO2Group/Control/common/logger/infologger"
3232 "github.com/AliceO2Group/Control/core/task"
33+ "github.com/AliceO2Group/Control/core/workflow"
3334)
3435
3536func NewStopActivityTransition (taskman * task.Manager ) Transition {
@@ -55,7 +56,12 @@ func (t StopActivityTransition) do(env *Environment) (err error) {
5556 Info ("stopping run" )
5657
5758 taskmanMessage := task .NewTransitionTaskMessage (
58- env .Workflow ().GetTasks (),
59+ env .Workflow ().GetTasks ().Filtered (func (t * task.Task ) bool {
60+ if pr , ok := t .GetParentRole ().(workflow.Role ); ok {
61+ return pr .GetStatus () == task .ACTIVE
62+ }
63+ return false
64+ }),
5965 task .RUNNING .String (),
6066 task .STOP .String (),
6167 task .CONFIGURED .String (),
You can’t perform that action at this time.
0 commit comments