scheduling
scheduling copied to clipboard
The task output of last execution attempt is lost for In-Error tasks
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.