pub struct Job {
pub id: String,
pub name: String,
pub status: JobStatus,
pub command: String,
pub duration_secs: Option<u64>,
pub started_at: Option<f64>,
pub depends_on: Vec<String>,
pub output: Option<String>,
pub required_labels: Vec<String>,
pub max_retries: u32,
pub attempt: u32,
}Fields§
§id: String§name: String§status: JobStatus§command: String§duration_secs: Option<u64>§started_at: Option<f64>Epoch milliseconds when the job started running (for live timer).
depends_on: Vec<String>§output: Option<String>§required_labels: Vec<String>Worker labels required to execute this job.
max_retries: u32Maximum number of retries on failure.
attempt: u32Current attempt number (0-indexed).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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
Mutably borrows from an owned value. Read more