pub struct JobSpec {Show 14 fields
pub name: String,
pub schedule: String,
pub timezone: Option<String>,
pub target: Target,
pub mode: Mode,
pub command: Vec<String>,
pub timeout: String,
pub concurrency: Concurrency,
pub keep: u32,
pub enabled: bool,
pub user: Option<String>,
pub cwd: Option<String>,
pub env: BTreeMap<String, String>,
pub missed_grace: Option<String>,
}Expand description
What a user sets on a job.
Fields§
§name: String§schedule: StringFive cron fields or an alias (@hourly, @daily, …).
timezone: Option<String>UTC (default) or a fixed offset such as +02:00.
target: Target§mode: Mode§command: Vec<String>argv (no shell unless you run one: [sh, -c, ...]).
timeout: String§concurrency: Concurrency§keep: u32Runs kept.
enabled: bool§user: Option<String>§cwd: Option<String>§env: BTreeMap<String, String>Extra variables for the command.
missed_grace: Option<String>How late a slot missed while the daemon was down may still run
(default 1h; 0s never runs missed slots).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobSpec
impl<'de> Deserialize<'de> for JobSpec
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
impl StructuralPartialEq for JobSpec
Auto Trait Implementations§
impl Freeze for JobSpec
impl RefUnwindSafe for JobSpec
impl Send for JobSpec
impl Sync for JobSpec
impl Unpin for JobSpec
impl UnsafeUnpin for JobSpec
impl UnwindSafe for JobSpec
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