catch fetch calling list error

This commit is contained in:
Shaun Chyxion 2021-11-18 23:54:31 +08:00
parent 3e1f16dea5
commit 4c3009126f

View File

@ -61,9 +61,14 @@ public class CallingListPreparedServiceImpl
log.info("Operator [{}] fetch campaign [{}] remote calling list, task key [{}].", log.info("Operator [{}] fetch campaign [{}] remote calling list, task key [{}].",
operator, campaign, taskKey); operator, campaign, taskKey);
while ((fetchedSize = doFetchRemote(operator, taskKey, campaign)) > 0) { try {
total += fetchedSize; while ((fetchedSize = doFetchRemote(operator, taskKey, campaign)) > 0) {
log.info("Task [{}] calling list [{}] fetched.", taskKey, fetchedSize); total += fetchedSize;
log.info("Task [{}] calling list [{}] fetched.", taskKey, fetchedSize);
}
}
catch (final Exception e) {
log.error("Fetch campaign calling list error caused.", e);
} }
log.info("Task [{}] calling list total [{}] fetched.", total); log.info("Task [{}] calling list total [{}] fetched.", total);