Skip to content

Commit

Permalink
Merge pull request #3 from gridsuite/feat/rabbit_dlq_on_fail
Browse files Browse the repository at this point in the history
feat: rely on rabbitmq dlq for computation errors handling

Signed-off-by: Thang PHAM <[email protected]>
  • Loading branch information
thangqp authored Jan 17, 2025
2 parents fba3b5e + 9e7f900 commit 45a71b6
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/main/resources/config/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spring:
group: dsaGroup
consumer:
concurrency: 2
max-attempts: 1
publishRun-out-0:
destination: ${powsybl-ws.rabbitmq.destination.prefix:}dsa.run
publishResult-out-0:
Expand All @@ -22,11 +23,20 @@ spring:
destination: ${powsybl-ws.rabbitmq.destination.prefix:}dsa.cancel
publishStopped-out-0:
destination: ${powsybl-ws.rabbitmq.destination.prefix:}dsa.stopped
publishFailed-out-0:
destination: ${powsybl-ws.rabbitmq.destination.prefix:}dsa.failed
publishCancelFailed-out-0:
destination: ${powsybl-ws.rabbitmq.destination.prefix:}dsa.cancelfailed
output-bindings: publishRun-out-0;publishResult-out-0;publishCancel-out-0;publishStopped-out-0;publishFailed-out-0;publishCancelFailed-out-0
output-bindings: publishRun-out-0;publishResult-out-0;publishCancel-out-0;publishStopped-out-0;publishCancelFailed-out-0
rabbit:
bindings:
consumeRun-in-0:
consumer:
auto-bind-dlq: true
dead-letter-exchange: ${powsybl-ws.rabbitmq.destination.prefix:}dsa.run.dlx
dead-letter-queue-name: ${powsybl-ws.rabbitmq.destination.prefix:}dsa.run.dlx.dlq
dead-letter-exchange-type: topic
quorum:
enabled: true
delivery-limit: 2

powsybl-ws:
database:
Expand Down

0 comments on commit 45a71b6

Please sign in to comment.