]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
NPAL14110 : If in the graph a node do a Shutdown of Container(s) and if we
authorrahuel <rahuel@opencascade.com>
Tue, 13 Feb 2007 09:03:18 +0000 (09:03 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 13 Feb 2007 09:03:18 +0000 (09:03 +0000)
activate the "Reload Dataflow" button, nodes of that Container(s) were aborted because of a Call of CpuUsed_impl in the compoenet(s). Now the
exception is catched but the status of the nodes is not changed.

src/GraphExecutor/DataFlowExecutor_InNode.cxx

index ac7428102830ca0a42e424e079d6db0c6e728fcf..bd312f42f758ac346eb7bd066f2b287f95a446b2 100644 (file)
@@ -1689,10 +1689,18 @@ const long GraphExecutor::InNode::CpuUsed( bool tot ) {
         cpu = Component()->CpuUsed_impl() ;
       }
       catch ( ... ) {
-        cdebug << "CpuUsed " << Name() << " --> Component()->CpuUsed_impl() ERROR catched "
-               << endl ;
-        State( GraphExecutor::ErroredState ) ;
-        _OutNode->State( GraphExecutor::ErroredState ) ;
+        if ( _OutNode->IsDone() ) {
+          cdebug << "CpuUsed " << Name() << " --> Component()->CpuUsed_impl() WARNING catched Graph is done "
+                 << Automaton()->StateName( _OutNode->State() ) << endl ;
+        }
+        else {
+          cdebug << "CpuUsed " << Name() << " --> Component()->CpuUsed_impl() WARNING catched "
+                 << Automaton()->StateName( _OutNode->State() ) << endl ;
+//JR NPAL14110 09.02.2007 : If there is a shutdown of components ===> NodeState must not
+//                          be aborted ... ==> Commented :
+          //JRState( GraphExecutor::ErroredState ) ;
+          //JR_OutNode->State( GraphExecutor::ErroredState ) ;
+        }
         cpu = -1 ;
       }
     }