GitHub
Skip to content

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.

The config file is ~/.config/fleetjobs/config.json. Every field is optional, and so is the file. fleetjobs reads it again on every scheduler tick, every half second for each waiting job, so a change applies to queued jobs at once. If the file does not parse, for example while an editor is writing it, fleetjobs keeps the last good copy, or the defaults when there was none, and prints one warning for each distinct error.

{
  "local": { "heavy": 2, "idle": 1, "light": 1, "lightExtra": 1 },
  "hosts": [{ "name": "build-box", "address": "me@build-box", "slots": 2, "speed": 0.5 }],
  "never": ["quiverdk/*"]
}
json

Slot counts on this machine. See placement.

FieldDefaultMeaning
heavy2Heavy slots that are always open
idle1Extra heavy slots while the machine is idle
light1Light slots that are always open
lightExtra1Extra light slots while CPU pressure is low

Setting heavy and idle both to 0 sends every heavy job to a host.

A list of machines that may run jobs. A host without a name or an address is an error.

FieldDefaultMeaning
namenoneNames the host in status, in job records and in the --host flag of replay
addressnoneWhat ssh takes, such as me@build-box. An absolute folder path runs the host on this machine with that folder as its home, which the tests use
slots1Jobs the host runs at once
speed1Speed against this machine; 0.5 is half as fast

A list of owner/repo patterns, with * for any part. A job in a checkout whose origin matches never leaves this machine. The default is ["quiverdk/*"], and a file that sets never replaces it.