flag calc
This commit is contained in:
parent
aaf91195b1
commit
53a2ab77a9
3 changed files with 5 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ public class PipelinePackageManager {
|
|||
}
|
||||
SignalXmlFilePayload res = (SignalXmlFilePayload) v;
|
||||
log.trace("Signal file by path: {} is completed", res.getSignalXmlFilePath());
|
||||
signalRestService.setupMonitoring(res.getSignalXmlFilePath().toString());
|
||||
// signalRestService.setupMonitoring(res.getSignalXmlFilePath().toString());
|
||||
} catch (Exception ex) {
|
||||
log.error("pipeline finished with error{}", ExceptionUtils.getStackTrace(ex));
|
||||
} finally {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class Stage<X extends StagePayload, Z extends StagePayload> implements Ru
|
|||
}
|
||||
if (b == null) continue;
|
||||
if (b.isPoison()) {
|
||||
log.debug("Got poison");
|
||||
log.info("Got poison");
|
||||
// дождаться всех in-flight задач
|
||||
for (Future<Z> f : inflight) {
|
||||
if (wasInterrupted()) {
|
||||
|
|
@ -129,6 +129,7 @@ public class Stage<X extends StagePayload, Z extends StagePayload> implements Ru
|
|||
}
|
||||
q.put(b);
|
||||
} catch (InterruptedException e) {
|
||||
log.error("Error: {}", ExceptionUtils.getStackTrace(e));
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
|
|
@ -137,6 +138,7 @@ public class Stage<X extends StagePayload, Z extends StagePayload> implements Ru
|
|||
try {
|
||||
return q.poll(timeout.toMillis(), TimeUnit.MILLISECONDS);
|
||||
} catch (InterruptedException e) {
|
||||
log.error("Error: {}", ExceptionUtils.getStackTrace(e));
|
||||
Thread.currentThread().interrupt();
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ public class KickPipeLineImpl implements IPipeLineStarter<SubjectPayload> {
|
|||
} catch (IOException e) {
|
||||
throw new RuntimeException("Error while parsing monitoring request", e);
|
||||
} finally {
|
||||
log.debug("Send poison pill");
|
||||
firstQueue.add(new SubjectPayload(true));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue