mod traits#

module traits#

Common learner trait implemented by adaptive background processors. Shared learner traits for adaptive background processing.

Traits

trait Learner#

Background learner that updates adaptive state from observed runs.

Functions

fn process_run<'a>(&'a self, run: &'a RunRecord, backend: &'a dyn StorageBackendDyn, hot_cache: &'a Arc<RwLock<HotCache>>) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>#

Process one observed run and update backend state plus the hot cache.

Parameters

  • run: Telemetry record to learn from.

  • backend: Storage backend used to persist learner state.

  • hot_cache: Shared in-memory cache to refresh with the latest results.

Returns

A future that resolves when the learner has finished processing the run.

Implemented for

impl Learner for ToolParallelismLearner#