Skip to content

Commit

Permalink
add docs for worker
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Dec 14, 2024
1 parent 3deef85 commit d7b48d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 12 additions & 1 deletion backend/backend_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 0 additions & 2 deletions backend/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ impl BackendConfig {
(true, Some(rabbitmq), Some(channel)) => Ok(MustWorkerConfig {
channel: channel.clone(),
rabbitmq: rabbitmq.clone(),

webhook: self.worker.webhook.clone(),
}),

Expand Down Expand Up @@ -203,7 +202,6 @@ pub struct WorkerConfig {
#[derive(Debug, Clone)]
pub struct MustWorkerConfig {
pub channel: Arc<Channel>,

pub rabbitmq: RabbitMQConfig,
pub webhook: Option<TaskWebhook>,
}
Expand Down

0 comments on commit d7b48d0

Please sign in to comment.