Skip to content

Conversation

@ruanwenjun
Copy link
Member

@ruanwenjun ruanwenjun commented Jan 5, 2026

Purpose of the pull request

close #17834

Brief change log

  • Add new interface IWorkflowFailureStrategy to deal with failure strategy, when workflow use End failure strategy, will kill other active task instance if one task instance failed.

Verify this pull request

Test by IT case.

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

@ruanwenjun ruanwenjun marked this pull request as draft January 5, 2026 14:37
@ruanwenjun ruanwenjun added the bug Something isn't working label Jan 5, 2026
@ruanwenjun ruanwenjun added this to the 3.4.1 milestone Jan 5, 2026
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fix17834 branch from f111c62 to c481652 Compare January 6, 2026 14:29
@ruanwenjun ruanwenjun marked this pull request as ready for review January 6, 2026 14:29
@ruanwenjun ruanwenjun requested a review from Gallardot as a code owner January 6, 2026 14:29
@github-actions github-actions bot added the test label Jan 6, 2026
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fix17834 branch from c481652 to a645d18 Compare January 6, 2026 14:35
public interface IWorkflowFailureStrategy {

void onTaskFailure(IWorkflowExecutionRunnable workflowExecutionRunnable,
ITaskExecutionRunnable taskExecutionRunnable);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'taskExecutionRunnable' is never used.
ITaskExecutionRunnable taskExecutionRunnable);

boolean canTriggerSuccessor(IWorkflowExecutionRunnable workflowExecutionRunnable,
ITaskExecutionRunnable taskExecutionRunnable);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'taskExecutionRunnable' is never used.
@Getter
private final List<IWorkflowLifecycleListener> workflowInstanceLifecycleListeners;

@Getter

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
IWorkflowExecutionRunnable.getWorkflowFailureStrategy
; it is advisable to add an Override annotation.
@ruanwenjun ruanwenjun marked this pull request as draft January 7, 2026 03:38
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_fix17834 branch 3 times, most recently from a561ee4 to 5afe620 Compare January 7, 2026 14:02
@ruanwenjun ruanwenjun marked this pull request as ready for review January 8, 2026 01:23
Copy link
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 requested a review from zhongjiajie January 9, 2026 02:19
@sonarqubecloud
Copy link

@ruanwenjun ruanwenjun merged commit 6b03838 into apache:dev Jan 10, 2026
75 checks passed
@ruanwenjun ruanwenjun deleted the dev_wenjun_fix17834 branch January 10, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [Master] Workflow failure strategy cannot work

3 participants