pub struct CoreConfig {Show 13 fields
pub pools: Vec<PoolConfig>,
pub resources: Vec<ResourceConfig>,
pub priority: PriorityConfig,
pub urgency: UrgencyConfig,
pub global_bounds: Bounds,
pub retention: Duration,
pub retention_max: usize,
pub persist: bool,
pub epoch_unix_nanos: i64,
pub id_epoch: u16,
pub id_shard: Option<u8>,
pub metrics_window: Duration,
pub seed: u64,
}Expand description
Complete engine configuration.
Fields§
§pools: Vec<PoolConfig>Worker pools (at least one; the first is the default).
resources: Vec<ResourceConfig>Shared resources.
priority: PriorityConfigClass scores and aging.
urgency: UrgencyConfigDeadline urgency curve.
global_bounds: BoundsQueue bounds across all pools.
retention: DurationHow long terminal statuses are remembered (for late dependents and lookups).
retention_max: usizeMaximum number of remembered terminal statuses.
persist: boolEmit Action::Persist mutations.
epoch_unix_nanos: i64Unix time (ns) corresponding to Time::ZERO; used for cron schedules.
id_epoch: u16High bits mixed into task and lease ids (leader epoch in HA mode), so ids issued by different leaders never collide.
id_shard: Option<u8>Shard number, for servers that split pools between shards. When set, task ids carry it
in their top 8 bits (shard << 56, with the epoch and a sequence below it), so ids of
different shards never collide and name their shard (TaskId::shard).
metrics_window: DurationWindow for snapshot metrics.
seed: u64Seed for retry jitter.