pub struct Config {Show 19 fields
pub important_threshold: f64,
pub urgent_within: i64,
pub quadrant_limit: i64,
pub tiers: [f64; 5],
pub priorities: [f64; 4],
pub signals: SignalPriorities,
pub activity_ignore: Vec<String>,
pub activity_horizon: [i64; 5],
pub agent: String,
pub preset: Option<String>,
pub default_tier: Option<i64>,
pub attribution: Attribution,
pub max_parallel: i64,
pub batch_budget: f64,
pub agent_budget: f64,
pub workflow_budget: f64,
pub timeout: i64,
pub notify: Option<String>,
pub projects: BTreeMap<String, ProjectSettings>,
}Fields§
§important_threshold: f64§urgent_within: i64Days before due: at which a task becomes urgent.
quadrant_limit: i64§tiers: [f64; 5]Multiplier per tier, index 0 is tier 1.
priorities: [f64; 4]Weight per priority, in Priority::ALL order.
signals: SignalPrioritiesPriority of each signal task.
activity_ignore: Vec<String>Globs for paths whose commits do not count as activity.
activity_horizon: [i64; 5]Days without activity at which the activity signal reaches 1, per tier.
agent: StringThe worker pma dispatch runs, by name in the agents table.
preset: Option<String>The preset a dispatch takes when nothing names one; None falls back to
agent and that worker’s own model.
default_tier: Option<i64>Tier for a project that has none, so untiered projects are ranked
rather than invisible. None leaves them out, as before.
attribution: Attribution§max_parallel: i64Agents running at once.
batch_budget: f64USD a dispatch batch may spend.
agent_budget: f64USD one agent run may spend.
workflow_budget: f64The most a workflow revision’s worst case may cost, per unit of input,
before pma workflow activate refuses it.
timeout: i64Minutes an agent run, or a verify run, may take.
notify: Option<String>A shell command run when a detached job ends, with PMA_JOB_ID,
PMA_JOB_STATE and PMA_JOB_SUMMARY set.
projects: BTreeMap<String, ProjectSettings>Implementations§
Source§impl Config
impl Config
Sourcepub fn tier_or_default(&self, tier: Option<u8>) -> Option<u8>
pub fn tier_or_default(&self, tier: Option<u8>) -> Option<u8>
A project’s tier, else default_tier: what ranks it, and so what
routes it.
pub fn keys() -> Vec<String>
Sourcepub fn with_overrides<'a>(
rows: impl IntoIterator<Item = (&'a str, &'a str)>,
) -> Result<Config, String>
pub fn with_overrides<'a>( rows: impl IntoIterator<Item = (&'a str, &'a str)>, ) -> Result<Config, String>
Applies stored overrides to the defaults.
Sourcepub fn kind(key: &str) -> Option<&'static str>
pub fn kind(key: &str) -> Option<&'static str>
The kind of value key takes, so settings.toml stores it typed.
pub fn get(&self, key: &str) -> Option<String>
Sourcepub fn set(&mut self, key: &str, value: &str) -> Result<(), String>
pub fn set(&mut self, key: &str, value: &str) -> Result<(), String>
Sets one value; on error, nothing changes.