Skip to content
Snippets Groups Projects
Commit 303451c2 authored by Ruud Overeem's avatar Ruud Overeem
Browse files

Task #1418: When pipeline finished succesfully it was reported 'aborted' in SAS.

parent cd98fe6b
No related branches found
No related tags found
No related merge requests found
......@@ -759,9 +759,14 @@ void ObservationControl::doHeartBeatTask()
time_t now = to_time_t(second_clock::universal_time());
time_t stop = to_time_t(itsStopTime);
if (!nrChilds || (now < stop && itsProcessType == "Observation" && !nrStations)) {
LOG_FATAL("Too less stations left, FORCING QUIT OF OBSERVATION");
if (itsState < CTState::RESUME) {
itsQuitReason = CT_RESULT_LOST_CONNECTION;
if (itsProcessType == "Observation") {
LOG_FATAL("Too less stations left, FORCING QUIT OF OBSERVATION");
if (itsState < CTState::RESUME) {
itsQuitReason = CT_RESULT_LOST_CONNECTION;
}
}
else {
LOG_INFO("Lost connection with last childcontroller, quiting...");
}
itsTimerPort->cancelTimer(itsStopTimer);
itsStopTimer = itsTimerPort->setTimer(0.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment