airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject git commit: fixing issue with not updating fialed status when output handlers fail
Date Fri, 03 Oct 2014 17:34:31 GMT
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 <lahiru@apache.org>
Authored: Fri Oct 3 13:26:29 2014 -0400
Committer: lahiru <lahiru@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{


Mime
View raw message