-
-
Notifications
You must be signed in to change notification settings - Fork 27
Description
I tested 1.5.3 with a logging enabled and a long running job. Two different scenarios:
-
Very long job, created a log file: 13,416 KB in size with 98,860 lines.
I submitted the job and the Live Job Execution screen showed. I let if display for about 1800 lines and then clicked the x to close the window, the cronmaster UI showed as normal. after some time, it became unresponsive (locked up). I restarted the docker container, went back into Cronmaster and i could view items but not edit any scripts, and eventually the UI (view only) locked up. this repeated until the job finished creating the log. even when the job was finished the UI was still locked up. final restart of docker and all was good. -
Long job, created a log file: 6,178KB in size with 48,405 lines
I submitted a second job that was long but not like the first. I also left the Live view on screen the entirety of the job run. it scrolled through the new log entries as it should and eventually a warning came on the top of the screen, Warning large log file, showing last 5000 lines (or something like that. i moved the window and the warning disappeared), but the log kept displaying new log entries as the job ran. somewhere around 25,000 log entries the UI seemed to lock up but, after a long pause started showing new log entries. the pause was longer than expected because it was 'temporarily locked up' on a small png file. the live view didn't catch up with the actual log however and displayed behavior of locking up periodically. eventually the browser gave a blank screen with the following error. Application error: a client-side exception has occurred. the job eventually finished, i restarted the docker container and cronmaster UI acted normal.
My general thoughts on this: having the ability to enable and view historical logs (even when the job is running) is the most important and valuable part of this change. if solving the Live-view feature is too difficult then maybe you just modify it but still enable going to view logs and seeing the log contents of the active job. The live is most important on new jobs to get a sense if they are starting up in a good fashion. Maybe the following would be a good workaround if possible: add a new check box - 'display live view', still have the 'Enable Logging' check box. then with the live view only display the first 100 or 200 lines and then 'disconnect' the actual log being generated from the live view while still showing the live view so we can review the startup entries for any issues. and then finally click the 'x' to close the live view. of course the perfect world feature would be able to periodically open up the log for the active job and have a 'live-view' effect of new entries showing, but i think you can add this part at the end of your long list of to-do's for this great program since this would just be the final icing on the cake. (sorry for the long entry but i want to give you as much as i found to help if i can)