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

JOIN task is made async #3284

Merged
merged 1 commit into from
Oct 14, 2022
Merged

JOIN task is made async #3284

merged 1 commit into from
Oct 14, 2022

Conversation

apanicker-nflx
Copy link
Collaborator

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

The JOIN task is made async and will be evaluated by the async system task executor and the system task workers off the JOIN task queue. This improves the efficiency of workflow evaluations because the workflow will now be evaluated only after the JOIN task reaches a terminal state rather than for every forked task update leading to empty evaluations.

@apanicker-nflx apanicker-nflx force-pushed the async_join branch 4 times, most recently from 21f36dc to 0fa8948 Compare October 14, 2022 06:22
@apanicker-nflx apanicker-nflx merged commit ef57cd8 into main Oct 14, 2022
@apanicker-nflx apanicker-nflx deleted the async_join branch October 14, 2022 20:30
if (isLazyEvaluateWorkflow(workflowInstance.getWorkflowDefinition(), task)) {
expediteLazyWorkflowEvaluation(workflowId);
} else {
if (!isLazyEvaluateWorkflow(workflowInstance.getWorkflowDefinition(), task)) {
Copy link

Choose a reason for hiding this comment

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

@apanicker-nflx What's the intent of this change? It seems like an oversight cause if the condition is false (in other words, the workflow isLazyEvalute), nothing happens anymore.

@Holmesus
Copy link

Hi~ Make JOIN task async causing a problem.Can anyone fix it or just make JOIN sync ?#3528

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: important Important changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants