Getting started

Getting started

Install

curl -fsSL https://raw.githubusercontent.com/espetro/coordinate/main/install.sh | sh

The binary lands in ~/.local/bin/coordinate. With mise you can use mise use -g github:espetro/coordinate instead.

Run your first job

Start the daemon on the machine that should run the work. There is one daemon per machine.

coordinate daemon &

Enqueue a command. The command prints the job id.

coordinate enqueue --shell -- 'pnpm test && pnpm build'

Watch it run.

coordinate status        # every job
coordinate status 1      # one job
coordinate stats         # counts per state
coordinate events --follow

Where things live

Each machine keeps its own database at $XDG_STATE_HOME/coordinate/queue.db, which is ~/.local/state/coordinate/queue.db by default. Set COORDINATE_DB to use another file. Never share one database file between machines.