Skip to content

Commit

Permalink
adapt cancellation action ids
Browse files Browse the repository at this point in the history
  • Loading branch information
steebchen committed Jun 27, 2024
1 parent 28c51ba commit ed2d6a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/worker/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (j *WorkflowJob) ToWorkflow(svcName string, namespace string) types.Workflo

if j.Concurrency != nil {
w.Concurrency = &types.WorkflowConcurrency{
ActionID: "concurrency:" + getFnName(j.Concurrency.fn), // TODO this should also be namespaced
ActionID: w.Name + ":concurrency:" + getFnName(j.Concurrency.fn),
}

if j.Concurrency.maxRuns != nil {
Expand Down Expand Up @@ -251,7 +251,7 @@ func (j *WorkflowJob) ToActionMap(svcName string) map[string]any {
}

if j.Concurrency != nil {
res["concurrency:"+getFnName(j.Concurrency.fn)] = j.Concurrency.fn
res[j.Name+":concurrency:"+getFnName(j.Concurrency.fn)] = j.Concurrency.fn
}

if j.OnFailure != nil {
Expand Down

0 comments on commit ed2d6a4

Please sign in to comment.