pub struct QueueConfig {
pub file: Option<PathBuf>,
pub done_file: Option<PathBuf>,
pub id_prefix: Option<String>,
pub id_width: Option<u8>,
pub size_warning_threshold_kb: Option<u32>,
pub task_count_warning_threshold: Option<u32>,
pub max_dependency_depth: Option<u8>,
pub auto_archive_terminal_after_days: Option<u32>,
pub aging_thresholds: Option<QueueAgingThresholds>,
}Expand description
Queue-related configuration.
Fields§
§file: Option<PathBuf>Path to the JSON queue file, relative to repo root.
Paths are intended to be repo-root relative. Parallel mode requires the
resolved path to be under the repo root (no ..) so it can be copied
into workspace clones.
done_file: Option<PathBuf>Path to the JSON done archive file, relative to repo root.
Paths are intended to be repo-root relative. Parallel mode requires the
resolved path to be under the repo root (no ..) so it can be copied
into workspace clones.
id_prefix: Option<String>ID prefix (default: “RQ”).
id_width: Option<u8>Zero pad width for the numeric suffix (default: 4 -> RQ-0001).
size_warning_threshold_kb: Option<u32>Warning threshold for queue file size in KB (default: 500).
task_count_warning_threshold: Option<u32>Warning threshold for number of tasks in queue (default: 500).
max_dependency_depth: Option<u8>Maximum allowed dependency chain depth before warning (default: 10).
auto_archive_terminal_after_days: Option<u32>Auto-archive terminal tasks (done/rejected) from queue to done after this many days.
Semantics:
- None: disabled (default)
- Some(0): archive immediately when the sweep runs
- Some(N): archive when completed_at is at least N days old
The sweep runs after selected queue mutation operations (e.g., task edits and run supervision). Tasks with missing or invalid completed_at timestamps are not moved when N > 0.
aging_thresholds: Option<QueueAgingThresholds>Thresholds for ralph queue aging buckets.
Default: warning>7d, stale>14d, rotten>30d. Ordering must satisfy: warning_days < stale_days < rotten_days.
Implementations§
Source§impl QueueConfig
impl QueueConfig
pub fn merge_from(&mut self, other: Self)
Trait Implementations§
Source§impl Clone for QueueConfig
impl Clone for QueueConfig
Source§fn clone(&self) -> QueueConfig
fn clone(&self) -> QueueConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QueueConfig
impl Debug for QueueConfig
Source§impl Default for QueueConfig
impl Default for QueueConfig
Source§fn default() -> QueueConfig
fn default() -> QueueConfig
Source§impl<'de> Deserialize<'de> for QueueConfigwhere
QueueConfig: Default,
impl<'de> Deserialize<'de> for QueueConfigwhere
QueueConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for QueueConfig
impl JsonSchema for QueueConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more