Skip to content

Poll instance state #2095

Closed
Closed

Description

@david-crespo

Very apt and evocative description of the problem from @iliana:

something about the flow of starting an existing instance, waiting for it to go from starting -> running so that i can successfully look at the serial console, or waiting for it to go from stopping -> stopped so i can start it again or delete it is kind of frustrating; i find myself repeatedly refreshing the page at the browser level because i don't see a button to refresh the data in the console, and also because there seems to be a lag time between when an instance is actually stopped, and when the console knows.

I have experienced this myself. I think the fix here is simply to poll, and make very clear when we are polling. If we are not clear enough, then users will expect every page to be polling live or at least be unsure whether to expect it.

A maybe less nerve-wracking fix would be to sprinkle more refresh buttons around, like we have on the instance list. We could also stand to have a better UI treatment when you click refresh, because when I click it and nothing changes, I feel like maybe nothing happened. In places we have space, we could add a little message next to the button saying when it was last refreshed, or maybe we could do that in a tooltip, which would not have any space requirements.

image

Activity

  1. changed the title [-]Poll instance state[/-] [+]Poll instance state or make it easier to refresh[/+] on Mar 22, 2024
  2. iliana commented on Mar 22, 2024

    @iliana
    Contributor

    Also if we want to be clever here (I don't know if it is necessarily a good idea to be clever), we could use the Page Visibility API to quiesce polling if the tab is not visible (e.g. not the active tab).

  3. david-crespo commented on Mar 22, 2024

    @david-crespo
    CollaboratorAuthor

    We may get this cleverness for free. The docs could be clearer here, but I think React Query uses that API automatically to pause refetches when the tab is in the background.

    https://tanstack.com/query/latest/docs/framework/react/reference/useQuery

    image
  4. added this to the 8 milestone on Mar 25, 2024
  5. changed the title [-]Poll instance state or make it easier to refresh[/-] [+]Poll instance state[/+] on Apr 22, 2024
  6. modified the milestones: 8, 9 on Apr 22, 2024
  7. david-crespo commented on Apr 22, 2024

    @david-crespo
    CollaboratorAuthor

    Added a refresh button in #2159. Changed the title here to reflect the more interesting solution, polling, and moved this issue to milestone 9 because we are still thinking about the details on that.

  8. removed this from the 9 milestone on Jun 17, 2024
  9. self-assigned this
    on Aug 16, 2024
  10. added this to the 10 milestone on Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions