Skip to content

fix: log retried service task failures on WARN instead of ERROR - #178

Merged
emaarco merged 1 commit into
developfrom
emaarco/service-task-deliveries-log-error-for-failures-t
Nov 26, 2026
Merged

emaarco merged 1 commit into
developfrom
emaarco/service-task-deliveries-log-error-for-failures-t

Conversation

@emaarco

@emaarco emaarco commented Nov 26, 2026

Copy link
Copy Markdown
Member

Why

Every failed service task delivery is logged as ERROR, even when retries are left and the engine schedules the task again on its own. A second ERROR then only confirms that the failure was reported. Teams that alert on ERROR get paged for incidents that do not exist.

What

Port of bpm-crafters/process-engine-adapters-camunda-7#323.

  • -033 is logged with the throwable, on WARN while retries are left and on ERROR once none are left, so the last attempt (the one that creates an incident) stays ERROR.
  • -034 ("successfully failed delivering task") moves from ERROR to DEBUG.
  • Applied to all three service task deliveries: embedded pull (EmbeddedPullServiceTaskDelivery), remote pull (PullServiceTaskDelivery) and remote subscribe (SubscribingServiceTaskDelivery).
  • Control flow is unchanged: handleFailure and the cleanup of failed deliveries run as before.

Verification

  • ./mvnw verify -pl engine-adapter/cib-seven-embedded-core,engine-adapter/cib-seven-remote-core -am: build succeeds, all tests pass (82 embedded, 9 remote).
  • No new tests, since only log levels change; the existing delivery tests cover handleFailure and the cleanup.

Out of scope / Follow-ups

Refs bpm-crafters/process-engine-adapters-camunda-7#321

@emaarco
emaarco merged commit 6fb29a5 into develop Nov 26, 2026
2 checks passed
@emaarco
emaarco deleted the emaarco/service-task-deliveries-log-error-for-failures-t branch November 26, 2026 15:46
@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.

1 participant