GitHub
Skip to content

Environment variables

Every environment variable fleetjobs reads, for time limits, placement, the store, systemd scopes, memory retries and the night run.

Set these in the environment of the heavy call, except where noted.

VariableDefaultEffect
HEAVY_MAX1200, 300 for --lightSeconds a job may run. After that it gets TERM, then KILL 30 seconds later, and exits 124. 0 means no limit
HEAVY_LOCALunset1 keeps the job on this machine
HEAVY_REMOTEunset1 lets any command leave, not only builds, tests, typechecks and lint
HEAVY_DIR~/.local/state/fleetjobsThe store. See the job record
HEAVY_ABANDON600Seconds without a waiter before a job leaves the queue with exit 75. A job from heavy submit gets six times as long
HEAVY_SLICEapp-t3code-heavy.sliceThe systemd slice for each job's scope
HEAVY_NO_SCOPEunsetAny value runs jobs without a systemd scope
HEAVY_OOM_WAIT180Seconds to wait for memory before the retry after a kill
HEAVY_MAINTENANCEunsetAny value lets pnpm store prune run through heavy; without it heavy refuses with exit 64
FLEETJOBS_CONFIG~/.config/fleetjobs/config.jsonThe config file to read. The live tests use it
HEAVY_NIGHT_RUNunsetSet by heavy night run. A job killed for memory is not queued again

These are read by the host script, in the environment of the ssh session on the host. They change when a host counts as busy.

VariableDefaultEffect
HEAVY_HOST_MIN_MEM_GB3Free memory below this makes the host busy
HEAVY_HOST_MIN_DISK_GB15Free disk below this makes the host busy
HEAVY_HOST_MAX_OTHERS25The percent of the CPUs that other processes may use while CPU pressure is 40% or more

HEAVY_WAIT and HEAVY_REMOTES of the bash heavy are gone. See Migrating.