You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2014/10/03 19:34:31 UTC
git commit: fixing issue with not updating fialed status when output
handlers fail
Repository: airavata
Updated Branches:
refs/heads/master 73856bd2a -> 1ef608cd6
fixing issue with not updating fialed status when output handlers fail
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/1ef608cd
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/1ef608cd
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/1ef608cd
Branch: refs/heads/master
Commit: 1ef608cd6c729f8fe0ddf431e65cb1c076865e81
Parents: 73856bd
Author: lahiru <la...@apache.org>
Authored: Fri Oct 3 13:26:29 2014 -0400
Committer: lahiru <la...@apache.org>
Committed: Fri Oct 3 13:26:29 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/airavata/gfac/core/cpi/BetterGfacImpl.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/1ef608cd/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/BetterGfacImpl.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/BetterGfacImpl.java b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/BetterGfacImpl.java
index d4cd563..1ed3a67 100644
--- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/BetterGfacImpl.java
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/cpi/BetterGfacImpl.java
@@ -966,6 +966,10 @@ public class BetterGfacImpl implements GFac,Watcher {
handler.invoke(jobExecutionContext);
GFacUtils.updatePluginState(zk, jobExecutionContext, handlerClassName.getClassName(), GfacPluginState.COMPLETED);
} catch (Exception e) {
+ monitorPublisher.publish(new TaskStatusChangeRequest(
+ new TaskIdentity(jobExecutionContext.getExperimentID(),
+ jobExecutionContext.getWorkflowNodeDetails().getNodeInstanceId(),
+ jobExecutionContext.getTaskData().getTaskID()), TaskState.FAILED));
throw new GFacException(e);
}
}else{