fix: update devcontainer data every 10s (#17619)

Fix https://github.com/coder/internal/issues/594

**Notice:**
This is a temporary solution to get the devcontainers feature released.
Maybe a better solution, to avoid pulling the API every 10 seconds, is
to implement a websocket connection to get updates on containers.
This commit is contained in:
Bruno Quaresma
2025-04-30 11:17:41 -03:00
committed by GitHub
parent fe4c4122c9
commit ff54ae3f66
+3
View File
@@ -158,6 +158,9 @@ export const AgentRow: FC<AgentRowProps> = ({
]),
enabled: agent.status === "connected",
select: (res) => res.containers.filter((c) => c.status === "running"),
// TODO: Implement a websocket connection to get updates on containers
// without having to poll.
refetchInterval: 10_000,
});
return (