mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
polish 6322374d81
This commit is contained in:
+12
-4
@@ -108,10 +108,18 @@ public class GlobalJobControllerImpl extends JobControllerImpl {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (job != null) {
|
||||
Job temp = job;
|
||||
job = null;
|
||||
temp.terminate();
|
||||
try {
|
||||
if (job != null) {
|
||||
Job temp = job;
|
||||
job = null;
|
||||
temp.terminate();
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
try {
|
||||
logger.error("JobTimeoutTask error, job id: {}, line: {}", job.id(), job.line(), e);
|
||||
} catch (Throwable t) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user