From d7b48d05cdbbb4a0c4b535a57561a66acedfca4e Mon Sep 17 00:00:00 2001 From: Amaury <1293565+amaury1093@users.noreply.github.com> Date: Sat, 14 Dec 2024 11:27:21 +0100 Subject: [PATCH] add docs for worker --- backend/backend_config.toml | 13 ++++++++++++- backend/src/config.rs | 2 -- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/backend/backend_config.toml b/backend/backend_config.toml index de31919e2..7035d67bf 100644 --- a/backend/backend_config.toml +++ b/backend/backend_config.toml @@ -112,12 +112,23 @@ max_requests_per_minute = 60 # max_requests_per_hour = 1000 max_requests_per_day = 10000 +# Configuration for a queue-based architecture for Reacher. This feature is +# currently in **beta**. The queue-based architecture allows Reacher to scale +# horizontally by running multiple workers that consume emails from a RabbitMQ +# queue. +# +# To enable the queue-based architecture, set the "enable" field to "true" and +# configure the RabbitMQ connection below. The "concurrency" field specifies +# the number of concurrent emails to verify for this worker. +# +# For more information, see the documentation at: +# https://docs.reacher.email/self-hosting/scaling-for-production [worker] # Enable the worker to consume emails from the RabbitMQ queues. If set, the # RabbitMQ configuration below must be set as well. # # Env variable: RCH__WORKER__ENABLE -enable = true +enable = false # RabbitMQ configuration. [worker.rabbitmq] diff --git a/backend/src/config.rs b/backend/src/config.rs index 3daaec48f..f64892d1b 100644 --- a/backend/src/config.rs +++ b/backend/src/config.rs @@ -117,7 +117,6 @@ impl BackendConfig { (true, Some(rabbitmq), Some(channel)) => Ok(MustWorkerConfig { channel: channel.clone(), rabbitmq: rabbitmq.clone(), - webhook: self.worker.webhook.clone(), }), @@ -203,7 +202,6 @@ pub struct WorkerConfig { #[derive(Debug, Clone)] pub struct MustWorkerConfig { pub channel: Arc, - pub rabbitmq: RabbitMQConfig, pub webhook: Option, }