Skip to content

Commands

Every dotime-queue command with its options and exit codes. dotime-queue help prints a short usage text; dotime-queue alone prints the same as status.

On this page

run

Usage
dotime-queue run --label "<project>: <task>" [options] -- <command> [args]

Waits for a slot, runs the command and exits with the command's exit code. Stopping a job stops every process it started, because the job runs in a new session with a process group of its own. The job therefore has no controlling terminal: a program that opens /dev/tty, for example to ask for a password, cannot.

Options of run
OptionEffect
--label "<project>: <task>"Names the job. The text before the colon is its project. Default: unnamed.
--max-wait <min>Leave the line after this many minutes, exit 75. 0: no limit. Default: maxWaitMin (60).
--max-run <min>Run limit for this job. Needed for a new command that runs longer than its kind's learned limit.
--kind <name>Job kind, in place of the guessed one. See projects and kinds.
--after-fix "<note>"Runs a check that would be refused with exit 3. The note is stored in the journal.
--priorityJoins the line at the front. Slots and the gate still apply. For a person's urgent run.
--no-skipRuns a test or lint job that already passed on this commit, and every run nested in it.

An unknown option, an option without a value or given twice, or any other word in front of the -- is refused with exit 2, and the job does not run. When a value itself starts with --, join it with =: --label=--priority.

Signals

While the job waits, Ctrl-C or TERM takes it out of the line and run exits 130. While it runs, INT, TERM and HUP are passed on to the whole job, and the run is journalled as stopped: neither a pass nor a failure. If the run process itself dies, the job notices within about 2 seconds and stops.

Checks that already passed

A test or lint job is skipped, with exit 0, only when all of these hold: the folder is a clean git checkout; the journal holds a pass on this commit in this folder with the same label and command, begun with a clean tree; the code fingerprint matches; and no run of the same check failed on this commit since. A job whose label or command also names a build or a deploy is never skipped unless --kind test or --kind lint is given.

Things outside git are not part of the check: installed packages, tools, the environment and a live target. End-to-end tests against a deployed site are skipped on the same commit even after a redeploy, so give them --no-skip or --kind other.

Projects and kinds

The project is the label text before the colon, at most 40 characters. Without one, it is the name of the git repository (a linked worktree counts as its main repository), and outside git the folder's name.

The kind groups similar jobs for the run limit. It is read from the label's task part and, only when that matches nothing, from the command: the first match in this list, from the top.

Job kinds
KindWords
debugdebug, repro, bisect, probe, or a question mark in the task part (stopped after 15 minutes)
deploydeploy, release, publish
testtest, tests, check, suite, spec, e2e, vitest, jest, playwright, node --test
buildbuild, bundle, compile
lintlint, typecheck, tsc, format
otheranything else

status

Usage
dotime-queue status

Prints the taken slots, each running job with its limit and time left, the waiting jobs in start order, and the gate. gate: open means a job may start now; gate: shut; is followed by what holds new jobs back. Nested runs show indented under their job. status only reads the state folder and never changes it.

passed

Usage
dotime-queue passed [--match <text>] [--cwd <dir>]

Answers "did this check already pass on exactly this code?". It works only on a clean, committed tree. When the newest matching run on this commit exited 0, it prints a stamp: line and exits 0; otherwise a no stamp: line that says why, and exits 1. --match keeps runs whose label or command contains the text; --cwd asks about another folder.

run already checks for a pass by itself, so agents do not need to call passed first. It is still useful for a build, which is never skipped.

history

Usage
dotime-queue history [--days <n> | --day <YYYY-MM-DD>]

One row for all projects and one per project: outcome counts (with skipped N (saved M min) and flaky N On main, next release), waiting time and the gates that caused it. sum is all waiting added up, clock how long the line was not empty, and clock with no job running how long jobs waited while none ran. --days defaults to 7; days are counted in DOTIME_TZ, UTC by default.

flaky On main, next release

Usage
dotime-queue flaky [--days <n>]

Lists the checks that both passed and failed on the same clean commit in the last 14 days, newest first, and exits 0. With none it prints flaky: none in 14 days. On main, next release

shop-api: unit tests; mixed on 3 commits, 5 passes and 3 failures, last 2 h ago; command npm test

setup

Usage
dotime-queue setup [--write] [--cwd <dir>] [--mcp]

Puts the queue instruction into a project's AGENTS.md, CLAUDE.md and .claude/CLAUDE.md, between <!-- dotime-queue setup: begin; ... --> and <!-- dotime-queue setup: end -->. When none exists, AGENTS.md is created. Without --write it is a dry run that changes nothing.

  • Only the lines between the markers are ever replaced; every other byte stays as it was, and CRLF files keep CRLF.
  • A lone CLAUDE.local.md gets the block too, because Claude Code reads it instead of AGENTS.md. A file that imports @AGENTS.md is skipped: Claude Code reads the block through the import.
  • It writes only inside the project folder; a link to a file outside it is refused. When a file cannot be written, it names it, writes nothing and exits 1.
  • --mcp also prints the MCP settings; it writes no MCP settings file.

reaper (optional)

Usage
node "$(npm root -g)/deployontime/queue/reaper.mjs"          # one run; schedule it to run every few minutesnode "$(npm root -g)/deployontime/queue/reaper.mjs" --dry    # print what a run would do, change nothing

When scheduled, it can stop idle dev servers anywhere on this computer, also ones started outside the queue. It stops a server only when its command matches reaper.serverPattern (vite, vitest, next dev, wrangler dev, webpack serve, webpack-dev-server, nodemon), its group is older than 30 minutes and used less than 10 CPU seconds, the group holds nothing else, and nothing in it matches reaper.keepPattern. Each run also reports idle slots, large test runs outside the queue, overload and low disk.

Schedule it with cron or a systemd user timer every 5 minutes; the manual (opens in a new tab) has both recipes. The path of the package is $(npm root -g)/deployontime.

Scheduled-job report (optional, macOS)

Usage
node "$(npm root -g)/deployontime/queue/schedule-check.mjs" [--dry] [--json]

A health report on your own launchd jobs in ~/Library/LaunchAgents: loaded, last exit code accepted, scripts present, log as recent as the schedule implies. It changes no job. Optional rules live in $DOTIME_HOME/schedule-check.json. On Linux it says it works on macOS only and exits 1.

Message format

Every message has one shape: clauses separated by ; , each a topic, a colon and facts separated by commas. Durations read 12 min, percentages 20%, sizes 40 GB, clock times on a 24-hour clock with the zone name.

dotime-queue: in line: position 2, 3 min waited, wait limit 60 min; no free slot: 2 of 2 taken, by "shop-api: e2e" and "docs-site: build"dotime-queue: gave up: exit 75, position 1, 60 min waited; memory too low: 9% free, 20% needed; hint: --max-wait 0 waits without limit

Written from the public repository's main branch and its queue manual.