Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Merge templateDefaults into dag task tmpl. Fixes #12821 #12833

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jswxstw
Copy link
Contributor

@jswxstw jswxstw commented Mar 22, 2024

Fixes #12821

Motivation

Metrics did not caculate as expected when using templateDefaults in workflows of DAG type.

Modifications

Merge templateDefaults into task tmpl when collecting the completed task metrics.

Verification

local test and e2e test

Signed-off-by: oninowang <oninowang@tencent.com>
@Joibel
Copy link
Member

Joibel commented Mar 25, 2024

Does a similar issue occur with steps as well, it feels like it should?

@jswxstw
Copy link
Contributor Author

jswxstw commented Mar 25, 2024

Does a similar issue occur with steps as well, it feels like it should?

It works well with steps(I've tested), because only DAG template has special logic of computeMetrics.

Copy link
Member

@Joibel Joibel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Joibel Joibel self-assigned this Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strange metric values when using counter defined in templateDefaults
2 participants