pub struct ActivityReachability<'a> {
pub registry: &'a ConnectedWorkerRegistry,
pub declarations: &'a QueueDeclarationSource,
pub state: &'a QueueServiceState,
}Expand description
The live fleet seams an in-flight activity’s reachability is judged against.
Exactly the three the dispatcher’s selection wait holds: the connected-worker registry (the census), the deployed queue declarations (the structural verdict), and the parked-dispatch state (whether this process is waiting).
Fields§
§registry: &'a ConnectedWorkerRegistryLive connected-worker registry.
declarations: &'a QueueDeclarationSourceDeployed queue declarations.
state: &'a QueueServiceStateLive parked-dispatch state.
Implementations§
Source§impl ActivityReachability<'_>
impl ActivityReachability<'_>
Sourcepub fn unserved(
&self,
namespace: &str,
workflow_id: &WorkflowId,
history: &[Event],
) -> Result<Vec<UnservedActivity>, ServerError>
pub fn unserved( &self, namespace: &str, workflow_id: &WorkflowId, history: &[Event], ) -> Result<Vec<UnservedActivity>, ServerError>
Every in-flight activity in history the fleet cannot currently serve.
Returns an EMPTY vector for a run whose in-flight activities all have a live compatible worker, and for a run with no in-flight activity at all.
§Errors
Returns ServerError when the connected-worker registry or the parked
dispatch state cannot be read. Never guesses: an unreadable fleet is
reported, not rendered as “everything is fine”.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ActivityReachability<'a>
impl<'a> !UnwindSafe for ActivityReachability<'a>
impl<'a> Freeze for ActivityReachability<'a>
impl<'a> Send for ActivityReachability<'a>
impl<'a> Sync for ActivityReachability<'a>
impl<'a> Unpin for ActivityReachability<'a>
impl<'a> UnsafeUnpin for ActivityReachability<'a>
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> 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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request