From dba348a62181cde5cb7e708e0a54b1d3bad6c988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20K=C3=B6ssler?= Date: Mon, 19 Aug 2024 14:37:48 +0200 Subject: [PATCH] refactor: tenant queues settings --- README.md | 2 +- pyinfra/examples.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2039e06..dfbd3b4 100755 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ the [complete example](pyinfra/examples.py). | Environment Variable | Internal / .toml Name | Description | | ------------------------------------------ | --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | LOGGING\_\_LEVEL | logging.level | Log level | -| CONCURRENCY\_\_ENABLED | concurrency.enabled | Enable multi tenant queue mode | +| DYNAMIC_TENANT_QUEUES\_\_ENABLED | dynamic_tenant_queues.enabled | Enable queues per tenant that are dynamically created mode | | METRICS\_\_PROMETHEUS\_\_ENABLED | metrics.prometheus.enabled | Enable Prometheus metrics collection | | METRICS\_\_PROMETHEUS\_\_PREFIX | metrics.prometheus.prefix | Prefix for Prometheus metrics (e.g. {product}-{service}) | | WEBSERVER\_\_HOST | webserver.host | Host of the webserver (offering e.g. /prometheus, /ready and /health endpoints) | diff --git a/pyinfra/examples.py b/pyinfra/examples.py index 68abe5e..1132259 100644 --- a/pyinfra/examples.py +++ b/pyinfra/examples.py @@ -48,7 +48,7 @@ def start_standard_queue_consumer( instrument_pika() instrument_app(app) - if settings.concurrency.enabled: + if settings.dynamic_tenant_queues.enabled: config = RabbitMQConfig( host=settings.rabbitmq.host, port=settings.rabbitmq.port, diff --git a/pyproject.toml b/pyproject.toml index d97d1f8..36fd472 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pyinfra" -version = "3.2.1" +version = "3.2.2" description = "" authors = ["Team Research "] license = "All rights reseverd"