pub struct Run {
pub run_id: String,
pub job_id: String,
pub task_name: String,
pub attempt: i32,
pub status: RunStatus,
pub started_at: DateTime<Utc>,
pub finished_at: Option<DateTime<Utc>>,
pub duration_ms: Option<i64>,
pub error_message: Option<String>,
}Expand description
One execution attempt of a job.
Fields§
§run_id: StringUnique identifier (UUID).
job_id: StringJob this run belongs to.
task_name: StringTask name (denormalized).
attempt: i32Attempt number (1-based).
status: RunStatusStatus.
started_at: DateTime<Utc>When execution started.
finished_at: Option<DateTime<Utc>>When execution finished (if terminal).
duration_ms: Option<i64>Duration in milliseconds (if finished).
error_message: Option<String>Error message if failed.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Run
impl<'de> Deserialize<'de> for Run
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 Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Run
impl UnwindSafe for Run
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