mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-25 08:32:32 +00:00
Fix reprocess manager
Stop it responding with stupid questions when there are no part complete stores.
This commit is contained in:
parent
87db5ae6ab
commit
57bae3c39c
@ -175,9 +175,11 @@ public class ReprocessManager {
|
|||||||
|
|
||||||
ArrayList<PamControlledUnit> outputStores = PamController.getInstance().findControlledUnits(DataOutputStore.class, true);
|
ArrayList<PamControlledUnit> outputStores = PamController.getInstance().findControlledUnits(DataOutputStore.class, true);
|
||||||
boolean partStores = false;
|
boolean partStores = false;
|
||||||
|
int nOutputStores = 0;
|
||||||
for (PamControlledUnit aPCU : outputStores) {
|
for (PamControlledUnit aPCU : outputStores) {
|
||||||
DataOutputStore offlineStore = (DataOutputStore) aPCU;
|
DataOutputStore offlineStore = (DataOutputStore) aPCU;
|
||||||
StoreStatus status = offlineStore.getStoreStatus(false);
|
StoreStatus status = offlineStore.getStoreStatus(false);
|
||||||
|
nOutputStores++;
|
||||||
if (status == null) {
|
if (status == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -191,8 +193,8 @@ public class ReprocessManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (partStores == false) {
|
if (partStores == false) {
|
||||||
choiceSummary.addChoice(ReprocessStoreChoice.STARTNORMAL);
|
// choiceSummary.addChoice(ReprocessStoreChoice.STARTNORMAL);
|
||||||
return choiceSummary;
|
return null; // no part full stores, so can start without questions
|
||||||
}
|
}
|
||||||
if (choiceSummary.getInputStartTime() >= choiceSummary.getOutputEndTime()) {
|
if (choiceSummary.getInputStartTime() >= choiceSummary.getOutputEndTime()) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user