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

The task output of last execution attempt is lost for In-Error tasks #3258

Open
fviale opened this issue Jul 13, 2018 · 0 comments
Open

The task output of last execution attempt is lost for In-Error tasks #3258

fviale opened this issue Jul 13, 2018 · 0 comments

Comments

@fviale
Copy link
Member

fviale commented Jul 13, 2018

Steps to reproduce:

Execute the following workflow

<?xml version="1.0" encoding="UTF-8"?>
<job
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="urn:proactive:jobdescriptor:3.10"
     xsi:schemaLocation="urn:proactive:jobdescriptor:3.10 http://www.activeeon.com/public_content/schemas/proactive/jobdescriptor/3.10/schedulerjob.xsd"
    name="script_groovy" 
    priority="normal"
    onTaskError="continueJobExecution"
     maxNumberOfExecution="2"
>
  <description>
    <![CDATA[ A workflow that executes groovy in JVM. ]]>
  </description>
  <taskFlow>
    <task name="Groovy_Task"
    maxNumberOfExecution="3"
    
    onTaskError="suspendTask" >
      <description>
        <![CDATA[ The simplest task, ran by a groovy engine. ]]>
      </description>
      <selection>
        <script
         type="static" >
          <code language="groovy">
            <![CDATA[
selected = true
]]>
          </code>
        </script>
      </selection>
      <scriptExecutable>
        <script>
          <code language="groovy">
            <![CDATA[
println variables.get("test")
variables.put("test", "value")

throw new Exception("issue")
]]>
          </code>
        </script>
      </scriptExecutable>
    </task>
    <task name="Groovy_Task2">
      <description>
        <![CDATA[ The simplest task, ran by a groovy engine. ]]>
      </description>
      <depends>
        <task ref="Groovy_Task"/>
      </depends>
      <scriptExecutable>
        <script>
          <code language="groovy">
            <![CDATA[
println "uname -a".execute().text
]]>
          </code>
        </script>
      </scriptExecutable>
    </task>
  </taskFlow>
</job>

After all 3 attempts are executed, the task will be in In-Error state.

When trying to retrieve the output of this task, only two attempts will be displayed.

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

No branches or pull requests

1 participant