Skip to content

Do not mark the execution as inactive when retrying a failed job - #4340

Open
filiphr wants to merge 1 commit into
flowable:mainfrom
filiphr:fix-retried-boundary-timer-inactive-execution
Open

filiphr wants to merge 1 commit into
flowable:mainfrom
filiphr:fix-retried-boundary-timer-inactive-execution

Conversation

@filiphr

@filiphr filiphr commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

When an async or timer job failed, `JobRetryCmd` marked its execution as inactive. Since `isActive()` decides whether the activity end is recorded, executions whose activity instance had already been started (e.g. a boundary timer event) never got an end time when the process ended. The execution was also missing from the active activity ids while waiting for the retry.

This showed up as a flaky `BoundaryTimerEventRepeatCompatibilityTest#testRepeatWithoutEnd` on Oracle, where the timer job hit an optimistic locking exception and was retried.

The line was added as part of the async history work and the v5 `JobRetryCmd` never had it.

Check List:

  • Unit tests: YES
  • Documentation: NA

Marking the execution as inactive meant that the activity end was never recorded for executions whose activity instance had already been started (e.g. a boundary timer event).
It also removed the execution from the active activity ids while waiting for the retry.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant