Commit 04e16245 by xuxueli

调度线程优化,避免异常无法commit导致锁表;

parent d836e309
......@@ -149,12 +149,21 @@ public class JobScheduleHelper {
// tx stop
conn.commit();
} catch (Exception e) {
if (!scheduleThreadToStop) {
logger.error(">>>>>>>>>>> xxl-job, JobScheduleHelper#scheduleThread error:{}", e);
}
} finally {
// commit
try {
conn.commit();
} catch (SQLException e) {
e.printStackTrace();
}
// close PreparedStatement
if (null != preparedStatement) {
try {
preparedStatement.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment