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(flow): optimize flow submitter about exception handler #2431

Merged
merged 22 commits into from
May 22, 2024

Conversation

krihy
Copy link
Collaborator

@krihy krihy commented May 20, 2024

What type of PR is this?

What this PR does / why we need it:

optimize FlowTaskSubmitter about exception handler, if BaseRuntimeFlowableDelegate throw exception, we check the ErrorEventDefinition boundary with the node, if the boundary error code match with current exception, flowTaskCallBackApprovalService will approve the callback task with FAILED, otherwise approve with COMPLETED,
by this pr flowTaskCallBackApprovalService do not care about the task type. and flowNode status update by ExecutionListener boundary by the ErrorEventDefinition

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

this pr has test passed:
case1: when submit async task and cancel it , the flow status will be CANCELED
case2: when submit a invalid sql async task, the flow status will be FAILED
case3: when submit a normal sql async task, the flow status will be COMPLETED

Additional documentation e.g., usage docs, etc.:


@krihy krihy added type-bug Something isn't working enhancement New feature or request type-refactor refactor code or rename variables labels May 20, 2024
@krihy krihy added this to the ODC 4.3.0 milestone May 20, 2024
@krihy krihy self-assigned this May 20, 2024
@yhilmare yhilmare changed the title fix(flow): optimize flow submitter about exception handler [WIP] fix(flow): optimize flow submitter about exception handler May 20, 2024
@yhilmare
Copy link
Contributor

👏 great job

@krihy krihy marked this pull request as ready for review May 20, 2024 07:16
@krihy krihy requested a review from yhilmare as a code owner May 20, 2024 07:16
@krihy krihy changed the title [WIP] fix(flow): optimize flow submitter about exception handler fix(flow): optimize flow submitter about exception handler May 20, 2024
@krihy krihy requested review from yizhouxw and guowl3 May 20, 2024 07:42
yhilmare
yhilmare previously approved these changes May 21, 2024
Copy link
Contributor

@yhilmare yhilmare left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@yhilmare yhilmare left a comment

Choose a reason for hiding this comment

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

lgtm

@yhilmare yhilmare merged commit f45e6b6 into dev/4.3.0 May 22, 2024
7 checks passed
@yhilmare yhilmare deleted the yaobin_flow_submitter_optimize branch May 22, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request type-bug Something isn't working type-refactor refactor code or rename variables
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants