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

Polling on instance list #2391

Merged
merged 12 commits into from
Aug 23, 2024
Merged

Polling on instance list #2391

merged 12 commits into from
Aug 23, 2024

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Aug 20, 2024

Closes #2377

  • Smart logic
  • e2e test it
  • Figure out how to indicate when we're polling (don't. use "Updated" message)

Demo

When the page loads below, it polls every 3 seconds because there is an instance in a starting state. After 30 seconds, it would switch to polling every minute, but I don't wait for that in this clip. I stop the instance, which causes it to transition to stopping, and the stopped (because of the polling). At that point, there are no instances in transitional states, so polling slows to every minute (i.e., not at all in the short time in this clip). Then when I start the instance it polls again while it's in starting and then stops (slows) again after it's running.

2024-08-23-instance-list-polling.mp4

Copy link

vercel bot commented Aug 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Aug 23, 2024 4:43pm

Copy link
Contributor

@charliepark charliepark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Poll instance list
2 participants