Skip to content

[Fix][Master] Continue backfill after failed date - #18661

Open
MonsterChenzhuo wants to merge 1 commit into
apache:devfrom
MonsterChenzhuo:codex/fix-backfill-failure-continuation
Open

MonsterChenzhuo wants to merge 1 commit into
apache:devfrom
MonsterChenzhuo:codex/fix-backfill-failure-continuation

Conversation

@MonsterChenzhuo

@MonsterChenzhuo MonsterChenzhuo commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Was this PR generated or assisted by AI?

yes

Purpose of the pull request

In parallel backfill mode, workflow instances currently generate the next backfill instance only after the current instance succeeds. If one date fails while the failure strategy is CONTINUE, all remaining dates in the same shard are stranded and never executed.

This pull request continues the backfill chain after failed dates when CONTINUE is configured, preserves the existing END behavior, prevents duplicate continuation triggers, and adds regression tests.

Brief change log

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

public void notifyWorkflowLifecycleEvent(final IWorkflowExecution workflowExecution,
final AbstractWorkflowLifecycleLifecycleEvent lifecycleEvent) {
final WorkflowInstance workflowInstance = workflowExecution.getWorkflowInstance();
if (workflowInstance.getNextWorkflowInstanceId() > 0
if (!backfillTriggerResponse.isSuccess()) {
log.warn("Backfill workflow failed: {}", backfillTriggerResponse.getMessage());
} else {
workflowInstance.setNextWorkflowInstanceId(backfillTriggerResponse.getWorkflowInstanceId());

@SbloodyS SbloodyS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please follow the pull request notice and create an issue first.

@ruanwenjun ruanwenjun added the feature new feature label Sep 23, 2026

This branch has not been deployed

No deployments
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.

4 participants