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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Neutral
    • Resolution: Unresolved
    • Affects Version/s: 2.5.1
    • Fix Version/s: None
    • Component/s: console
    • Labels:
      None

      Description

      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)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: