mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
A background AI run's deadline is armed in model time plus a fixed margin. Time spent waiting in the document reader's queue, and the read itself, came out of that margin, so a person's lab scan or document read could be timed out by the reaper because other work held the reader. When the reader grants the slot it now moves the run's deadline by the wait plus the most the read may take, and gives back the unused part when the read ends, never past the job's own expiry and only while the run is running. The interactive queue wait stays within the margin, which covers the run until the slot is granted.