Skip to content

[Improvement-18127][Master] Remove the redundant workflow completion check when handling workflow timeout events#18128

Merged
SbloodyS merged 2 commits intoapache:devfrom
njnu-seafish:Improvement-18127
Apr 2, 2026
Merged

[Improvement-18127][Master] Remove the redundant workflow completion check when handling workflow timeout events#18128
SbloodyS merged 2 commits intoapache:devfrom
njnu-seafish:Improvement-18127

Conversation

@njnu-seafish
Copy link
Copy Markdown
Contributor

Was this PR generated or assisted by AI?

NO

Purpose of the pull request

close #18127

Brief change log

Because workflow events are handled sequentially, and a finished workflow instance unloads all pending events, the workflow cannot have ended when we are handling the timeout event.
Hence, when processing workflow timeout events, remove the check for whether the workflow has ended.

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@SbloodyS SbloodyS added the improvement make more easy to user or prompt friendly label Apr 2, 2026
@SbloodyS SbloodyS added this to the 3.4.2 milestone Apr 2, 2026
Copy link
Copy Markdown
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

LGTM

@SbloodyS SbloodyS changed the title [Improvement-18127][Master]Remove the redundant workflow completion check when handling workflow timeout events [Improvement-18127][Master] Remove the redundant workflow completion check when handling workflow timeout events Apr 2, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 2, 2026

@SbloodyS SbloodyS merged commit ff52988 into apache:dev Apr 2, 2026
121 of 122 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend improvement make more easy to user or prompt friendly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement][Master] Remove the redundant workflow completion check when handling workflow timeout events.

3 participants