Skip to content

Commit

Permalink
fix: taskrunner exception new time
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Sep 22, 2020
1 parent fe44a1e commit 3576414
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/cron/TaskRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class TaskRunner {
const nextTry = moment().add(1, 'hours')
logger.info('task lock timeout,probably other worker is doing it, retrying later', { taskName, nextTry })
taskJob.setTime(new CronTime(nextTry))
taskJob.start()
return
}
logger.error('Cron task failed', errMessage, exception, { taskName })
Expand Down

0 comments on commit 3576414

Please sign in to comment.