pub struct Admission {Show 17 fields
pub enabled: bool,
pub required: bool,
pub quota_cmd: Option<String>,
pub live_jobs_cmd: Option<String>,
pub lock: Option<String>,
pub lock_kind: String,
pub reservations: Option<String>,
pub margin: Option<u64>,
pub unknown_reserve: Option<u64>,
pub default_footprint: Option<u64>,
pub job_id_env: String,
pub quota_total: Option<u64>,
pub footprints: Option<String>,
pub line_overhead: Option<u64>,
pub attempts: u32,
pub wait_seconds: u64,
pub max_wait_seconds: u64,
}Expand description
Inode admission before a build unit starts.
Fields§
§enabled: boolSet false to skip the phase.
required: boolWhen true, a missing quota_cmd or reservations refuses the run with exit 78. When false, the phase is skipped as not configured.
quota_cmd: Option<String>Shell command printing the quota JSON, passed to stack admit --quota-cmd.
live_jobs_cmd: Option<String>Shell command printing live job ids, passed to stack admit --live-jobs-cmd. Without it every other job’s reservation counts, including those of jobs that ended without removing theirs; check warns.
lock: Option<String>Lock file shared by all admission controllers; run also takes it to remove the job’s reservation.
lock_kind: Stringflock or posix; must match the other lock holders.
reservations: Option<String>Directory of reservations.
margin: Option<u64>Inodes kept free.
unknown_reserve: Option<u64>Inodes counted per live job that has no reservation record (stack admit --unknown-reserve).
default_footprint: Option<u64>Inode footprint of a unit when the shard plan gives none. Required when admission is enabled; check exits 2 without it.
job_id_env: StringEnvironment variable that holds the scheduler job id at run time. run refuses with exit 78 before any build when it is unset or not a positive integer without a leading zero; plan shows ${NAME}.
quota_total: Option<u64>Planning cap, passed to stack shard --inode-quota.
footprints: Option<String>footprints.json for stack shard --inode-footprints.
line_overhead: Option<u64>Inodes per build list line beyond its build tree.
attempts: u32Admission attempts before the run is refused.
wait_seconds: u64Seconds before the second attempt; doubles on each further attempt.
max_wait_seconds: u64Upper bound of the wait between attempts.