kraken-hpc / kraken-dashboard

A React.js based dashboard for kraken (https://github.com/hpc/kraken)
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Have kraken-dashboard poll for a resumed kraken #28

Open jlowellwofford opened 3 years ago

jlowellwofford commented 3 years ago

Currently, to get the dashboard to re-connect to a kraken that has gone away and come back, a forced refresh is required (at least in the electron app).

It would be nice to have a polling loop that will auto-reconnect.

kpelzel commented 3 years ago

When the dashboard disconnects, it goes into "reconnect" mode which means it polls until it gets a response from kraken. On mac this is working as expected even in electron. Open the dev tools and take a peek at the console. When it disconnects you should see the poll requests start to fail there.

jlowellwofford commented 3 years ago

I'll take a look. Where I know I've seen this most consistently is if I have the electron app running before I start the vbox demo. I have to specifically tell it to refresh before it "sees" the newly started kraken.

kpelzel commented 3 years ago

Ahhh yep okay I got that to happen. Looks like it hangs in the 'refetch' phase. I'll look into it.