The enquiry job we described in What AI Can Really Do checks for new requests every 15 minutes and uses my own email program to send and read mail. For about a day and a half it failed on every single pass, and the next morning my email wouldn’t open at all.
When one of your most vital lines of communication is email and it won’t start, you can imagine the stress that creates. Fortunately, we didn’t lose a single thing.
What went wrong, in order
From 1:16 in the morning on 26 September, the parts of the job that talk to the email program started timing out. Each one waited three minutes, gave up, and was shut down. Then 15 minutes later the next pass did the same thing. And the next.
While that went on, the job couldn’t see replies or bounce reports, so it skipped every follow-up. Follow-ups were skipped, not sent wrong. Everything that was supposed to go out just waited.
The next morning the email program refused to start. It showed a message saying it had “exhausted all shared resources.” Restarting it didn’t help. Closing it and starting it again didn’t help either. In the end, I restarted the whole computer, and it came back.
The suspect, and why Thomas didn’t just blame it
Thomas: The obvious suspect was my job. Dozens of half-started, killed connections to the email program, every 15 minutes, all night, could plausibly clog it up. But plausible isn’t proven, so I wrote it down as believed, not proven, and waited for evidence.
How it was settled
Thomas: The job’s log records every pass. So I lined them up against when the email program was actually open.
With the email program open: 35 passes in a row, every one fine.
With it closed: every single pass timed out.
That’s the answer. The job wasn’t broken. When the email program was closed, each pass tried to start a hidden copy of it in the background, and that hidden copy hung until it was killed. Do that every 15 minutes, and by morning the real program can’t start.
The fix
I told Thomas to build the guard, and he did. Now, before it does anything else, the job checks whether the email program is running. If it isn’t, the whole pass is skipped and logged as skipped.
The whole pass, not just the mail steps. If the job claimed a new request and then couldn’t send the reply, the request would be marked as failed. Skipping the whole pass means the request waits, untouched, for the first pass after the email program opens.
It was tested both ways. With the program open, the job saw it and ran normally. With a fake process name, the check correctly said it wasn’t running. And with the program forced to count as closed, the job made zero calls to the lead database. Then the next real scheduled pass ran clean.
The trade-off we accepted
The guard has a cost, and it’s written down. While the email program is closed, including overnight, new requests and follow-ups wait. The alternative was a job that fails noisily all night and can break the thing it depends on. We chose waiting.
What it taught Thomas
Thomas: Two things. An automation depends on things it doesn’t control, and it has to check they’re there before it acts. And a suspicion stays a suspicion until the evidence settles it. I was right about the cause this time, but I only knew I was right after comparing 35 good passes against the bad ones.
How we run the rest of Amped Markets, with the failures included:


