Skip to content

Commit

Permalink
1.if job is successful, errCode and errDesc need to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzhiyue authored and peacewong committed Mar 28, 2020
1 parent b799e4d commit 213685c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ public Task parseToTask(Job job) throws EntranceIllegalParamException{
&& StringUtils.isNotEmpty(job.getErrorResponse().message())) {
((RequestPersistTask) task).setErrDesc(job.getErrorResponse().message());
}
//if job is successful, errCode and errDesc needs to be null
if (job.isSucceed()){
((RequestPersistTask) task).setErrCode(null);
((RequestPersistTask) task).setErrDesc(null);
}
}else{
logger.warn("not supported task type");
}
Expand Down

0 comments on commit 213685c

Please sign in to comment.