Skip to content

Commit ff54ae3

Browse files
fix: update devcontainer data every 10s (#17619)
Fix coder/internal#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.
1 parent fe4c412 commit ff54ae3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

site/src/modules/resources/AgentRow.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ export const AgentRow: FC<AgentRowProps> = ({
158158
]),
159159
enabled: agent.status === "connected",
160160
select: (res) => res.containers.filter((c) => c.status === "running"),
161+
// TODO: Implement a websocket connection to get updates on containers
162+
// without having to poll.
163+
refetchInterval: 10_000,
161164
});
162165

163166
return (

0 commit comments

Comments
 (0)