while( iterator.hasNext() ) {
DuccId duccId = iterator.next();
IDuccWork dw = (IDuccWork)dwm.findDuccWork(duccId);
gone.remove(duccId);
if(!mMap.containsKey(duccId)) {
MonitorInfo monitorInfo = new MonitorInfo();
mMap.put(duccId, monitorInfo);
duccLogger.info(location, duccId, "monitor start");
if(!tMap.containsKey(duccId)) {
if(dw.isCancelOnInterrupt()) {
TrackingInfo ti = new TrackingInfo();
ti.time = expiryMillis;
ti.user = dw.getStandardInfo().getUser();
tMap.put(duccId,ti);
duccLogger.info(location, duccId, "auto-cancel on");
}
else {
duccLogger.info(location, duccId, "auto-cancel off");
}
}
}
DuccWorkJob dwr = (DuccWorkJob) dw;
MonitorInfo monitorInfo = mMap.get(duccId);
//IDuccSchedulingInfo si = dwr.getSchedulingInfo();
//monitorInfo.total = si.getWorkItemsTotal(); // ignore for MR, default to 0
//monitorInfo.done = si.getWorkItemsCompleted(); // ignore for MR, default to 0
//monitorInfo.error = si.getWorkItemsError(); // ignore for MR, default to 0
//monitorInfo.retry = si.getWorkItemsRetry(); // ignore for MR, default to 0