Skip to content

Commit

Permalink
Merge pull request #26 from depop/fix-ARCHIVE_QUEUE_ARGS-not-fetched-…
Browse files Browse the repository at this point in the history
…from-settings

Fix ARCHIVE_QUEUE_ARGS not fetched from settings
  • Loading branch information
eclectic-boy committed Apr 12, 2023
2 parents 0eb60f9 + 4678728 commit 1ff4e8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion event_consumer/__about__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '2.0.0'
__version__ = '2.0.1'


if __name__ == '__main__':
Expand Down
6 changes: 3 additions & 3 deletions event_consumer/conf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
ARCHIVE_MAX_LENGTH: int = getattr(
settings, f"{CONFIG_NAMESPACE}_ARCHIVE_MAX_LENGTH", 1000000
)
ARCHIVE_QUEUE_ARGS = {

ARCHIVE_QUEUE_ARGS = getattr(settings, f"{CONFIG_NAMESPACE}_ARCHIVE_QUEUE_ARGS", {
"x-message-ttl": ARCHIVE_EXPIRY, # Messages dropped after this
"x-max-length": ARCHIVE_MAX_LENGTH, # Maximum size of the queue
"x-queue-mode": "lazy", # Keep messages on disk (reqs. rabbitmq 3.6.0+)
}

})

USE_DJANGO: bool = getattr(settings, f"{CONFIG_NAMESPACE}_USE_DJANGO", False)

Expand Down

0 comments on commit 1ff4e8d

Please sign in to comment.