Skip to content

Commit

Permalink
chore: add x-consumer-timeout to 1h for TASK #1574
Browse files Browse the repository at this point in the history
  • Loading branch information
bamthomas committed Sep 17, 2024
1 parent a336b0e commit 6faadb6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.icij.datashare.asynctasks.bus.amqp;

import com.rabbitmq.client.BuiltinExchangeType;
import org.apache.commons.collections4.map.UnmodifiableMap;

import java.util.Collections;
import java.util.HashMap;
Expand All @@ -14,7 +13,10 @@
public enum AmqpQueue {
EVENT ("exchangeMainEvents", BuiltinExchangeType.FANOUT, "routingKeyMainEvents"),
TASK_DLQ ("exchangeDLQTasks", BuiltinExchangeType.DIRECT, "routingKeyDLQTasks"),
TASK ("exchangeMainTasks", BuiltinExchangeType.DIRECT,"routingKeyMainTasks", Map.of("x-queue-type", "quorum", "x-delivery-limit", 10), TASK_DLQ),
TASK ("exchangeMainTasks", BuiltinExchangeType.DIRECT,"routingKeyMainTasks", Map.of(
"x-queue-type", "quorum",
"x-delivery-limit", 10,
"x-consumer-timeout", 3600 * 1000), TASK_DLQ),
MANAGER_EVENT_DLQ ("exchangeDLQManagerEvents", BuiltinExchangeType.DIRECT,"routingKeyDLQManagerEvents"),
MANAGER_EVENT ("exchangeManagerEvents", BuiltinExchangeType.DIRECT,"routingKeyManagerEvents", new HashMap<>(), MANAGER_EVENT_DLQ),
WORKER_EVENT("exchangeWorkerEvents", BuiltinExchangeType.FANOUT, "routingKeyWorkerEvents");
Expand Down

0 comments on commit 6faadb6

Please sign in to comment.