Skip to content

Commit ffe3d84

Browse files
committed
Rollback containers intervals
1 parent cd050cc commit ffe3d84

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

site/src/modules/resources/AgentRow.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,7 @@ export const AgentRow: FC<AgentRowProps> = ({
155155
select: (res) => res.containers.filter((c) => c.status === "running"),
156156
// TODO: Implement a websocket connection to get updates on containers
157157
// without having to poll.
158-
refetchInterval: (data) => {
159-
if (!data) {
160-
return false;
161-
}
162-
163-
return data.length > 0 ? 10_000 : false;
164-
},
158+
refetchInterval: 10_000,
165159
});
166160

167161
return (

0 commit comments

Comments
 (0)