FINERACT-2304: Create Configuration assembler and move resilience4j props into fineract namespace implement proper retry for SynchronousCommandProcessingService and BatchApiServiceImpl
This commit is contained in:
@@ -259,11 +259,11 @@ spring.batch.initialize-schema=NEVER
|
||||
# Disabling Spring Batch jobs on startup
|
||||
spring.batch.job.enabled=false
|
||||
|
||||
resilience4j.retry.instances.executeCommand.max-attempts=3
|
||||
resilience4j.retry.instances.executeCommand.wait-duration=1s
|
||||
resilience4j.retry.instances.executeCommand.enable-exponential-backoff=true
|
||||
resilience4j.retry.instances.executeCommand.exponential-backoff-multiplier=2
|
||||
resilience4j.retry.instances.executeCommand.retryExceptions=org.springframework.dao.CannotAcquireLockException,org.springframework.orm.ObjectOptimisticLockingFailureException
|
||||
fineract.retry.instances.executeCommand.max-attempts=3
|
||||
fineract.retry.instances.executeCommand.wait-duration=1s
|
||||
fineract.retry.instances.executeCommand.enable-exponential-backoff=true
|
||||
fineract.retry.instances.executeCommand.exponential-backoff-multiplier=2
|
||||
fineract.retry.instances.executeCommand.retryExceptions=org.springframework.dao.CannotAcquireLockException,org.springframework.orm.ObjectOptimisticLockingFailureException
|
||||
|
||||
resilience4j.retry.instances.processJobDetailForExecution.max-attempts=3
|
||||
resilience4j.retry.instances.processJobDetailForExecution.wait-duration=1s
|
||||
|
||||
@@ -19,9 +19,10 @@
|
||||
|
||||
Feature: Commands Service
|
||||
|
||||
@soma
|
||||
Scenario: Verify that command source write service are working with fallback function
|
||||
Given A command source write service
|
||||
When The user executes the command via a command write service with exceptions
|
||||
Then The command processing service should fallback as expected
|
||||
Then The command processing service execute function should be called 3 times
|
||||
Then The command processing service execute function should be called 2 times
|
||||
|
||||
|
||||
Reference in New Issue
Block a user