Stuck work is noticed without a model.
A builder blocked in a job or a wait looks alive. Every 30 seconds the daemon checks three plain rules, and only for a ticket that trips one does a short investigator agent take a look.
- Three plain rules, checked every 30 seconds
- A short investigator: one tool, a small model
- It may stop a hung or duplicate job, or message the builder
- You hear only what it could not fix
$ swairm status SUSPECT m2-07 a job has run 34m: job:e2e # an investigator looks: one tool, a small model # it stops a hung or duplicate job, or tells the builder # and ends with fixed: or not fixed: (you hear about the latter)
Features
Everything in Stuck work
Jobs that run too long
A job of the ticket has run 30 minutes. Time queued for a heavy slot doesn't count, and servers you name in stuck.servers are left alone.
Waits that never end
30 minutes waiting on something other than a landing or a job.
Silence
Nothing saved for 60 minutes, with no job or wait running.
The investigator
A short agent with one tool and a small model. It may stop a useless, duplicate or hung job, or message the builder, and ends with fixed: or not fixed:. At most three run at once, each for at most 15 minutes.
You hear what's left
You are notified of what it could not fix, and at once of a wait for your answer.
Not twice
The same thing isn't looked at again for two hours.
In status
swairm status shows these as SUSPECT.
Commands
swairm status | SUSPECT lines for what looks stuck |
swairm jobs | how long each job has run |
swairm run --stop N | stop a job yourself |
Settings
stuck | the stuck-work limits in minutes: job, save, wait, again, servers, investigators |
stale_minutes | a builder not heard from this long can be taken over (default 20) |
Set one with swairm config key=value, in swairm.json, or in the board's Settings. All about settings.
Why it works this way
The decisions behind it
Each one is a short record on GitHub: the context, the decision, and the options that were turned down.
Write the tickets. Let the swarm build them.
Install once. Every repository on your machine gets a swarm and a board.
curl -LO https://github.com/CodingNinja/swairm/releases/latest/download/swairm-macos.pkg && sudo installer -pkg swairm-macos.pkg -target /
go install github.com/CodingNinja/swairm/cmd/swairm@latest && swairm install