stop polling debug_replay/status after live_ready

This commit is contained in:
Josh Hawkins 2026-05-20 16:11:58 -05:00
parent cff4eacb74
commit 594ab117cf

View File

@ -121,7 +121,7 @@ export default function Replay() {
mutate: refreshStatus,
isLoading,
} = useSWR<DebugReplayStatus>("debug_replay/status", {
refreshInterval: 1000,
refreshInterval: (latestData) => (latestData?.live_ready ? 0 : 1000),
});
const { payload: replayJob } =
useJobStatus<DebugReplayJobResults>("debug_replay");