Skip to content

Commit

Permalink
Try to avoid stale optimistic locking exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanpelikan committed Jan 10, 2025
1 parent a3a5145 commit fd0a814
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public DeploymentService(
@Retryable(
retryFor = { OptimisticLockingFailureException.class, ObjectOptimisticLockingFailureException.class },
maxAttempts = 100,
backoff = @Backoff(delay = 100, maxDelay = 500))
backoff = @Backoff(delay = 200, maxDelay = 1000, multiplier = 1.5, random = true))
public DeployedBpmn addBpmn(
final BpmnModelInstance model,
final int fileId,
Expand Down Expand Up @@ -95,7 +95,7 @@ private DeployedBpmn staleRecoverAddBpmn(
@Retryable(
retryFor = { OptimisticLockingFailureException.class, ObjectOptimisticLockingFailureException.class },
maxAttempts = 100,
backoff = @Backoff(delay = 100, maxDelay = 500))
backoff = @Backoff(delay = 200, maxDelay = 1000, multiplier = 1.5, random = true))
public DeployedProcess addProcess(
final int packageId,
final Process camunda8DeployedProcess,
Expand Down

0 comments on commit fd0a814

Please sign in to comment.