Skip to content

Commit

Permalink
fix(cache): Cache executions with no outputs. Fixes #3507 (#3808)
Browse files Browse the repository at this point in the history
Fixes #3507
  • Loading branch information
Ark-kun authored Aug 21, 2020
1 parent fe21cd2 commit 40353bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/src/cache/server/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ func WatchPods(namespaceToWatch string, clientManager ClientManagerInterface) {
continue
}

executionOutput, exists := pod.ObjectMeta.Annotations[ArgoWorkflowOutputs]
executionKey := pod.ObjectMeta.Annotations[ExecutionKey]
executionKey, exists := pod.ObjectMeta.Annotations[ExecutionKey]
if !exists {
continue
}

executionOutput, exists := pod.ObjectMeta.Annotations[ArgoWorkflowOutputs]

executionOutputMap := make(map[string]interface{})
executionOutputMap[ArgoWorkflowOutputs] = executionOutput
executionOutputMap[MetadataExecutionIDKey] = pod.ObjectMeta.Labels[MetadataExecutionIDKey]
Expand Down

0 comments on commit 40353bf

Please sign in to comment.