Set these in the environment of the heavy call, except where noted.
| Variable | Default | Effect |
|---|---|---|
HEAVY_MAX | 1200, 300 for --light | Seconds a job may run. After that it gets TERM, then KILL 30 seconds later, and exits 124. 0 means no limit |
HEAVY_LOCAL | unset | 1 keeps the job on this machine |
HEAVY_REMOTE | unset | 1 lets any command leave, not only builds, tests, typechecks and lint |
HEAVY_DIR | ~/.local/state/fleetjobs | The store. See the job record |
HEAVY_ABANDON | 600 | Seconds without a waiter before a job leaves the queue with exit 75. A job from heavy submit gets six times as long |
HEAVY_SLICE | app-t3code-heavy.slice | The systemd slice for each job's scope |
HEAVY_NO_SCOPE | unset | Any value runs jobs without a systemd scope |
HEAVY_OOM_WAIT | 180 | Seconds to wait for memory before the retry after a kill |
HEAVY_MAINTENANCE | unset | Any value lets pnpm store prune run through heavy; without it heavy refuses with exit 64 |
FLEETJOBS_CONFIG | ~/.config/fleetjobs/config.json | The config file to read. The live tests use it |
HEAVY_NIGHT_RUN | unset | Set by heavy night run. A job killed for memory is not queued again |
On a host
Section titled "On a host"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.
| Variable | Default | Effect |
|---|---|---|
HEAVY_HOST_MIN_MEM_GB | 3 | Free memory below this makes the host busy |
HEAVY_HOST_MIN_DISK_GB | 15 | Free disk below this makes the host busy |
HEAVY_HOST_MAX_OTHERS | 25 | The 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.