[{"data":1,"prerenderedAt":349,"buildId":350},["ShallowReactive",2],{"docs:\u002Freference\u002Fenvironment":3},{"page":4,"section":16,"document":17,"credits":10,"prev":341,"next":345},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"environment","\u002Freference\u002Fenvironment","reference\u002Fenvironment.md","Environment variables","Every environment variable fleetjobs reads, for time limits, placement, the store, systemd scopes, memory retries and the night run.",null,[],"i-lucide-variable","article",true,3,"reference",{"nodes":18,"toc":338},[19,28,250,258,261,320],[20,21,22,23,27],"p",{},"Set these in the environment of the ",[24,25,26],"code",{},"heavy"," call, except where noted.",[29,30,31,47],"table",{},[32,33,34],"thead",{},[35,36,37,41,44],"tr",{},[38,39,40],"th",{},"Variable",[38,42,43],{},"Default",[38,45,46],{},"Effect",[48,49,50,86,102,116,136,155,170,182,197,219,234],"tbody",{},[35,51,52,58,71],{},[53,54,55],"td",{},[24,56,57],{},"HEAVY_MAX",[53,59,60,63,64,67,68],{},[24,61,62],{},"1200",", ",[24,65,66],{},"300"," for ",[24,69,70],{},"--light",[53,72,73,74,77,78,81,82,85],{},"Seconds a job may run. After that it gets ",[24,75,76],{},"TERM",", then ",[24,79,80],{},"KILL"," 30 seconds later, and exits 124. ",[24,83,84],{},"0"," means no limit",[35,87,88,93,96],{},[53,89,90],{},[24,91,92],{},"HEAVY_LOCAL",[53,94,95],{},"unset",[53,97,98,101],{},[24,99,100],{},"1"," keeps the job on this machine",[35,103,104,109,111],{},[53,105,106],{},[24,107,108],{},"HEAVY_REMOTE",[53,110,95],{},[53,112,113,115],{},[24,114,100],{}," lets any command leave, not only builds, tests, typechecks and lint",[35,117,118,123,128],{},[53,119,120],{},[24,121,122],{},"HEAVY_DIR",[53,124,125],{},[24,126,127],{},"~\u002F.local\u002Fstate\u002Ffleetjobs",[53,129,130,131],{},"The store. See ",[132,133,135],"a",{"href":134},"\u002Freference\u002Fjob#the-store","the job record",[35,137,138,143,148],{},[53,139,140],{},[24,141,142],{},"HEAVY_ABANDON",[53,144,145],{},[24,146,147],{},"600",[53,149,150,151,154],{},"Seconds without a waiter before a job leaves the queue with exit 75. A job from ",[24,152,153],{},"heavy submit"," gets six times as long",[35,156,157,162,167],{},[53,158,159],{},[24,160,161],{},"HEAVY_SLICE",[53,163,164],{},[24,165,166],{},"app-t3code-heavy.slice",[53,168,169],{},"The systemd slice for each job's scope",[35,171,172,177,179],{},[53,173,174],{},[24,175,176],{},"HEAVY_NO_SCOPE",[53,178,95],{},[53,180,181],{},"Any value runs jobs without a systemd scope",[35,183,184,189,194],{},[53,185,186],{},[24,187,188],{},"HEAVY_OOM_WAIT",[53,190,191],{},[24,192,193],{},"180",[53,195,196],{},"Seconds to wait for memory before the retry after a kill",[35,198,199,204,206],{},[53,200,201],{},[24,202,203],{},"HEAVY_MAINTENANCE",[53,205,95],{},[53,207,208,209,212,213,215,216,218],{},"Any value lets ",[24,210,211],{},"pnpm store prune"," run through ",[24,214,26],{},"; without it ",[24,217,26],{}," refuses with exit 64",[35,220,221,226,231],{},[53,222,223],{},[24,224,225],{},"FLEETJOBS_CONFIG",[53,227,228],{},[24,229,230],{},"~\u002F.config\u002Ffleetjobs\u002Fconfig.json",[53,232,233],{},"The config file to read. The live tests use it",[35,235,236,241,243],{},[53,237,238],{},[24,239,240],{},"HEAVY_NIGHT_RUN",[53,242,95],{},[53,244,245,246,249],{},"Set by ",[24,247,248],{},"heavy night run",". A job killed for memory is not queued again",[251,252,257],"h2",{"id":253,"anchor":254},"on-a-host",{"label":255,"icon":256},"Section titled \"On a host\"","#","On a host",[20,259,260],{},"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.",[29,262,263,273],{},[32,264,265],{},[35,266,267,269,271],{},[38,268,40],{},[38,270,43],{},[38,272,46],{},[48,274,275,290,305],{},[35,276,277,282,287],{},[53,278,279],{},[24,280,281],{},"HEAVY_HOST_MIN_MEM_GB",[53,283,284],{},[24,285,286],{},"3",[53,288,289],{},"Free memory below this makes the host busy",[35,291,292,297,302],{},[53,293,294],{},[24,295,296],{},"HEAVY_HOST_MIN_DISK_GB",[53,298,299],{},[24,300,301],{},"15",[53,303,304],{},"Free disk below this makes the host busy",[35,306,307,312,317],{},[53,308,309],{},[24,310,311],{},"HEAVY_HOST_MAX_OTHERS",[53,313,314],{},[24,315,316],{},"25",[53,318,319],{},"The percent of the CPUs that other processes may use while CPU pressure is 40% or more",[20,321,322,325,326,329,330,332,333,337],{},[24,323,324],{},"HEAVY_WAIT"," and ",[24,327,328],{},"HEAVY_REMOTES"," of the bash ",[24,331,26],{}," are gone. See ",[132,334,336],{"href":335},"\u002Fguide\u002Fmigrating","Migrating",".",[339],{"id":253,"depth":340,"text":257},2,{"path":342,"title":343,"description":344},"\u002Freference\u002Fconfig","Config file","The fields of the fleetjobs config file, its location, defaults and how often it is read, for slot counts, hosts and repositories that stay.",{"path":346,"title":347,"description":348},"\u002Freference\u002Fapi","Library API","The functions and types fleetjobs exports for queueing jobs from a program, scheduling them, replaying logs and reading the job record.",1796530822371,"9e7c308e-a25b-413c-bd8b-9a1122ddc1d4"]