a lightweight task queue and tracker in a single binary.
igoralexey.com/taskd
taskd is a task queue daemon with atomic leases, dependency tracking, and embedded web and terminal interfaces.
Workers claim tasks under time-limited leases and either mark them done or let them return to the queue. Tasks can wait on other tasks before becoming claimable.
Start the daemon:
taskd serve -addr 127.0.0.1:8080Add and work tasks from the command line:
export TASKD_URL=http://127.0.0.1:8080 TASKD_PROJECT=myapp
taskd add 'Fix the login redirect'
taskd claim
taskd note 1 'root cause is the cookie path'
taskd done 1Open http://127.0.0.1:8080 in a browser for the web ledger, or launch
the terminal UI:
taskd-tuicurl -fsSLO https://github.com/IgorAlexey/taskd/releases/latest/download/install.sh
sh install.shThis puts taskd and taskd-tui in ~/.local/bin (TASKD_INSTALL_DIR
picks another directory). The tarballs it downloads, for Linux and macOS on
amd64 and arm64, are on the releases page.
With a Go toolchain:
go install github.com/IgorAlexey/taskd@latest
go install github.com/IgorAlexey/taskd/cmd/taskd-tui@latestThese land in $(go env GOPATH)/bin, usually ~/go/bin, which has to be on
your PATH.
Give the daemon a token and every request needs it. taskd and
taskd-tui read the same variable; the web UI asks for it once and keeps
it in a cookie.
export TASKD_TOKEN=$(openssl rand -hex 16)
taskd serve -addr 127.0.0.1:8080
TASKD_URL=http://127.0.0.1:8080 taskd listThe token travels in a header, so on a network put the daemon behind TLS. A reverse proxy does that; with Caddy:
tasks.example.com {
reverse_proxy 127.0.0.1:8080
}