Skip to content
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

Selection Script output is not displayed in the server log #3107

Open
MarioQuillas opened this issue Jan 26, 2018 · 1 comment
Open

Selection Script output is not displayed in the server log #3107

MarioQuillas opened this issue Jan 26, 2018 · 1 comment

Comments

@MarioQuillas
Copy link

When executing the following workflow on try.activeeon.com

<?xml version="1.0" encoding="UTF-8"?>
<job
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="urn:proactive:jobdescriptor:3.9"
     xsi:schemaLocation="urn:proactive:jobdescriptor:3.9 http://www.activeeon.com/public_content/schemas/proactive/jobdescriptor/3.9/schedulerjob.xsd"
    name="SelectionWorkflow" 
    priority="normal"
    onTaskError="continueJobExecution"
     maxNumberOfExecution="2"
>
  <taskFlow>
    <task name="Groovy_Task">
      <description>
        <![CDATA[ The simplest task, ran by a groovy engine. ]]>
      </description>
      <selection>
        <script
         type="dynamic" >
          <code language="groovy">
            <![CDATA[
hostname = InetAddress.getLocalHost().getHostName()
println "Executed on " + hostname
selected = ("try.activeeon.com" == hostname)
]]>
          </code>
        </script>
      </selection>
      <scriptExecutable>
        <script>
          <code language="groovy">
            <![CDATA[
println "uname -a".execute().text
]]>
          </code>
        </script>
      </scriptExecutable>
    </task>
  </taskFlow>
</job>
  1. the nodes inside the try machines should be selected
  2. the output of the selection script should appear in the server logs.

Neither 1) or 2) happens, the output of the script is lost, and the task remains pending forever

@tobwiens
Copy link
Contributor

Hello Mario,

thank you for opening the issue.

  1. This is correct. I could not re-produce your error. It works fine on try.activeeon.com
  2. This is correct, the same, it works fine on try.activeeon.com

In your case the server logs would look something like this:

[2018-01-26 22:16:46,687 5-thread-6 INFO        o.o.p.r.s.ScriptExecutor] pamr://4097/local__localhost__0_2 : -1317002113 result true
[2018-01-26 22:16:46,687 5-thread-6 INFO        o.o.p.r.s.ScriptExecutor] pamr://4097/local__localhost__0_2 : -1317002113 output
Executed on try.activeeon.com

I cannot see your jobs on try.activeeon.com did you remove them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants