max-pool-governor: wrapped jobs skip while a usage limit holds
Records a usage limit notice in one flag file so a wrapped job skips until the reset time, or for a window of hours when the notice states none. For unattended agent jobs on a subscription plan.
About it
Unattended jobs keep launching on an exhausted plan. max-pool-governor is one standard-library Python file with a sample script, a sample limit notice and tests. A wrapped job skips until the notice's reset time, or for the default window of 24 hours when the notice states none. The sample script needs no account: it uses a temporary state directory, raises the flag and shows the next job skipped. Limits: It sets no order among jobs, and a job is guarded only when its own wrapper checks the flag before it runs. It needs Python 3.9 or later because it imports zoneinfo, and it does not run on Windows. It reads only the notice it is shown, and only two shapes of reset time. Any other notice falls back to the window, 24 hours by default. A zone name that does not load makes that notice one with no readable time, and the program does not fall back to local time. Door 47 of 100 Doors.