GitHub

Builds and tests on the machine that finishes first

Queue a command, and fleetjobs runs it on the first machine with room. Your agents wait for the exit code and never pick a machine.

Install fleetjobs as a dependency.
Read https://fleetjobs.loadsheet.dev/guide, then run every build and test through `heavy <command>`.
text
build.ts
heavy pnpm test
heavy --light pnpm lint
node build.ts
job 7 queued in the heavy lane
job 7 running on this machine
job 7 exited 0
text

Heavy jobs take a slot each and wait their turn. Light jobs run beside them.

An agent that needs the result calls heavy <command> and gets the command's exit code. One that wants to carry on calls heavy submit, then heavy wait <id> later.

fleetjobs is at an early version: the commands parse and print, and the queue behind them lands in later releases.

Built with ViteHub Docs