Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-230

Long running groovy scripts update the ui strangely

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 3.0.5
    • 3.0.1
    • None
    • None

      There is a strange UI bug when running a long groovy script in the groovy app.

      Any logs produced get repeated every second or so. For example, for the following script: 

      print "1"
      Thread.sleep(2000)
      print "2"
      Thread.sleep(2000)
      print "3"
      Thread.sleep(2000)
      print "4"
      Thread.sleep(2000)
      print "5"
      Thread.sleep(4000)
      print " End" 

      The output message looks like:

      Running script, please wait...
      1
      12
      12
      123
      123
      1234
      1234
      12345
      12345 

      and once the script has ended, all the outputs above are removed and then the correct "12345 End" is shown.

      Tho this is just a simple example for succeeding on reproducing this issue when running more complex scripts that prints out node paths that are being modified in some way it's difficult to gauge the progress of these scripts.

        Acceptance criteria

              dai.ha Dai Ha
              ccantalapiedra Carlos Cantalapiedra
              DeveloperX
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 3.5h
                    3.5h