Skip to content

Commit

Permalink
Adding properties to retry 10 times
Browse files Browse the repository at this point in the history
  • Loading branch information
brero12 committed Sep 11, 2023
1 parent aa9ef4b commit 2311adb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ spring.rabbitmq.host=${RABBITMQ_HOST:localhost}
spring.rabbitmq.port=${RABBITMQ_PORT:5672}
spring.rabbitmq.username=${RABBITMQ_USERNAME:guest}
spring.rabbitmq.password=${RABBITMQ_PASSWORD:guest}
spring.rabbitmq.password=${RABBITMQ_PASSWORD:guest}
spring.rabbitmq.cache.connection.size=${RABBITMQ_CACHECONNSIZE:50}
spring.rabbitmq.listener.simple.retry.enabled=${RABBITMQ_RETRY:true}
spring.rabbitmq.listener.simple.missing-queues-fatal=false
spring.rabbitmq.listener.simple.retry.initial-interval=5000 // the first time will wait 5 seconds to try again
spring.rabbitmq.listener.simple.retry.max-attempts=10 //will try a maximum of 10 times
spring.rabbitmq.listener.simple.retry.max-interval=300000 // the maximum interval between attempts is 5 minutes
spring.rabbitmq.listener.simple.retry.multiplier=1.0 // multiplies the range by 3


dps.messaging.exchange-name=notification
dps.messaging.routing-key=CRRP
Expand Down

0 comments on commit 2311adb

Please sign in to comment.