-
Notifications
You must be signed in to change notification settings - Fork 580
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
Bug: Admin - New Installs, Scheduled Jobs Will Not Load Default Installed Jobs On First Visit Flashing A Notification To Restart Stuck In A Loop (5.1.0) #3838
Comments
Hi @thabaum , is there a clean reproduce steps or any screencast to help to understand the issue? thx |
@zyhfish hello, here are some steps to reproduce.
Thanks for asking hopefully someone can reproduce. It is odd and only so far known to happen on a fresh installation first visit to Scheduled Jobs administration page. After that there are no issues as these get installed and the app is restarted. The page I am visiting is the Admin Jobs page component. This does in fact still present an issue. Again once you restart the server (visual studio) this is no longer an issue and 2 jobs are shown in the list. If you want to ask how I was able to get those screenshots, I wonder that myself as they blink fast. This error shows up but you cannot click on any links other than navigation menu links, control panel cog icon loses interactivity until you restart as well. Restart and all is working as expected and 2 jobs appear. When you close the browser, normally it stops visual studio but this time it wont, it continues to do some task in background so you have to actually hit the stop in visual studio and then run it again in debug mode. Very strange behavior. If you close Visual Studio it is like it wants to keep running in the background. Almost like you have to short circuit it to get it to stop at times. Error In Logs
This are a few logs from System Info > Log tab, Event Log and another relating. You can notice some activity in Visual Studio as well once this page has been visited that continues until you shut down visual studio itself I believe. Hope this helps! Thank you. |
Hi @thabaum , thx so much for the information. I tried to analyze the issue and found several issues need to be fixed here:
We need to find out the root cause of this infinite loop issue and make a real fix there. I will continue to check and see whether can provide a complete fix here. |
@zyhfish I have also verified that deleting the default jobs if they are already exist, revisit the page (F5 or hit refresh in browser), will trigger this issue. Restart the app and the jobs re-appear in the Scheduled Jobs. This leads me to two issues existing, one with the which could be caused by recent core changes in our code base
|
fix #3838 - Schedule Jobs looping after new install
Issue
Description
Scheduled Jobs component in the Control Panel > Admin Dashboard has a notification that flashes repeatedly by clearing itself and then appearing again in a loop and does not stop until navigating to a new page and also the page needs to be refreshed as it will be keeping the output logs in VS busy until you do. This will make the Control Panel > Admin Dashboard UI button control inactive as well.
https://github.com/oqtane/oqtane.framework/blob/dev/Oqtane.Client/Modules/Admin/Jobs/Index.razor
Screenshots
Additional Context
I have also noticed the double flashes (2 page UI reloads/refreshes) within the pages for static SSR and wonder if some caching or something needs to come into play to smooth that out to feel like it is one page load?
I just happen to be clicking through all of the admin pages today to discover this issue as I looked to see if any admin pages didn't double flash in Visual Studio IIS Express. Currently this is the only page with this odd of a behavior with this notification loop.
More info...
After investigating more it went away, so I almost closed the issue. But then I noticed how there where 2 scheduled jobs, and 0 showing before.
So after you stop the site in visual studio, or restart the app (only stable way is with stopping VS) then starting it again the problem goes away.
This was seen in all render modes. It is a fresh install issue only on first visit, then restart and it goes away displaying the two jobs shown below.
Out of all pages tested located in the admin control panel dashboard parent pages it felt like admin/system/Index.razor or "System Info" loaded the quickest without any double flashing going on, just the form and UI is loaded, then data in the form comes later as you would expect. Site Settings will load the entire UI twice compared to System Info, or at least it feels this way.
The text was updated successfully, but these errors were encountered: