修改变量名使语义好理解
parent
60b8484739
commit
ca94f9516c
|
|
@ -131,7 +131,7 @@ public class AutoCallTaskScheduled {
|
||||||
//fetch status
|
//fetch status
|
||||||
int pendingDuration = 60 * 1000 * 2;
|
int pendingDuration = 60 * 1000 * 2;
|
||||||
int loopGap = 1000;
|
int loopGap = 1000;
|
||||||
boolean success = false;
|
boolean resultFetched = false;
|
||||||
while (pendingDuration > 0) {
|
while (pendingDuration > 0) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(loopGap);
|
Thread.sleep(loopGap);
|
||||||
|
|
@ -141,12 +141,12 @@ public class AutoCallTaskScheduled {
|
||||||
}
|
}
|
||||||
pendingDuration -= loopGap;
|
pendingDuration -= loopGap;
|
||||||
|
|
||||||
success = autoCallTaskService.step4QueryAICCTaskResult(person);
|
resultFetched = autoCallTaskService.step4QueryAICCTaskResult(person);
|
||||||
if (success) break;
|
if (resultFetched) break;
|
||||||
}
|
}
|
||||||
AutoCallPerson _person = autoCallTaskService.getPersonMapper().selectById(person.getId());
|
AutoCallPerson _person = autoCallTaskService.getPersonMapper().selectById(person.getId());
|
||||||
person = _person;
|
person = _person;
|
||||||
if (!success) {
|
if (!resultFetched) {
|
||||||
if (person.getUploadedTimes() == 2) {
|
if (person.getUploadedTimes() == 2) {
|
||||||
autoCallTaskService.markPersonDetailQueryTimeout(person);
|
autoCallTaskService.markPersonDetailQueryTimeout(person);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue