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 2013/01/17 18:18:28 UTC

svn commit: r1434789 - /airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java

Author: lahiru
Date: Thu Jan 17 17:18:28 2013
New Revision: 1434789

URL: http://svn.apache.org/viewvc?rev=1434789&view=rev
Log:
making workflow stop when error occurs.

Modified:
    airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java

Modified: airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java?rev=1434789&r1=1434788&r2=1434789&view=diff
==============================================================================
--- airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java (original)
+++ airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java Thu Jan 17 17:18:28 2013
@@ -231,7 +231,9 @@ public class WorkflowInterpreter {
 					// so we should pause the execution
 					if (InterpreterUtil.getRunningNodeCountDynamically(this.getGraph()) == 0
 							&& InterpreterUtil.getFailedNodeCountDynamically(this.getGraph()) != 0) {
-						this.getWorkflow().setExecutionState(WorkflowExecutionState.PAUSED);
+                        //Since airavata only support workflow interpreter server mode we do not want to keep thread in sleep mode
+                        // continuously, so we make the workflow stop when there's nothing to do.
+						this.getWorkflow().setExecutionState(WorkflowExecutionState.STOPPED);
 					}
 
 					try {