pub struct UnservedActivity {
pub activity_id: ActivityId,
pub activity_type: String,
pub task_queue: String,
pub node: Option<String>,
pub attempt: u32,
pub dispatched_at: DateTime<Utc>,
pub reason: String,
pub detail: String,
pub workers_in_pool: u64,
pub workers_serving_activity: u64,
pub compatible_workers: u64,
pub dispatch_parked: bool,
}Expand description
One in-flight activity whose recorded dispatch address is not being served.
The activity’s identity, address, and dispatch instant come from the run’s own recorded history; the verdict and the counts come from the live connected-worker fleet at read time. Both halves are named so an operator can see which is which.
Fields§
§activity_id: ActivityIdActivity ordinal recorded in history.
activity_type: StringActivity type the dispatch needs served.
task_queue: StringTask queue the dispatch was recorded against.
node: Option<String>Node affinity recorded on the dispatch, if any.
attempt: u32One-based delivery attempt recorded on the ActivityStarted.
dispatched_at: DateTime<Utc>When the engine recorded the dispatch — NOT when a worker took it, which is precisely the thing that never happened.
reason: StringCanonical queue-service reason (NO_QUEUE_DECLARATION,
NO_LIVE_POLLERS, POLLERS_INCOMPATIBLE), in the same vocabulary the
dispatch refusals and the server logs use.
detail: StringOne sentence naming what an operator has to fix.
workers_in_pool: u64Workers connected for the (namespace, task_queue) pool, whatever they
serve.
workers_serving_activity: u64Of those, workers advertising this activity type.
compatible_workers: u64Of those, workers that also satisfy the dispatch’s node pin.
dispatch_parked: boolWhether THIS server process is currently holding the dispatch in its selection wait.
False with a non-empty verdict is its own signal: history says the activity is in flight, the fleet cannot serve it, and no selection in this process is even waiting for it — the shape a run left behind by a restart takes.
Trait Implementations§
Source§impl Clone for UnservedActivity
impl Clone for UnservedActivity
Source§fn clone(&self) -> UnservedActivity
fn clone(&self) -> UnservedActivity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UnservedActivity
impl Debug for UnservedActivity
Source§impl<'de> Deserialize<'de> for UnservedActivity
impl<'de> Deserialize<'de> for UnservedActivity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for UnservedActivity
Source§impl PartialEq for UnservedActivity
impl PartialEq for UnservedActivity
Source§impl Serialize for UnservedActivity
impl Serialize for UnservedActivity
impl StructuralPartialEq for UnservedActivity
Source§impl TS for UnservedActivity
impl TS for UnservedActivity
Source§type WithoutGenerics = UnservedActivity
type WithoutGenerics = UnservedActivity
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = UnservedActivity
type OptionInnerType = UnservedActivity
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read more