PrefectHQ / legacy-ui

The home of the Prefect 1 UI
https://cloud.prefect.io
Other
179 stars 42 forks source link

BUG: UI stops responding after long periods of inactivity #1290

Open zyzil opened 2 years ago

zyzil commented 2 years ago

Bug Description If the Prefect UI is left open for long periods of time, it seems to get into a state where it hangs and consumes an excessive amount of CPU.

I've been experiencing this problem since at least 11/10/2021.

Steps To Reproduce

  1. Login to Prefect cloud where there are active flows being run on a scheduled basis.
  2. Navigate to the Overview page (I've seen it happen on multiple different pages, the last time this happened it was on Overview).
  3. Leave the tab open for a long period of time. I've seen this sometimes after a few hours; however, I most often notice it every morning when I login for the first time and check up on things.
  4. Come back after the long period of time and try to interact with the page.

Browsers Tested:


Notes

Firefox reports that "This page is slowing down Firefox. To speed up your browser, stop this page."

Screen Shot 2022-06-08 at 8 56 38 AM

Screen Shot 2022-05-25 at 8 34 47 AM

Firefox high CPU usage: Screen Shot 2022-06-08 at 9 02 03 AM

Chrome reports "Page Unresponsive"

Screen Shot 2022-06-08 at 9 13 31 AM

Screen Shot 2022-02-22 at 8 39 44 AM

Chrome high CPU usage: Screen Shot 2022-03-21 at 3 13 35 PM

Screen Shot 2022-06-08 at 9 13 03 AM