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

Scripts run in console cannot use print/println unless they run for a long time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 2.5.1
    • console
    • None

      Printing to the console does not work in scripts when using the run command.

      What is interesting is that as soon the script runs long enough (migration) then it works. So it looks like a timing issue.

      Won't work

      println "test"
      

      Works

      println "test"
      sleep(3000)
      

      What happens when the execution is delayed (and writing to the console works) is that I get a Pulse Message (not ideal for scripts)

        Acceptance criteria

              Unassigned Unassigned
              pbaerfuss Philipp Bärfuss
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD