Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: auto refresh main screen #88

Closed
eduvv opened this issue Feb 6, 2019 · 4 comments
Closed

Feature Request: auto refresh main screen #88

eduvv opened this issue Feb 6, 2019 · 4 comments
Assignees
Labels

Comments

@eduvv
Copy link

eduvv commented Feb 6, 2019

I leave my terminal open 24/7, instead of hitting the F5 key every time, can we have an autorefresh for the main screen, so I can see how long my containers are running or if they are disappearing randomly. Just like monitor-mode auto refreshes

@moncho
Copy link
Owner

moncho commented Feb 19, 2019

dry does some effort to keep information up-to-date by listening to events reported by the Docker daemon and updating information whenever it interprets that something that happened might change the state, e.g. container creation, container deletion.

If you are observing that, for example, in the container list a container is being shown while docker ps does not show the same container, then it might be that the refresh logic is not working properly and it should be reviewed.

@moncho moncho self-assigned this Feb 19, 2019
@eduvv
Copy link
Author

eduvv commented Feb 27, 2019

I checked again and when a container is stopped or killed the main list in dry doesn't update unless some action is done like sorting or if you scroll through the list.
My request was indeed to have an auto update of the time-alive (so without waiting for events and instead force refreshing every x seconds) but it seems that the refresh logic isn't working as expected.

@moncho
Copy link
Owner

moncho commented Feb 28, 2019

Thanks for the update!

A bug it is then.

@moncho moncho added the bug label Feb 28, 2019
moncho added a commit that referenced this issue Mar 3, 2019
When the widget registry is created, certain widgets will listen to
events emitted by Docker. On message, these widgets will refresh their
information and refresh the screen.

The widget for containers will also ask the Docker daemon to refresh
container information.

Solves #88
@moncho
Copy link
Owner

moncho commented Mar 3, 2019

Better support to refresh on container change has been added in v0.9-beta.9.

Autorefreshing is not yet supported, but a new specific issue for it will be created.

@moncho moncho closed this as completed Mar 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants