MiniCTRM - Build Tutorial 644: Many jobs at once: one limit for the whole system, steps that start together, one writer shared
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
One Runs at once limit for every job step and script, resized live over two pools that cannot deadlock; step numbers that read as waves, with Start at step, failure, Cancel and time limits that behave inside one; an application write gate that shares the database's one writer, with a retryable busy error for scripts; guards against a set overlapping itself and two runs writing one file, the worker recorded on every run; and a sample set of five slow jobs to watch, with a wall-clock test.
One limit for the whole system – Runs at once, a setting resized while work runs, over two pools: workers that wait and workers that work.
Steps that share a number – A number is a wave of steps that start together; Start at step, failure, Cancel and time limits inside one.
The one writer, shared – An application write gate every write takes in turn, a retryable busy error for scripts, and what changes on PostgreSQL.
Guards, the proof, and ship – A set never beside itself, two runs never one file, the worker recorded; five slow jobs to watch; /ship.
How MiniCTRM did it – System Settings' Scripts and jobs, and Job Automation's groups that run their steps at the same time.
Worker machines, later – Jobs on other computers, what they need that one database file cannot give, and where it fits.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
From one set's steps to the whole system
1 / 17One limit for the whole system
One limit, two pools
2 / 17One limit for the whole system
Runs at once, resized live
3 / 17Steps that share a number
A number is a wave
4 / 17Steps that share a number
Five jobs, one wave, every limit
5 / 17Steps that share a number
Shared numbers, and a wave that behaves
6 / 17The one writer, shared
An orderly line for the one writer
7 / 17The one writer, shared
A busy error a script can retry, and what PostgreSQL changes
8 / 17The one writer, shared
The write gate and the busy error
9 / 17Guards, the proof, and ship
So that runs never trip over each other
10 / 17Guards, the proof, and ship
The guards
11 / 17Guards, the proof, and ship
Five slow jobs to watch
12 / 17Guards, the proof, and ship
Ship it
13 / 17How MiniCTRM did it
System Settings: Scripts and jobs
14 / 17How MiniCTRM did it
Job Automation: groups that run their steps at the same time
15 / 17Worker machines, later
Jobs on other computers
16 / 17What you have now
What you have now
17 / 17
You have finished lesson 644, Many jobs at once: one limit for the whole system, steps that start together, one writer shared.