pub struct ManagedWorkerStatus {
pub name: String,
pub task_queue: String,
pub desired: DesiredState,
pub state: ManagedWorkerState,
pub pid: Option<u32>,
pub process_group: Option<i32>,
pub restarts: u32,
pub last_exit: Option<ManagedWorkerExit>,
pub last_error: Option<String>,
pub deployed_binary: DeployedBinaryIdentity,
pub spawn_binary: Option<SpawnedBinary>,
}Expand description
One managed worker: what was asked for, and what is true.
Fields§
§name: StringDeployment primary key.
task_queue: StringTask queue the deployment binds.
desired: DesiredStateDurable operator intent.
state: ManagedWorkerStateLive supervision state.
pid: Option<u32>Process id of the running child, while one is running.
process_group: Option<i32>Process group id the child leads, while one is running.
restarts: u32Restarts performed since this instance was started.
last_exit: Option<ManagedWorkerExit>How the process last ended, when it has ended at least once.
last_error: Option<String>The last failure worth an operator’s attention, verbatim.
deployed_binary: DeployedBinaryIdentityIdentity of the binary the deployment named AT DEPLOY TIME.
spawn_binary: Option<SpawnedBinary>Identity of the binary the CURRENT (or most recent) spawn actually ran.
A restart across an upgrade is meant to be a visible fact rather than a silent swap, so this is captured per spawn and reported beside the deploy-time identity: the two disagreeing is the upgrade, stated.
Trait Implementations§
Source§impl Clone for ManagedWorkerStatus
impl Clone for ManagedWorkerStatus
Source§fn clone(&self) -> ManagedWorkerStatus
fn clone(&self) -> ManagedWorkerStatus
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 ManagedWorkerStatus
impl Debug for ManagedWorkerStatus
Source§impl<'de> Deserialize<'de> for ManagedWorkerStatus
impl<'de> Deserialize<'de> for ManagedWorkerStatus
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 ManagedWorkerStatus
Source§impl PartialEq for ManagedWorkerStatus
impl PartialEq for ManagedWorkerStatus
Source§impl Serialize for ManagedWorkerStatus
impl Serialize for ManagedWorkerStatus
impl StructuralPartialEq for ManagedWorkerStatus
Auto Trait Implementations§
impl Freeze for ManagedWorkerStatus
impl RefUnwindSafe for ManagedWorkerStatus
impl Send for ManagedWorkerStatus
impl Sync for ManagedWorkerStatus
impl Unpin for ManagedWorkerStatus
impl UnsafeUnpin for ManagedWorkerStatus
impl UnwindSafe for ManagedWorkerStatus
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<M> EmbeddedConversationMessage for Mwhere
M: Serialize,
impl<M> EmbeddedConversationMessage for Mwhere
M: Serialize,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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