MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / lifecycle

Function lifecycle

atomic-cli/src/commands/agent/lifecycle.rs:600–613  ·  view source on GitHub ↗
(run_id: &str, owner: &str, workdir: &Path, expires_at: i64)

Source from the content-addressed store, hash-verified

598 use tempfile::TempDir;
599
600 fn lifecycle(run_id: &str, owner: &str, workdir: &Path, expires_at: i64) -> ManagedLifecycle {
601 ManagedLifecycle {
602 run_id: run_id.to_string(),
603 owner_agent: owner.to_string(),
604 owner_session_id: format!("{}-session", owner),
605 executor_agent: None,
606 work_item_id: None,
607 view: Some("sherpa-run".to_string()),
608 workdir: workdir.to_path_buf(),
609 created_at: 1,
610 updated_at: 1,
611 expires_at,
612 }
613 }
614
615 #[test]
616 fn keyed_store_holds_concurrent_runs() {

Calls

no outgoing calls