config.json
{ "slots": 3, "health": { "minFreeDiskGB": 25 }, "idle": { "serverIdleMin": 45 } }No environment variable changes a setting. A caller can ask for more for one job only, through --max-run, --priority and --after-fix. DOTIME_HOME picks a whole other state folder, with its own settings, slots and journal.
A value that does not fit is replaced by its default, with one warning: the wrong type, a negative number, a number the table rules out, a time in milliseconds above 2147483647, or a pattern that does not compile. An unknown name is skipped with a warning. A file that is not valid JSON or cannot be read is ignored with one warning; only a missing file is silent.
Queue keys
| Key | Default | Meaning |
|---|---|---|
| slots | 2 | Jobs that may run at once. At least 1; a fraction is rounded down. |
| nestedPerJob | 2 | Nested runs one job may run at once; a further one waits for a place under that job. |
| mcpMaxJobs | 20 | Jobs started by dotime-mcp that may wait or run at once; queue_run refuses a further one. |
| flakyWindowDays | 14 | How many days back the flaky flag and dotime-queue flaky read the journal. On main, next release |
| notifyDoneMin | 5 | A job that ran at least this many minutes sends a done notice. 0 sends one for every job that ran. On main, next release |
| maxWaitMin | 60 | Default for --max-wait. 0: no limit. |
| pollMs | 3000 | How often a waiting job looks at the line and reads the health. |
| outputDirs | see below | Folder names whose untracked files are left out when failed runs are compared. |
Default outputDirs: node_modules, dist, build, out, coverage, .cache, .next, .turbo, .wrangler, .vercel, test-results, playwright-report.
Health gate keys
| Key | Default | Meaning |
|---|---|---|
| health.loadPerCore | 1.0 | Gate shuts above this 1-minute load per core, while the CPU is busy now. |
| health.busyCpuPct | 90 | A high load shuts the gate only while this percent of CPU time, or more, is in use now. |
| health.minFreeMemPct | 20 | Gate shuts below this free memory, in percent. |
| health.minFreeDiskGB | 10 | Gate shuts below this free disk space. |
| health.minBatteryPct | 15 | Gate shuts at or below this charge while running on battery. |
On macOS free memory is the percentage memory_pressure reports; on Linux MemAvailable as a share of MemTotal. A value that cannot be read never holds a job.
Limit keys
| Key | Default | Meaning |
|---|---|---|
| limits.defaultMin | 30 | Run limit with fewer than limits.minSamples passed runs. |
| limits.debugMin | 15 | Run limit of a debug job. |
| limits.floorMin | 10 | Lowest measured run limit. |
| limits.p90Factor | 1.5 | Run limit as a multiple of the 90th percentile. |
| limits.longRunFactor | 2 | Long-run notice mark as a multiple of the 75th percentile. |
| limits.longRunUnmeasuredMin | 20 | Long-run mark with fewer than limits.minSamples passed runs. |
| limits.minSamples | 5 | Passed runs needed before history sets a limit. |
| limits.windowDays | 14 | How far back history is read. |
| limits.failWindowHours | 6 | How long two failures stay “in a row”. |
| limits.priorityGrace | 2 | A --priority job is stopped at this multiple of its limit. |
| limits.killGraceMs | 10000 | Time between TERM and KILL. |
| limits.orphanCheckMs | 2000 | How often a job checks that its queue process is alive. |
Reaper keys
| Key | Default | Meaning |
|---|---|---|
| idle.serverIdleMin | 30 | Idle window for dev servers. |
| idle.serverCpuS | 10 | CPU seconds below which a dev server is idle. |
| idle.slotIdleMin | 10 | Idle window for a job in a slot. |
| idle.slotCpuS | 5 | CPU seconds below which a job in a slot is idle. |
| reaper.overloadPerCore | 2.0 | Overload above this load per core. |
| reaper.overloadSwapPct | 80 | Overload above this swap use. |
| reaper.overloadMemPct | 10 | Overload below this free memory. |
| reaper.overloadDiskGB | 5 | Overload below this free disk space. |
| reaper.lowDiskGB | 20 | Early low-disk notice below this. |
| reaper.serverPattern | see below | Regular expression for dev-server commands. |
| reaper.keepPattern | /Applications/|LaunchAgents | Commands the reaper never stops. |
Default reaper.serverPattern: vite (but not vite build), vitest, next dev, wrangler dev, webpack serve, webpack-dev-server and nodemon. A one-shot test run such as vitest run is never taken for a dev server.
To protect your own server, add part of its command line:
{ "reaper": { "keepPattern": "/Applications/|LaunchAgents|docs-site" } }Environment variables
| Variable | Default | Meaning |
|---|---|---|
| DOTIME_HOME | ~/.dotime | The state folder. Callers share a queue only when they use the same folder. |
| DOTIME_TZ | UTC | Time zone (an IANA zone name) for printed times and calendar days. |
| DOTIME_NOTIFY | not set | log: notices go to the log file only. |
| DOTIME_NOTIFY_CMD | not set | Shell command that receives each notice, with DOTIME_TITLE and DOTIME_MESSAGE in its environment. |
| DOTIME_JOB | set by run | Names the slot of the outermost job, also inside nested runs. Not a setting. |
| DOTIME_PARENT | set by run | Names a job's direct parent. Not a setting. |
| DOTIME_NO_SKIP | set by run | 1 in a job started with --no-skip or one that could not be skipped; its nested runs are then never skipped. |
export DOTIME_NOTIFY_CMD='printf "%s: %s\n" "$DOTIME_TITLE" "$DOTIME_MESSAGE" >> "$HOME/queue-notices.txt"'Files in the state folder
| File | Content |
|---|---|
| config.json | Settings. Optional. |
| slots/, line/ | One small file per running and per waiting job. |
| nested/, places/ | One file per nested run and per place it holds under its parent job. |
| journal.jsonl | One line per job: label, project, folder, times, wait and run minutes, outcome, exit, commit, kind, limit and the code hash. |
| notices/, notify.log | Long-run and idle-slot notices, one file each, and every notice sent. |
| health.json | The last health reading of a waiting job, shared for up to pollMs and never past 5 seconds. |
| reaper-state.json | CPU samples between reaper runs. |
| schedule-check.json, .jsonl | Rules and results of the scheduled-job report. |
| mcp-jobs/ | The jobs dotime-mcp started: request, pids, exit and output. Removed after 7 days, or beyond 200 finished jobs. |
- A state folder may only be used by processes on one computer that see the same process list. A container, a virtual machine or a second computer must not point at the same folder.