pub struct Job {Show 39 fields
pub id: String,
pub title: String,
pub kind: String,
pub badge: Option<JobBadge>,
pub source: String,
pub owner: Option<String>,
pub command: Option<String>,
pub orphaned: Option<String>,
pub reason: Option<String>,
pub parent: Option<String>,
pub weight: f64,
pub state: JobState,
pub done: u64,
pub total: Option<u64>,
pub failed: u64,
pub skipped: u64,
pub item: Option<String>,
pub item_progress: Option<f64>,
pub phase: Option<String>,
pub steps: Vec<Step>,
pub step: Option<String>,
pub hint: Option<f64>,
pub refined: Option<f64>,
pub fraction: Option<f64>,
pub cancellable: bool,
pub pausable: bool,
pub retryable: bool,
pub error: Option<String>,
pub errors: Vec<ItemError>,
pub actions: Vec<JobAction>,
pub requested: Option<Request>,
pub request_error: Option<String>,
pub started_at: f64,
pub updated_at: f64,
pub ended_at: Option<f64>,
pub attempts: u32,
pub seq: u64,
pub log_total: u64,
pub serial: u64,
/* private fields */
}Expand description
A job, as the events made it.
Fields§
§id: String§title: String§kind: StringWhat kind of work (an icon role: export, import, render).
badge: Option<JobBadge>A symbol before its title (JobBadge).
source: StringWho published it (the journal’s source).
owner: Option<String>The plugin it runs for, when its job.started named one.
command: Option<String>The command that started it, when its job.started named one.
orphaned: Option<String>The plugin it was left by: its owner is disconnected and the job
goes on (job.orphaned).
reason: Option<String>Why it is being cancelled or was, when it was not the user (its plugin is disconnected).
parent: Option<String>§weight: f64Its share of its parent.
state: JobState§done: u64§total: Option<u64>§failed: u64§skipped: u64§item: Option<String>The item being worked on, and how far it is (0 to 1).
item_progress: Option<f64>§phase: Option<String>§steps: Vec<Step>§step: Option<String>The current step’s id.
hint: Option<f64>The host’s own estimate (0 to 1).
refined: Option<f64>The application’s estimate (Jobs::refine), overriding the
model’s.
fraction: Option<f64>The estimated overall fraction (0 to 1); none: indeterminate.
cancellable: bool§pausable: bool§retryable: bool§error: Option<String>§errors: Vec<ItemError>The last failed items, oldest first.
actions: Vec<JobAction>§requested: Option<Request>What was asked of the host, until it answers.
request_error: Option<String>Why the host refused the last request.
started_at: f64§updated_at: f64§ended_at: Option<f64>§attempts: u32How many times it started (1, then retries).
seq: u64The last event that changed it.
log_total: u64Lines ever written to its log.
serial: u64Its place in the list (the order jobs first started in).