pub struct JobState {Show 15 fields
pub status: i32,
pub error: String,
pub started_at: i64,
pub ended_at: i64,
pub updated_at: i64,
pub participant_identity: String,
pub worker_id: String,
pub agent_id: String,
pub reason: i32,
pub accepted_at: i64,
pub assigned_at: i64,
pub attempts: u32,
pub first_started_at: i64,
pub agent_failed_attempts_ns: i64,
pub workers_asked: u32,
}Fields§
§status: i32§error: String§started_at: i64§ended_at: i64§updated_at: i64§participant_identity: String§worker_id: String§agent_id: String§reason: i32why the job has no agent, for JS_PENDING and JS_CANCELLED jobs
accepted_at: i64when the server received the worker’s accept for this attempt, in Unix nanoseconds
assigned_at: i64when the server sent the assignment for this attempt, in Unix nanoseconds
attempts: u32attempts assigned to a worker so far, the current one included
first_started_at: i64started_at of the first attempt assigned to a worker, in Unix nanoseconds
agent_failed_attempts_ns: i64time spent in attempts the agent’s own code failed before the agent joined, as an entrypoint that fails before it connects: from each such attempt’s start to the next attempt’s start, in nanoseconds
workers_asked: u32workers asked to take this attempt, the one that took it included
Implementations§
Source§impl JobState
impl JobState
Sourcepub fn status(&self) -> JobStatus
pub fn status(&self) -> JobStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: JobStatus)
pub fn set_status(&mut self, value: JobStatus)
Sets status to the provided enum value.
Sourcepub fn reason(&self) -> JobStateReason
pub fn reason(&self) -> JobStateReason
Returns the enum value of reason, or the default if the field is set to an invalid enum value.
Sourcepub fn set_reason(&mut self, value: JobStateReason)
pub fn set_reason(&mut self, value: JobStateReason)
Sets reason to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for JobState
impl<'de> Deserialize<'de> for JobState
§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 JobState
Source§impl Message for JobState
impl Message for JobState
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.