1. new AcquireTimerJobsCmd(asyncExecutor)
1. 获取 timerJob 列表
1. 每次查询记录条数为 (maxAsyncJobsDuePerAcquisition = 1)
2. mybatis 对应 sql 的 id: <font color="#ff0000">selectTimerJobsToExecute</font>
2. 对每个 timeerJob 进行 lockJob
1. 锁定任务的时间 (asyncJobLockTimeInMillis = 5 * 60 * 1000)
2. 对 timeJob 任务添加 <font color="#ff0000">[lockOwner]</font> 和 <font color="#ff0000">[lockExpirationTime]</font>
2. jobManager.moveTimerJobToExecutableJob(job)
1. 移动 timerJob 到 job
1. 锁定任务时间 ( timerLockTimeInMillis = 5 * 60 * 1000)
2. 插入成功,删除原有的 timerJob
3.添加 AsyncJobAddedNotification 回调
代码位置 org.activiti.engine.impl.jobexecutor.AsyncJobAddedNotification#closed