airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject git commit: avoiding unknown status
Date Thu, 02 Oct 2014 13:30:01 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 3800bc19b -> 44dc03b2e


avoiding unknown status


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/44dc03b2
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/44dc03b2
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/44dc03b2

Branch: refs/heads/master
Commit: 44dc03b2e8d49eb58859339bd582b382114898f6
Parents: 3800bc1
Author: lahiru <lahiru@apache.org>
Authored: Thu Oct 2 09:29:54 2014 -0400
Committer: lahiru <lahiru@apache.org>
Committed: Thu Oct 2 09:29:54 2014 -0400

----------------------------------------------------------------------
 .../api/server/listener/AiravataExperimentStatusUpdator.java       | 2 +-
 .../airavata/gfac/core/monitor/AiravataTaskStatusUpdator.java      | 2 +-
 .../gfac/core/monitor/AiravataWorkflowNodeStatusUpdator.java       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/44dc03b2/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/listener/AiravataExperimentStatusUpdator.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/listener/AiravataExperimentStatusUpdator.java
b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/listener/AiravataExperimentStatusUpdator.java
index f033ba9..9fee886 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/listener/AiravataExperimentStatusUpdator.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/listener/AiravataExperimentStatusUpdator.java
@@ -75,7 +75,7 @@ public class AiravataExperimentStatusUpdator implements AbstractActivityListener
 	                state = ExperimentState.CANCELING; updateExperimentStatus = true;
 	                break;
 	            default:
-	                break;
+	                return;
 	        }
 	        if (!updateExperimentStatus){
 				ExecutionType executionType = DataModelUtils.getExecutionType((Experiment) airavataRegistry.get(RegistryModelType.EXPERIMENT,
nodeStatus.getIdentity().getExperimentID()));

http://git-wip-us.apache.org/repos/asf/airavata/blob/44dc03b2/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataTaskStatusUpdator.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataTaskStatusUpdator.java
b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataTaskStatusUpdator.java
index 81f032c..1d22571 100644
--- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataTaskStatusUpdator.java
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataTaskStatusUpdator.java
@@ -85,7 +85,7 @@ public class AiravataTaskStatusUpdator implements AbstractActivityListener
{
     	case CANCELING:
     		state=TaskState.CANCELING; break;
 		default:
-			break;
+			return;
     	}
     	try {
 			state = updateTaskStatus(jobStatus.getIdentity().getTaskId(), state);

http://git-wip-us.apache.org/repos/asf/airavata/blob/44dc03b2/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataWorkflowNodeStatusUpdator.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataWorkflowNodeStatusUpdator.java
b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataWorkflowNodeStatusUpdator.java
index 133ff73..889215a 100644
--- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataWorkflowNodeStatusUpdator.java
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/monitor/AiravataWorkflowNodeStatusUpdator.java
@@ -70,7 +70,7 @@ public class AiravataWorkflowNodeStatusUpdator implements AbstractActivityListen
     	case CANCELING:
     		state=WorkflowNodeState.CANCELING; break;
 		default:
-			break;
+			return;
     	}
     	try {
 			updateWorkflowNodeStatus(taskStatus.getIdentity().getWorkflowNodeID(), state);


Mime
View raw message