[{"data":1,"prerenderedAt":849,"buildId":850},["ShallowReactive",2],{"docs:\u002Freference\u002Fjob":3},{"page":4,"section":16,"document":17,"credits":10,"prev":845,"next":10},{"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},"job","\u002Freference\u002Fjob","reference\u002Fjob.md","Job record","The fields of the fleetjobs\u002Fjob@1 record that heavy status prints and the store keeps for every job, and the files of the store.",null,[],"i-lucide-file-json","article",true,5,"reference",{"nodes":18,"toc":842},[19,35,340,708,711,719,730],[20,21,22,26,27,30,31,34],"p",{},[23,24,25],"code",{},"heavy status --json"," prints ",[23,28,29],{},"{ \"schema\": \"fleetjobs\u002Fstatus@1\", \"jobs\": [...] }",", and each job is a ",[23,32,33],{},"fleetjobs\u002Fjob@1"," record. Times are seconds since 1970, with fractions.",[36,37,40],"pre",{"language":38,"class":39,"wrap":14},"json","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[23,41,43,52,53,52,69,52,81,52,93,52,105,52,125,52,137,52,149,52,160,52,173,52,185,52,197,52,209,52,221,52,233,52,245,52,257,52,269,52,298,52,335],{"class":42},"language-json",[44,45,48],"span",{"class":46,"style":47},"line","display: inline",[44,49,51],{"style":50},"color:#1F2328;--shiki-dark:#E6EDF3","{","\n",[44,54,55,59,62,66],{"class":46,"style":47},[44,56,58],{"style":57},"color:#116329;--shiki-dark:#7EE787","  \"schema\"",[44,60,61],{"style":50},": ",[44,63,65],{"style":64},"color:#0A3069;--shiki-dark:#A5D6FF","\"fleetjobs\u002Fjob@1\"",[44,67,68],{"style":50},",",[44,70,71,74,76,79],{"class":46,"style":47},[44,72,73],{"style":57},"  \"id\"",[44,75,61],{"style":50},[44,77,78],{"style":64},"\"b24d675b31\"",[44,80,68],{"style":50},[44,82,83,86,88,91],{"class":46,"style":47},[44,84,85],{"style":57},"  \"key\"",[44,87,61],{"style":50},[44,89,90],{"style":64},"\"328e0fbe8915da5d\"",[44,92,68],{"style":50},[44,94,95,98,100,103],{"class":46,"style":47},[44,96,97],{"style":57},"  \"cwd\"",[44,99,61],{"style":50},[44,101,102],{"style":64},"\"\u002Ftmp\u002Fapp\"",[44,104,68],{"style":50},[44,106,107,110,113,116,119,122],{"class":46,"style":47},[44,108,109],{"style":57},"  \"argv\"",[44,111,112],{"style":50},": [",[44,114,115],{"style":64},"\"sleep\"",[44,117,118],{"style":50},", ",[44,120,121],{"style":64},"\"2\"",[44,123,124],{"style":50},"],",[44,126,127,130,132,135],{"class":46,"style":47},[44,128,129],{"style":57},"  \"lane\"",[44,131,61],{"style":50},[44,133,134],{"style":64},"\"light\"",[44,136,68],{"style":50},[44,138,139,142,144,147],{"class":46,"style":47},[44,140,141],{"style":57},"  \"class\"",[44,143,61],{"style":50},[44,145,146],{"style":64},"\"normal\"",[44,148,68],{"style":50},[44,150,151,154,156,158],{"class":46,"style":47},[44,152,153],{"style":57},"  \"worktree\"",[44,155,61],{"style":50},[44,157,102],{"style":64},[44,159,68],{"style":50},[44,161,162,165,167,171],{"class":46,"style":47},[44,163,164],{"style":57},"  \"max\"",[44,166,61],{"style":50},[44,168,170],{"style":169},"color:#0550AE;--shiki-dark:#79C0FF","300",[44,172,68],{"style":50},[44,174,175,178,180,183],{"class":46,"style":47},[44,176,177],{"style":57},"  \"remote\"",[44,179,61],{"style":50},[44,181,182],{"style":64},"\"auto\"",[44,184,68],{"style":50},[44,186,187,190,192,195],{"class":46,"style":47},[44,188,189],{"style":57},"  \"state\"",[44,191,61],{"style":50},[44,193,194],{"style":64},"\"done\"",[44,196,68],{"style":50},[44,198,199,202,204,207],{"class":46,"style":47},[44,200,201],{"style":57},"  \"submittedAt\"",[44,203,61],{"style":50},[44,205,206],{"style":169},"1796527499.567",[44,208,68],{"style":50},[44,210,211,214,216,219],{"class":46,"style":47},[44,212,213],{"style":57},"  \"startedAt\"",[44,215,61],{"style":50},[44,217,218],{"style":169},"1796527499.708",[44,220,68],{"style":50},[44,222,223,226,228,231],{"class":46,"style":47},[44,224,225],{"style":57},"  \"endedAt\"",[44,227,61],{"style":50},[44,229,230],{"style":169},"1796527501.714",[44,232,68],{"style":50},[44,234,235,238,240,243],{"class":46,"style":47},[44,236,237],{"style":57},"  \"where\"",[44,239,61],{"style":50},[44,241,242],{"style":64},"\"local\"",[44,244,68],{"style":50},[44,246,247,250,252,255],{"class":46,"style":47},[44,248,249],{"style":57},"  \"slot\"",[44,251,61],{"style":50},[44,253,254],{"style":64},"\"light-1\"",[44,256,68],{"style":50},[44,258,259,262,264,267],{"class":46,"style":47},[44,260,261],{"style":57},"  \"exit\"",[44,263,61],{"style":50},[44,265,266],{"style":169},"0",[44,268,68],{"style":50},[44,270,271,274,277,280,282,285,287,290,292,295],{"class":46,"style":47},[44,272,273],{"style":57},"  \"owner\"",[44,275,276],{"style":50},": { ",[44,278,279],{"style":57},"\"pid\"",[44,281,61],{"style":50},[44,283,284],{"style":169},"3523172",[44,286,118],{"style":50},[44,288,289],{"style":57},"\"start\"",[44,291,61],{"style":50},[44,293,294],{"style":169},"7811252",[44,296,297],{"style":50}," },",[44,299,300,303,306,309,311,313,315,318,320,322,324,327,329,332],{"class":46,"style":47},[44,301,302],{"style":57},"  \"attempts\"",[44,304,305],{"style":50},": [{ ",[44,307,308],{"style":57},"\"where\"",[44,310,61],{"style":50},[44,312,242],{"style":64},[44,314,118],{"style":50},[44,316,317],{"style":57},"\"exit\"",[44,319,61],{"style":50},[44,321,266],{"style":169},[44,323,118],{"style":50},[44,325,326],{"style":57},"\"seconds\"",[44,328,61],{"style":50},[44,330,331],{"style":169},"2.006",[44,333,334],{"style":50}," }]",[44,336,337],{"class":46,"style":47},[44,338,339],{"style":50},"}",[341,342,343,359],"table",{},[344,345,346],"thead",{},[347,348,349,353,356],"tr",{},[350,351,352],"th",{},"Field",[350,354,355],{},"Type",[350,357,358],{},"Meaning",[360,361,362,377,390,410,421,434,452,485,497,510,526,546,563,583,595,610,625,643,655,674],"tbody",{},[347,363,364,370,374],{},[365,366,367],"td",{},[23,368,369],{},"schema",[365,371,372],{},[23,373,65],{},[365,375,376],{},"The record version",[347,378,379,384,387],{},[365,380,381],{},[23,382,383],{},"id",[365,385,386],{},"string",[365,388,389],{},"The job id",[347,391,392,397,399],{},[365,393,394],{},[23,395,396],{},"key",[365,398,386],{},[365,400,401,402,405,406,409],{},"A hash of ",[23,403,404],{},"cwd"," and ",[23,407,408],{},"argv",". A live job with the same key is followed, not repeated",[347,411,412,416,418],{},[365,413,414],{},[23,415,404],{},[365,417,386],{},[365,419,420],{},"The working directory",[347,422,423,427,431],{},[365,424,425],{},[23,426,408],{},[365,428,386,429],{},[44,430],{},[365,432,433],{},"The command and its arguments",[347,435,436,441,449],{},[365,437,438],{},[23,439,440],{},"lane",[365,442,443,446,447],{},[23,444,445],{},"\"heavy\""," or ",[23,448,134],{},[365,450,451],{},"The lane",[347,453,454,459,475],{},[365,455,456],{},[23,457,458],{},"class",[365,460,461,118,464,118,466,118,469,446,472],{},[23,462,463],{},"\"short\"",[23,465,146],{},[23,467,468],{},"\"long\"",[23,470,471],{},"\"confirm\"",[23,473,474],{},"\"sample\"",[365,476,477,478,405,481,484],{},"How the scheduler treats it. ",[23,479,480],{},"confirm",[23,482,483],{},"sample"," are reruns after a remote result",[347,486,487,492,494],{},[365,488,489],{},[23,490,491],{},"worktree",[365,493,386],{},[365,495,496],{},"The checkout, which fair share counts usage by",[347,498,499,504,507],{},[365,500,501],{},[23,502,503],{},"estimate",[365,505,506],{},"number, optional",[365,508,509],{},"Seconds the last runs of this command took",[347,511,512,517,520],{},[365,513,514],{},[23,515,516],{},"max",[365,518,519],{},"number",[365,521,522,523,525],{},"The time limit in seconds, ",[23,524,266],{}," for none",[347,527,528,533,543],{},[365,529,530],{},[23,531,532],{},"remote",[365,534,535,118,537,446,540],{},[23,536,182],{},[23,538,539],{},"\"any\"",[23,541,542],{},"\"never\"",[365,544,545],{},"Whether the job may leave this machine",[347,547,548,553,556],{},[365,549,550],{},[23,551,552],{},"blocking",[365,554,555],{},"boolean, optional",[365,557,558,559,562],{},"A waiting ",[23,560,561],{},"heavy \u003Ccmd>"," started it",[347,564,565,570,580],{},[365,566,567],{},[23,568,569],{},"state",[365,571,572,118,575,446,578],{},[23,573,574],{},"\"queued\"",[23,576,577],{},"\"running\"",[23,579,194],{},[365,581,582],{},"Where the job is",[347,584,585,590,592],{},[365,586,587],{},[23,588,589],{},"submittedAt",[365,591,519],{},[365,593,594],{},"When it was queued",[347,596,597,605,607],{},[365,598,599,118,602],{},[23,600,601],{},"startedAt",[23,603,604],{},"endedAt",[365,606,506],{},[365,608,609],{},"When it started and ended",[347,611,612,617,620],{},[365,613,614],{},[23,615,616],{},"where",[365,618,619],{},"string, optional",[365,621,622,624],{},[23,623,242],{}," or a host name",[347,626,627,632,634],{},[365,628,629],{},[23,630,631],{},"slot",[365,633,619],{},[365,635,636,637,446,640],{},"The local slot, such as ",[23,638,639],{},"heavy-1",[23,641,642],{},"light-1",[347,644,645,650,652],{},[365,646,647],{},[23,648,649],{},"exit",[365,651,506],{},[365,653,654],{},"The exit code, once done",[347,656,657,662,667],{},[365,658,659],{},[23,660,661],{},"owner",[365,663,664],{},[23,665,666],{},"{ pid, start }",[365,668,669,670,673],{},"The supervisor process. ",[23,671,672],{},"start"," is its start time in clock ticks, so a reused pid does not pass for it",[347,675,676,681,684],{},[365,677,678],{},[23,679,680],{},"attempts",[365,682,683],{},"array",[365,685,686,687,118,689,118,691,694,695,698,699,118,702,446,705],{},"One entry for each run: ",[23,688,616],{},[23,690,649],{},[23,692,693],{},"seconds",", and ",[23,696,697],{},"why"," when the run was not the final answer, such as ",[23,700,701],{},"\"environment\"",[23,703,704],{},"\"timeout\"",[23,706,707],{},"\"copy-back failed\"",[20,709,710],{},"Only a job's supervisor writes its record. A record whose owner died frees its slot.",[712,713,718],"h2",{"id":714,"anchor":715},"the-store",{"label":716,"icon":717},"Section titled \"The store\"","#","The store",[20,720,721,722,725,726,729],{},"The store is ",[23,723,724],{},"$HEAVY_DIR",", or ",[23,727,728],{},"~\u002F.local\u002Fstate\u002Ffleetjobs",".",[341,731,732,742],{},[344,733,734],{},[347,735,736,739],{},[350,737,738],{},"Path",[350,740,741],{},"Holds",[360,743,744,763,773,783,793,808,822,832],{},[347,745,746,751],{},[365,747,748],{},[23,749,750],{},"jobs\u002F\u003Cid>\u002F",[365,752,753,118,756,405,759,762],{},[23,754,755],{},"job.json",[23,757,758],{},"stdout",[23,760,761],{},"stderr",". Folders of jobs that ended are deleted after a day",[347,764,765,770],{},[365,766,767],{},[23,768,769],{},"keys\u002F\u003Ckey>",[365,771,772],{},"The id of the live job for that working directory and command",[347,774,775,780],{},[365,776,777],{},[23,778,779],{},"queue.lock",[365,781,782],{},"Held for one change at a time",[347,784,785,790],{},[365,786,787],{},[23,788,789],{},"hosts\u002F\u003Cname>.json",[365,791,792],{},"The last probe of a host, valid for 15 seconds, 2 minutes while it is down",[347,794,795,800],{},[365,796,797],{},[23,798,799],{},"trust.json",[365,801,802,803],{},"The ",[804,805,807],"a",{"href":806},"\u002Fguide\u002Ftrust","trust table",[347,809,810,815],{},[365,811,812],{},[23,813,814],{},"night\u002F\u003Cid>\u002F",[365,816,817,818],{},"A job queued for the ",[804,819,821],{"href":820},"\u002Fguide\u002Fnight","night",[347,823,824,829],{},[365,825,826],{},[23,827,828],{},"oom\u002F\u003Cscope>",[365,830,831],{},"Markers of jobs killed for memory",[347,833,834,839],{},[365,835,836],{},[23,837,838],{},"log\u002Fjobs.jsonl",[365,840,841],{},"One final record for each job. Rolled at 2 MB, kept 30 days",[843],{"id":714,"depth":844,"text":718},2,{"path":846,"title":847,"description":848},"\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.",1796530822536,"9e7c308e-a25b-413c-bd8b-9a1122ddc1d4"]