pub struct ServiceJobStatus {
pub job_iteration: Option<ObjectVersion>,
pub last_execution: Option<BollardDate>,
}
Expand description
The status of the service when it is in one of ReplicatedJob or GlobalJob modes. Absent on Replicated and Global mode services. The JobIteration is an ObjectVersion, but unlike the Service’s version, does not need to be sent with an update request.
Fields§
§job_iteration: Option<ObjectVersion>
JobIteration is a value increased each time a Job is executed, successfully or otherwise. "Executed", in this case, means the job as a whole has been started, not that an individual Task has been launched. A job is "Executed" when its ServiceSpec is updated. JobIteration can be used to disambiguate Tasks belonging to different executions of a job. Though JobIteration will increase with each subsequent execution, it may not necessarily increase by 1, and so JobIteration should not be used to
last_execution: Option<BollardDate>
The last time, as observed by the server, that this job was started.
Trait Implementations§
Source§impl Clone for ServiceJobStatus
impl Clone for ServiceJobStatus
Source§fn clone(&self) -> ServiceJobStatus
fn clone(&self) -> ServiceJobStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more