Unverified Commit f10118f8 authored by Fabien Viale's avatar Fabien Viale Committed by GitHub
Browse files

Merge pull request #3987 from fviale/master

Store in-error time when a task is terminated
parents c98a381a f09f566b
......@@ -1702,6 +1702,7 @@ public class SchedulerDBManager {
.setParameter("numberOfExecutionOnFailureLeft",
taskInfo.getNumberOfExecutionOnFailureLeft())
.setParameter("finishedTime", taskInfo.getFinishedTime())
.setParameter("inErrorTime", taskInfo.getInErrorTime())
.setParameter("executionDuration", taskInfo.getExecutionDuration())
.setParameter("taskId", taskId)
.executeUpdate();
......
......@@ -134,6 +134,7 @@ import org.ow2.proactive.topology.descriptor.TopologyDescriptor;
@NamedQuery(name = "updateTaskDataAfterJobFinished", query = "update TaskData task set task.taskStatus = :taskStatus, " +
"task.numberOfExecutionLeft = :numberOfExecutionLeft, " +
"task.numberOfExecutionOnFailureLeft = :numberOfExecutionOnFailureLeft, " +
"task.inErrorTime = :inErrorTime, " +
"task.finishedTime = :finishedTime, " +
"task.executionDuration = :executionDuration " +
"where task.id = :taskId"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment