MCPcopy Create free account
hub / github.com/Autoparallel/learner / run

Method run

crates/learnerd/src/daemon/mod.rs:351–359  ·  view source on GitHub ↗

Main daemon loop that handles background tasks. Currently implements a basic heartbeat for monitoring.

(&self)

Source from the content-addressed store, hash-verified

349 ///
350 /// Currently implements a basic heartbeat for monitoring.
351 fn run(&self) -> Result<()> {
352 info!("Daemon running");
353
354 // TODO: Implement actual daemon functionality
355 loop {
356 std::thread::sleep(std::time::Duration::from_secs(5));
357 debug!("Daemon heartbeat");
358 }
359 }
360}
361
362#[cfg(test)]

Callers 1

startMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected