mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-28 11:49:39 -05:00
log only polls when container is running
This commit is contained in:
@@ -74,7 +74,7 @@ const Log: Component<{
|
||||
);
|
||||
clearInterval(interval);
|
||||
interval = setInterval(() => {
|
||||
if (poll()) {
|
||||
if (poll() && deployment()?.state === DockerContainerState.Running) {
|
||||
p.reload();
|
||||
}
|
||||
}, POLLING_RATE);
|
||||
|
||||
Reference in New Issue
Block a user