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

Bugfix/jointask output #3055

Merged
merged 2 commits into from
Jun 22, 2022
Merged

Bugfix/jointask output #3055

merged 2 commits into from
Jun 22, 2022

Conversation

jxu-nflx
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

  • re-throw TerminateWorkflowException for task update
  • Add only non-empty task output for Join

Describe the new behavior from this PR, and why it's needed
Issue #

Alternatives considered

Describe alternative implementation you have considered

@jxu-nflx jxu-nflx requested a review from aravindanr June 21, 2022 22:15
@@ -60,7 +60,10 @@ public boolean execute(
if (hasFailures) {
failureReason.append(forkedTask.getReasonForIncompletion()).append(" ");
}
task.addOutput(joinOnRef, forkedTask.getOutputData());
// Only add to task output if it's not empty
if (!forkedTask.getOutputData().isEmpty()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does getOutputData() always return a non-null value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, we always init it to empty map

Copy link
Contributor

Choose a reason for hiding this comment

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

FYI this breaks backward compatibility if anyone relied on this to be present.

@jxu-nflx jxu-nflx merged commit a99e939 into main Jun 22, 2022
@jxu-nflx jxu-nflx deleted the bugfix/jointask-output branch June 22, 2022 04:22
v1r3n added a commit to orkes-io/conductor that referenced this pull request Jun 24, 2022
* Fix docsite description (for SEO)

* Introducing RequestHandler which encapsulates all HTTP operations. The JerseyRequestHandler is an implementation that uses the Jersey client.

* removed usages of Guava

* Typo fix (Netflix#3029)

* task summary ui (Netflix#3028)

* Add tests for updateTask

* Add callbackAfterSeconds and pollCount in the Task Summary tab

* additional constructors in JerseyRequestHandler to simplify its creation

* updated reminder about formatting

* Replace old logo asset with new logo

* Raise max results per page to 1000

* [UI] Separate workflowDefs from latestWorkflowDefs. Reuse existing react-query hooks wherever possible.

* [UI] Refactor task related data hooks.
* Replace workflow-by-task search with simple task search.
* Separate fetchers for poll data and queue size

* [UI] Support terminate with reason in Actions & Bulk Actions

* [UI] Search for Tasks directly

* [UI] Refactor Task Poll Data page to correctly account for domains.
* Add a Poll Data tab to task panel

* [UI] Fix duration formatting

* [UI] Update views to use refactored workflow data hooks and Dropdowns

* [UI] Refactor Do-while loops

* [UI] Use new logo in AppLogo

* improve performance of checkForWorkflowCompletion

* sdk documentation additions (Netflix#3047)

* sdk documentation additions

* csharp update

* Bugfix/jointask output (Netflix#3055)

* re-throw TerminateWorkflowException for task update

* Add only non-empty task output for Join

* decider changes

* fixes

* Update build.gradle

* updates

* terminate

* Update ForkJoinDynamicTaskMapper.java

* Update SwitchTaskMapper.java

* more changes

* disable tests (temp)

* formatting

Co-authored-by: peterlau <[email protected]>
Co-authored-by: Aravindan Ramkumar <[email protected]>
Co-authored-by: Aaron Felkai <[email protected]>
Co-authored-by: jxu-nflx <[email protected]>
Co-authored-by: Doug Sillars <[email protected]>
pmchung pushed a commit to routific/conductor that referenced this pull request Sep 6, 2023
* re-throw TerminateWorkflowException for task update

* Add only non-empty task output for Join
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants