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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy