Skip to content

fix(embedded): pass the service task retry timeout to the engine in milliseconds - #180

Merged
emaarco merged 1 commit into
developfrom
emaarco/embedded-adapter-passes-the-retry-timeout-in-sec
Nov 26, 2026
Merged

emaarco merged 1 commit into
developfrom
emaarco/embedded-adapter-passes-the-retry-timeout-in-sec

Conversation

@emaarco

@emaarco emaarco commented Nov 26, 2026

Copy link
Copy Markdown
Member

Why

The embedded adapter passed the retry timeout to ExternalTaskService.handleFailure in seconds, but the engine expects milliseconds. With retry-timeout-in-seconds: 2 the 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 a retryBackoff set on FailTaskCmd.

What

  • CibSevenServiceTaskCompletionApiImpl.failTask now passes cmd.retryBackoff?.toMillis() ?: (retryTimeoutInSeconds * 1000), as the Camunda 7 and Operaton embedded adapters and the CIB seven remote adapter already do.
  • New CibSevenServiceTaskCompletionApiImplTest, aligned with C7ServiceTaskCompletionApiImplTest and OperatonServiceTaskCompletionApiImplTest: one case for a retryBackoff on the command, one for the supplier's retry timeout in seconds.

Verification

  • Both new tests failed before the fix on the timeout argument and pass after it.
  • ./mvnw -pl engine-adapter/cib-seven-embedded-core -am test: 84 tests, 0 failures.

Closes #179

@emaarco
emaarco enabled auto-merge (squash) November 26, 2026 16:11
@emaarco
emaarco merged commit b9ad2a9 into develop Nov 26, 2026
2 checks passed
@emaarco
emaarco deleted the emaarco/embedded-adapter-passes-the-retry-timeout-in-sec branch November 26, 2026 16:17
@emaarco emaarco added this to the 2026.11.2 milestone Nov 26, 2026
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.

Embedded adapter passes the retry timeout in seconds where the engine expects milliseconds

1 participant