A batch of test images for some new LoRAs was rerun after a server outage, and this time the servers were up. Most images came back. Some did not: 9 of 40 in one tool, 2 of 60 in another. They were all marked unreachable, the same label the previous run had used when a server was genuinely missing. The error text underneath was different: “dropped while polling — TimeoutError.”

One slow reply, counted as a dead server

The images are made on a Windows GPU machine. A small service there accepts a job, submits it to an image server, and then polls the server’s history endpoint until the result appears. Reading that service’s code showed the rule: if a single history request got no response within ten seconds, the job ended immediately as unreachable. There was no second attempt.

The server was not down; the same run produced most of its images. Something made the history endpoint slow to answer for a moment, and ten seconds of silence, once, was enough to throw away a job that may well have been about to finish. Why the endpoint stalled was not established. What was clear is that a brief delay and a missing server were being reported as the same thing.

In the meantime, the gaps in the first tool were refilled with a fill option that regenerates only the missing slots, bringing it to 40 of 40. The second tool stayed at 58 of 60. The service itself belongs to a different project, so it was left alone until the owner decided.

A wider window, and counting by cause

The decision the next day was simply: make it longer than ten seconds. The timeout was raised to thirty in the service’s configuration, with a backup of the old file. The service was restarted only after its queue was confirmed empty, and its health endpoint answered normally afterward. The code was not touched, so there is still no retry; the change only gives a slow reply more room. The same value is also used for job submission and for the health check, which means a server that really is gone now takes thirty seconds to be declared gone.

That night an overnight run made a thousand images. One tool finished 500 of 500. The other finished 499 of 500. The single failure was looked at on its own rather than added to a total: it was not a polling timeout but the SSH connection between the main Mac and the Windows machine dropping. Polling drops across the thousand images: zero. One clean night is not proof that thirty seconds is always enough, but it moved the polling failures from about one in ten on the first tool to none.

A short timeout with no retry turns a passing delay into a permanent failure. And a failure count only helps if it is split by cause; under one label, a slow reply, a dead server and a dropped connection all look like the same problem.