Skip to content

Commit

Permalink
Merge pull request ltsopensource#328 from irector2016/patch-3
Browse files Browse the repository at this point in the history
修复--将已经正常完成的任务错误识别为死任务,并重新执行的问题
  • Loading branch information
qq254963746 authored Jan 20, 2017
2 parents 05b13b3 + fb5590c commit 2fec990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public List<JobPo> getDeadJobs(long deadline) {
.all()
.from()
.table(getTableName())
.where("gmt_created < ?", deadline)
.where("gmt_modified < ?", deadline)
.list(RshHolder.JOB_PO_LIST_RSH);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private List<JobPo> fetchJob(String taskTrackerNodeGroup, String taskTrackerIden

// IMPORTANT: 这里要先切换队列
try {
jobPo.setGmtModified(jobPo.getGmtCreated());
jobPo.setGmtModified(SystemClock.now());
appContext.getExecutingJobQueue().add(jobPo);
} catch (DupEntryException e) {
LOGGER.warn("ExecutingJobQueue already exist:" + JSON.toJSONString(jobPo));
Expand Down

0 comments on commit 2fec990

Please sign in to comment.