swairm
Watch

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

Features

Everything in Stuck work

01

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.

02

Waits that never end

30 minutes waiting on something other than a landing or a job.

03

Silence

Nothing saved for 60 minutes, with no job or wait running.

04

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.

05

You hear what's left

You are notified of what it could not fix, and at once of a wait for your answer.

06

Not twice

The same thing isn't looked at again for two hours.

07

In status

swairm status shows these as SUSPECT.

Commands

swairm statusSUSPECT lines for what looks stuck
swairm jobshow long each job has run
swairm run --stop Nstop a job yourself

Settings

stuckthe stuck-work limits in minutes: job, save, wait, again, servers, investigators
stale_minutesa 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 /