Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Failed task names #3185

Merged
merged 3 commits into from
Aug 18, 2022
Merged

Failed task names #3185

merged 3 commits into from
Aug 18, 2022

Conversation

peterlau
Copy link
Contributor

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes (Please run ./gradlew generateLock saveLock to refresh dependencies)
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Add field failedTaskNames to Workflow and WorkflowSummary, to be indexed in ES enabling workflows to be queried for by the TaskDef names of the failed tasks.

Alternatives considered

Modifying

@@ -319,8 +322,16 @@ public Set<String> getFailedReferenceTaskNames() {
return failedReferenceTaskNames;
}

public void setFailedReferenceTaskNames(Set<String> failedReferenceTaskNames) {
this.failedReferenceTaskNames = failedReferenceTaskNames;
public void setFailedReferenceTaskNames(Set<String> failedTaskNames) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Is this variable name change really needed? I feel that the original retains readability.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. That's a benign but unintended global search-n-replace error.

@apanicker-nflx apanicker-nflx added the type: feature New feature label Aug 18, 2022
@apanicker-nflx apanicker-nflx merged commit 33062f3 into main Aug 18, 2022
@apanicker-nflx apanicker-nflx deleted the failedTaskNames branch August 18, 2022 23:50
pmchung pushed a commit to routific/conductor that referenced this pull request Sep 6, 2023
* Add support for tracking failed task names with workflow execution

* Fix tests

* Undo inadvertent variable name change
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants