pub struct TaskSettings {
pub retries: u32,
pub retry_delay_ms: u64,
pub timeout_ms: Option<u64>,
pub queue: String,
pub max_output_size: u64,
pub preload: bool,
pub fresh_process: bool,
pub run_if: RunIf,
pub max_active: Option<u32>,
pub max_active_per_run: Option<u32>,
pub memory_bytes: Option<u64>,
pub hard_memory_limit: bool,
}Expand description
A task’s settings, resolved from its own arguments and the defaults that apply to it.
Fields§
§retries: u32How many times a failed attempt is retried.
retry_delay_ms: u64The delay before each retry, in milliseconds.
timeout_ms: Option<u64>The attempt’s timeout in milliseconds; None for no timeout.
queue: StringThe queue the task goes to.
max_output_size: u64The output size limit in bytes.
preload: boolA Python task: fork it from the preloaded fork server (false: only from the bare
one, for code that misbehaves next to the preloaded libraries). Not for other tasks.
fresh_process: boolA Python task: always a new process, never forked (for code that misbehaves after a fork). Not for other tasks.
run_if: RunIfWhen it runs, from its upstream edges (its trigger rule).
max_active: Option<u32>At most this many of its instances running at once, across all runs (decided from
the DAG’s current version, decision 87A); None for no limit.
max_active_per_run: Option<u32>At most this many of its instances running at once within one run (from the run’s own
version); None for no limit.
memory_bytes: Option<u64>Its own memory budget in bytes (memory=, decision 436), instead of the worker’s share:
the watchdog kills it above; taken only by a worker whose pod limit, less its reserve,
holds it (decision 437). None: the worker’s budget.
hard_memory_limit: boolAlso capped hard at memory_bytes (hard_memory_limit=True, decision 438): the
process’s RLIMIT_DATA, so an allocation past it fails inside the task.
Trait Implementations§
Source§impl Clone for TaskSettings
impl Clone for TaskSettings
Source§fn clone(&self) -> TaskSettings
fn clone(&self) -> TaskSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TaskSettings
impl Debug for TaskSettings
Source§impl Default for TaskSettings
impl Default for TaskSettings
Source§impl<'de> Deserialize<'de> for TaskSettings
impl<'de> Deserialize<'de> for TaskSettings
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>,
impl Eq for TaskSettings
Source§impl JsonSchema for TaskSettings
impl JsonSchema for TaskSettings
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more