pub struct DaemonConfig {
pub kafka: Option<KafkaConfig>,
pub bind: String,
pub max_concurrent_tasks: usize,
pub metrics: Option<MetricsConfig>,
pub database_url: Option<String>,
pub auth: Option<AuthConfig>,
pub memory: DaemonMemoryConfig,
pub audit: DaemonAuditConfig,
pub idempotency: IdempotencyConfig,
}Expand description
Daemon mode configuration for runtime execution.
When kafka is absent, the daemon runs in HTTP-only mode: it serves
/v1/tasks/execute for cloud-delegated execution but does not consume
Kafka commands or produce events. This is the recommended mode for the
3-tier architecture where Kafka lives in the gateway, not the runtime.
Input-source fields (schedules, sensors, ws, telegram, heartbit_pulse, owner_emails, mcp_server) have been moved to the gateway crate as part of the 3-tier architecture refactoring. The type definitions are kept here so they can be re-used by the gateway.
Fields§
§kafka: Option<KafkaConfig>§bind: String§max_concurrent_tasks: usize§metrics: Option<MetricsConfig>Prometheus metrics configuration. Metrics are enabled by default.
database_url: Option<String>PostgreSQL URL for durable task persistence. When absent, tasks are stored in-memory (lost on restart).
auth: Option<AuthConfig>HTTP API authentication configuration.
memory: DaemonMemoryConfigMemory access control configuration.
audit: DaemonAuditConfigAudit log retention configuration.
idempotency: IdempotencyConfigIdempotency-key TTL sweep configuration.
Trait Implementations§
Source§impl Clone for DaemonConfig
impl Clone for DaemonConfig
Source§fn clone(&self) -> DaemonConfig
fn clone(&self) -> DaemonConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more