pub enum RunsOn {
Backend,
Agent,
}Expand description
v0.23 — where the cron tick fires from.
Variants§
Backend
Backend’s central scheduler ticks and publishes Commands to
NATS. Historical default, what every pre-v0.23 schedule
uses. Agent offline ⇒ Command queued in STREAM_EXEC; agent
reconnects ⇒ catch-up via command_replay
(see kanade-agent’s command_replay module).
Agent
Each targeted agent runs the cron tick locally. Survives broker / WAN outages. Best for laptops / mobile devices that roam off the corporate network. Agent must be online for the initial schedule + job-catalog pull, but once cached the agent fires the script standalone.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunsOn
impl<'de> Deserialize<'de> for RunsOn
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
Source§impl JsonSchema for RunsOn
impl JsonSchema for RunsOn
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl Copy for RunsOn
impl Eq for RunsOn
impl StructuralPartialEq for RunsOn
Auto Trait Implementations§
impl Freeze for RunsOn
impl RefUnwindSafe for RunsOn
impl Send for RunsOn
impl Sync for RunsOn
impl Unpin for RunsOn
impl UnsafeUnpin for RunsOn
impl UnwindSafe for RunsOn
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