MiniCTRMSearch

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.

Before you start

The lessons this one builds on: 611 Scripting: an editor, a public API with a glossary, hooks on save, 622 Running jobs in parallel: the end of day in ten minutes, not twenty.

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 / 17
From one set's steps to the whole system
One limit for the whole system

One limit, two pools

2 / 17
One limit, two pools
One limit for the whole system

Runs at once, resized live

3 / 17
Runs at once, resized live
Steps that share a number

A number is a wave

4 / 17
A number is a wave
Steps that share a number

Five jobs, one wave, every limit

5 / 17
Five jobs, one wave, every limit
Steps that share a number

Shared numbers, and a wave that behaves

6 / 17
Shared numbers, and a wave that behaves
The one writer, shared

An orderly line for the one writer

7 / 17
An orderly line for the one writer
The one writer, shared

A busy error a script can retry, and what PostgreSQL changes

8 / 17
A busy error a script can retry, and what PostgreSQL changes
The one writer, shared

The write gate and the busy error

9 / 17
The write gate and the busy error
Guards, the proof, and ship

So that runs never trip over each other

10 / 17
So that runs never trip over each other
Guards, the proof, and ship

The guards

11 / 17
The guards
Guards, the proof, and ship

Five slow jobs to watch

12 / 17
Five slow jobs to watch
Guards, the proof, and ship

Ship it

13 / 17
Ship it
How MiniCTRM did it

System Settings: Scripts and jobs

14 / 17
System Settings: Scripts and jobs
How MiniCTRM did it

Job Automation: groups that run their steps at the same time

15 / 17
Job Automation: groups that run their steps at the same time
Worker machines, later

Jobs on other computers

16 / 17
Jobs on other computers
What you have now

What you have now

17 / 17
What you have now

You have finished lesson 644, Many jobs at once: one limit for the whole system, steps that start together, one writer shared.

Where next?

← → move · N notes · Home / End