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