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,10 +61,15 @@ 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);
try {
while ((fetchedSize = doFetchRemote(operator, taskKey, campaign)) > 0) { while ((fetchedSize = doFetchRemote(operator, taskKey, campaign)) > 0) {
total += fetchedSize; total += fetchedSize;
log.info("Task [{}] calling list [{}] fetched.", taskKey, 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);
return total; return total;