Skip to content

Commit

Permalink
feat: 🔧 add possibility to enable/disable exclusive queue feature
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard0m0ya committed Jul 28, 2023
1 parent ba1300d commit c73de9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions django_outbox_pattern/consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def _subscribe(self, destination, subscribe_id, headers, queue_name=None, dlq=Fa
queue_name = f"DLQ.{queue_name}"
headers.update(
{
"exclusive": settings.DAFAULT_EXCLUSIVE_QUEUE,
"x-queue-name": queue_name,
"x-dead-letter-routing-key": f"DLQ.DLQ.{queue_name}" if dlq else f"DLQ.{queue_name}",
"x-dead-letter-exchange": "",
Expand Down
1 change: 1 addition & 0 deletions django_outbox_pattern/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
DEFAULT_STOMP_CERT_VALIDATOR = DJANGO_OUTBOX_PATTERN.get("DEFAULT_STOMP_CERT_VALIDATOR", None)
DEFAULT_STOMP_SSL_VERSION = DJANGO_OUTBOX_PATTERN.get("DEFAULT_STOMP_SSL_VERSION", None)
DEFAULT_STOMP_SSL_PASSWORD = DJANGO_OUTBOX_PATTERN.get("DEFAULT_STOMP_SSL_PASSWORD", None)
DAFAULT_EXCLUSIVE_QUEUE = DJANGO_OUTBOX_PATTERN.get("DAFAULT_EXCLUSIVE_QUEUE", False)
DAYS_TO_KEEP_DATA = DJANGO_OUTBOX_PATTERN.get("DAYS_TO_KEEP_DATA", 30)
REMOVE_DATA_CACHE_TTL = DJANGO_OUTBOX_PATTERN.get("REMOVE_DATA_CACHE_TTL", 86400)
OUTBOX_PATTERN_PUBLISHER_CACHE_KEY = DJANGO_OUTBOX_PATTERN.get(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "django-outbox-pattern"
version = "0.14.0"
version = "0.15.0"
description = "A django application to make it easier to use the transactional outbox pattern"
license = "MIT"
authors = ["Hugo Brilhante <[email protected]>"]
Expand Down

0 comments on commit c73de9c

Please sign in to comment.