Repository navigation
fix(embedded): pass the service task retry timeout to the engine in milliseconds - #180
Merged
emaarco merged 1 commit intoNov 26, 2026
Conversation
…illiseconds Closes #179
emaarco
enabled auto-merge (squash)
November 26, 2026 16:11
emaarco
deleted the
emaarco/embedded-adapter-passes-the-retry-timeout-in-sec
branch
November 26, 2026 16:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The embedded adapter passed the retry timeout to
ExternalTaskService.handleFailurein seconds, but the engine expects milliseconds. Withretry-timeout-in-seconds: 2the engine waited 2 ms instead of 2 s, so all retries were used up within well under a second and an incident was created for outages that would have healed a few seconds later. This affected both the configured timeout and aretryBackoffset onFailTaskCmd.What
CibSevenServiceTaskCompletionApiImpl.failTasknow passescmd.retryBackoff?.toMillis() ?: (retryTimeoutInSeconds * 1000), as the Camunda 7 and Operaton embedded adapters and the CIB seven remote adapter already do.CibSevenServiceTaskCompletionApiImplTest, aligned withC7ServiceTaskCompletionApiImplTestandOperatonServiceTaskCompletionApiImplTest: one case for aretryBackoffon the command, one for the supplier's retry timeout in seconds.Verification
./mvnw -pl engine-adapter/cib-seven-embedded-core -am test: 84 tests, 0 failures.Closes #179