rrq-config
Configuration loader and settings types for RRQ.
What is RRQ?
RRQ (Reliable Redis Queue) is a distributed job queue with a Rust orchestrator. This crate provides shared configuration parsing for the orchestrator, producer, and FFI bindings.
When to Use This Crate
Use rrq-config if you're:
- Building custom tooling that reads
rrq.toml - Extending the RRQ configuration format
- Embedding RRQ components with programmatic config
For most use cases, the configuration is loaded automatically by rrq, rrq-producer, etc.
Installation
[]
= "0.9"
Usage
Load from file
use load_toml_settings;
let settings = load_toml_settings?;
println!;
println!;
Load producer settings
use load_producer_settings;
let producer_settings = load_producer_settings?;
println!;
Default config path
use load_toml_settings;
// Looks for RRQ_CONFIG env var, then ./rrq.toml
let settings = load_toml_settings?;
Configuration Format
[]
= "redis://localhost:6379/0"
= "python"
= 300
= 5
[]
= "socket"
= ["rrq-runner", "--settings", "myapp.runner:settings"]
= "127.0.0.1:9000"
= 4
= 10
[[]]
= "cleanup"
= "0 0 * * * *"
Related Crates
| Crate | Purpose |
|---|---|
rrq |
Orchestrator |
rrq-producer |
Job producer |
License
Apache-2.0