pub struct RunStore { /* private fields */ }Implementations§
Source§impl RunStore
impl RunStore
pub fn insert_claimed_run( &self, claim: &RunAdmission<'_>, now_ms: i64, ) -> Result<AdmittedRun, StoreError>
pub fn notes_for_run(&self, run_id: &str) -> Result<Vec<String>, StoreError>
Source§impl RunStore
impl RunStore
pub fn from_db(db: Db) -> Self
pub fn settle( &self, run_id: &str, exit_code: Option<i32>, outcome: Outcome, records: &[EvidenceRecord], cooldown: Option<&CooldownUpdate<'_>>, now_ms: i64, ) -> Result<(RecordedOutcome, bool), StoreError>
pub fn abort( &self, run_id: &str, ticket_id: &str, now_ms: i64, ) -> Result<bool, StoreError>
Sourcepub fn begin(
&self,
run_id: &str,
branch: &str,
worktree_path: &str,
now_ms: i64,
) -> Result<Start, StoreError>
pub fn begin( &self, run_id: &str, branch: &str, worktree_path: &str, now_ms: i64, ) -> Result<Start, StoreError>
Hands a claimed run to its driver, recording the workspace every stage will execute in. This is the run’s start: the activity feed says so here, once, whatever kind of stage the flow opens with.
Sourcepub fn start(
&self,
start: &RunStart<'_>,
now_ms: i64,
) -> Result<Start, StoreError>
pub fn start( &self, start: &RunStart<'_>, now_ms: i64, ) -> Result<Start, StoreError>
Records the agent process an agent stage launched. The run is already under way; this only says which process the daemon is now supervising.
Sourcepub fn release_agent(
&self,
run_id: &str,
now_ms: i64,
) -> Result<Exit, StoreError>
pub fn release_agent( &self, run_id: &str, now_ms: i64, ) -> Result<Exit, StoreError>
Returns a run to its driver after an agent stage that is not the run’s own attempt at its ticket. The exit code, commits, and vendor reading on the run belong to the first agent stage alone, so none of them move here; only ownership of the walk does.
Sourcepub fn record_exit(
&self,
exit: &RunExit<'_>,
now_ms: i64,
) -> Result<Exit, StoreError>
pub fn record_exit( &self, exit: &RunExit<'_>, now_ms: i64, ) -> Result<Exit, StoreError>
Checkpoints an agent exit, granting one caller ownership of the walk.
Auto Trait Implementations§
impl Freeze for RunStore
impl RefUnwindSafe for RunStore
impl Send for RunStore
impl Sync for RunStore
impl Unpin for RunStore
impl UnsafeUnpin for RunStore
impl UnwindSafe for RunStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more