airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject airavata git commit: set process status to processcontext in cancel operation
Date Mon, 21 Sep 2015 20:55:16 GMT
Repository: airavata
Updated Branches:
  refs/heads/master d6b735b56 -> 28ccb9f1b


set process status to processcontext in cancel operation


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

Branch: refs/heads/master
Commit: 28ccb9f1b0478187df197ea2e82f274b013c0123
Parents: d6b735b
Author: Shameera Rathanyaka <shameerainfo@gmail.com>
Authored: Mon Sep 21 16:55:06 2015 -0400
Committer: Shameera Rathanyaka <shameerainfo@gmail.com>
Committed: Mon Sep 21 16:55:06 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/airavata/gfac/core/GFacUtils.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/28ccb9f1/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
----------------------------------------------------------------------
diff --git a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
index 7696e3c..5ea1ea3 100644
--- a/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
+++ b/modules/gfac/gfac-core/src/main/java/org/apache/airavata/gfac/core/GFacUtils.java
@@ -1152,10 +1152,12 @@ public class GFacUtils {
 		if (processContext.isCancel()) {
 			ProcessStatus pStatus = new ProcessStatus(ProcessState.CANCELLING);
 			pStatus.setReason("Process Cancel triggered");
+			processContext.setProcessStatus(pStatus);
 			saveAndPublishProcessStatus(processContext);
 			// do cancel operation here
 
 			pStatus.setState(ProcessState.CANCELED);
+			processContext.setProcessStatus(pStatus);
 			saveAndPublishProcessStatus(processContext);
 		}else if (processContext.isHandOver()) {
 


Mime
View raw message