|
@@ -891,6 +891,7 @@ bool CJobManager::executeGraph(IConstWorkUnit &workunit, const char *graphName,
|
|
|
addJob(*job);
|
|
|
bool allDone = false;
|
|
|
Owned<IException> exception;
|
|
|
+ Owned<IFatalHandler> fatalHdlr;
|
|
|
try
|
|
|
{
|
|
|
struct CounterBlock
|
|
@@ -921,7 +922,7 @@ bool CJobManager::executeGraph(IConstWorkUnit &workunit, const char *graphName,
|
|
|
updateWorkunitStat(wu, SSTgraph, graphName, StTimeElapsed, graphTimeStr, graphTimeNs, wfid);
|
|
|
|
|
|
addTimeStamp(wu, SSTgraph, graphName, StWhenFinished, wfid);
|
|
|
-
|
|
|
+
|
|
|
removeJob(*job);
|
|
|
}
|
|
|
catch (IException *e)
|
|
@@ -935,9 +936,12 @@ bool CJobManager::executeGraph(IConstWorkUnit &workunit, const char *graphName,
|
|
|
setWuid(nullptr);
|
|
|
throw exception.getClear();
|
|
|
}
|
|
|
+ fatalHdlr.setown(job->clearFatalHandler());
|
|
|
job.clear();
|
|
|
PROGLOG("Finished wuid=%s, graph=%s", wuid.str(), graphName);
|
|
|
|
|
|
+ fatalHdlr->clear();
|
|
|
+
|
|
|
setWuid(NULL);
|
|
|
return allDone;
|
|
|
}
|