A late-evening check on a shared GPU machine found it busy: something was sending it work about every 26 seconds. The observer that watches that machine told a different story. As far as it knew, the image generator it tracked had made 0 images in that stretch. Both were true. The observer recognized exactly five callers, and whoever was using the machine was not one of them.
It turned out to be an overnight run of a second image pipeline, started at 22:01 and detached from any terminal. Nothing was wrong with it. It just had no entry in the observer’s list of known callers, so its work was not counted as anyone’s.
The premise that turned out wrong
The obvious fix was to make every caller announce itself. Another session looking at the same problem had reported that the GPU service’s logs did not record who placed an order, which would have meant changing the service on the remote machine first. Before doing that, I read its code. It did record it. Every order takes a source field (set to “unknown” if the caller leaves it out) and is saved as its own small JSON file, with the time it was received, its total elapsed seconds and its status. There were 33,256 of those files. The largest source accounted for 22,429. The overnight pipeline the observer could not see accounted for 5,860.
So nothing on the remote side needed to change. The ledger already named every caller; nobody on our side had been reading it.
Reading instead of registering
The new reader sends a short script over SSH, keeps only the order files from the last N minutes by modification time, and adds the one image currently in progress from the service’s health endpoint. A read takes 0.6 seconds. The line counts as free when nothing is running or waiting and the last order is more than two minutes old. Each of the five known callers now carries the source value it actually writes, so a caller is identified by line and source together. The observer reads the line every minute, and a source it does not recognize, with two or more orders in the window, opens a notice instead of vanishing. Fifteen new tests cover the reader.
The first real read, over 900 minutes, gave the overnight pipeline 948 images, 23,926 seconds and 44% of the window, and a second caller 10 images and 287 seconds. The last order had come in at 04:46.
Some things were not settled. The overnight pipeline’s own wait-before-starting check looked only at the queue at a single moment. Later that day it was changed to also ask the ledger whether anyone else had placed an order in the last three minutes; with someone submitting every 26 seconds, it is meant to wait and then step back rather than cut in. When that was added the line was empty, so that behavior has not yet been seen against a busy line. A second, on-demand GPU line has a reader but is not yet attached to the observer.
Before building a way for callers to announce themselves, check whether the receiving side is already writing it down.