https://prefect.io logo
Title
a

Alex Shea

04/10/2023, 2:02 PM
Just a heads up, I have noticed that the UI is consistently inconsistent when navigating between views. Refreshing the page fixes the issues. Common issues I find: • bars do not load in the run graph • text doesn't stay in their containers • on click events for navigation become unresponsive Attached is a great example of the text container issue. This one did not get resolved with a page refresh. You can see that the log content container stretches almost to the end of the details container.
j

Jeff Hale

04/10/2023, 3:00 PM
Thanks Alex. Do you want to fill out a bug report issue on the UI in the prefecthq/prefect GitHub repo to track a fix?
c

Craig Harshbarger

04/10/2023, 4:01 PM
Assuming that a really long "word" is causing the logs to overflow the container this should address that https://github.com/PrefectHQ/prefect-ui-library/pull/1334
a

Alex Shea

04/12/2023, 5:17 PM
So I see the code was merged two days ago. The issue does still present itself. It is not a single word, but I am also not aware of the inter workings of how the prefect default logger handles the data. Here is more info for those tracking through here:
the log message is generated by this summarized code
logger = prefect.get_run_logger()
output = subprocess.popen(cmd, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
while output.poll() is None:
  line = output.stdout.readline().decode("utf-8", "ignore").strip()
  //code to set error_condition: bool
  if error_condition:
     logger.error(line)
  error:
     <http://logger.info|logger.info>(line)
(I will also open an issue in the github repo and link it back in this thread)
Github Issue has been created
šŸ™Œ 1
:thank-you: 2
c

Craig Harshbarger

04/12/2023, 10:31 PM
Thanks @Alex Shea ! I opened a second PR since I was still able to reproduce using the snippet you provided. Your issue will get closed when that is merged and then that fix will go out with the next release.
a

Alex Shea

04/12/2023, 10:32 PM
Thanks for the quick turnaround
Ill try to capture what is happening when the other two issues occur, but I have not been able to recreate the issue.
c

Craig Harshbarger

04/12/2023, 11:02 PM
The bars not rendering and nav click events not responding sounds like the page is frozen because of some loop is stuck or slow. Let us know if you find a way to reproduce šŸ‘
a

Alex Shea

04/13/2023, 10:13 PM
Here is a graph issue. This was a flow that was already running and I navigated to it from the deployment. After refreshing I was not able to replicate.
This one I have been able to repeat. Navigate to a flow after creating it, then when it goes from pending to running the it does not load the graph. The state is consistent between tabs of the flow run. Refreshing or navigating away from the flow run and back loads the graph.
šŸ‘€ 1