提交 ebc5618e 编写于 作者: 许雪里's avatar 许雪里

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

上级 04e16245
......@@ -160,7 +160,9 @@ public class JobScheduleHelper {
try {
conn.commit();
} catch (SQLException e) {
e.printStackTrace();
if (!scheduleThreadToStop) {
logger.error(e.getMessage(), e);
}
}
// close PreparedStatement
......@@ -168,6 +170,9 @@ public class JobScheduleHelper {
try {
preparedStatement.close();
} catch (SQLException ignore) {
if (!scheduleThreadToStop) {
logger.error(ignore.getMessage(), ignore);
}
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册