pub struct DurableAgentLoop { /* private fields */ }Expand description
Production binding of driver execution and lifecycle coordination.
Implementations§
Source§impl DurableAgentLoop
impl DurableAgentLoop
Sourcepub fn execution_activity(&self) -> GraphExecutionActivity
pub fn execution_activity(&self) -> GraphExecutionActivity
Returns shared node-future completion accounting for this loop and clones.
Sourcepub fn new(
store: PostgresStore,
registry: ExecutableGraphRegistry,
evidence: Arc<dyn GraphLifecycleEvidenceProvider>,
driver_options: DurableGraphDriverOptions,
lifecycle_options: DurableGraphLifecycleOptions,
) -> Result<Self, DurableAgentLoopBuildError>
pub fn new( store: PostgresStore, registry: ExecutableGraphRegistry, evidence: Arc<dyn GraphLifecycleEvidenceProvider>, driver_options: DurableGraphDriverOptions, lifecycle_options: DurableGraphLifecycleOptions, ) -> Result<Self, DurableAgentLoopBuildError>
Builds a loop over one shared store and immutable deployment registry.
Constructing both layers here prevents a caller from accidentally pairing a driver and lifecycle coordinator backed by different pools or executable snapshots.
§Errors
Returns the exact driver or lifecycle startup binding failure.
Sourcepub fn run(
&self,
fence: RunFence,
shutdown: CancellationSignal,
) -> BoxFuture<'_, Result<AgentLoopResult, AgentLoopError>>
pub fn run( &self, fence: RunFence, shutdown: CancellationSignal, ) -> BoxFuture<'_, Result<AgentLoopResult, AgentLoopError>>
Drives one already-claimed exact fence to the next durable scheduling or lifecycle boundary.
Driver and lifecycle failures trigger a bounded best-effort exact-fence release. A cleanup database failure is returned alongside the primary failure; stale, expired, absent, non-runnable, or quarantined ownership already permits safe takeover and does not replace the primary error.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DurableAgentLoop
impl !UnwindSafe for DurableAgentLoop
impl Forget for DurableAgentLoop
impl Freeze for DurableAgentLoop
impl Move for DurableAgentLoop
impl Send for DurableAgentLoop
impl Sync for DurableAgentLoop
impl Unpin for DurableAgentLoop
impl UnsafeUnpin for DurableAgentLoop
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more