日志权限控制:仅管理员支持查询全部;普通用户仅支持查询有权限的 jobGroup
This commit is contained in:
parent
b202af1334
commit
802e3d3cce
|
@ -565,7 +565,7 @@ It is implemented by interrupt execute thread, it will trigger InterruptedExcept
|
|||
So if you want stop the running task ,the JobHandler need to handle InterruptedException separately by throw this exception.the right logic is as shown below:
|
||||
```
|
||||
try{
|
||||
// TODO
|
||||
// do something
|
||||
} catch (Exception e) {
|
||||
if (e instanceof InterruptedException) {
|
||||
throw e;
|
||||
|
|
|
@ -730,7 +730,7 @@ public XxlJobSpringExecutor xxlJobExecutor() {
|
|||
因此, 如果遇到上述任务终止不可用的情况, 需要在JobHandler中应该针对 "InterruptedException" 异常进行特殊处理 (向上抛出) , 正确逻辑如下:
|
||||
```
|
||||
try{
|
||||
// TODO
|
||||
// do something
|
||||
} catch (Exception e) {
|
||||
if (e instanceof InterruptedException) {
|
||||
throw e;
|
||||
|
|
|
@ -192,7 +192,7 @@ public class JobFailMonitorHelper {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO, custom alarm strategy, such as sms
|
||||
// do something, custom alarm strategy, such as sms
|
||||
|
||||
|
||||
return alarmResult;
|
||||
|
|
|
@ -32,7 +32,7 @@ public abstract class IJobHandler {
|
|||
* init handler, invoked when JobThread init
|
||||
*/
|
||||
public void init() {
|
||||
// TODO
|
||||
// do something
|
||||
}
|
||||
|
||||
|
||||
|
@ -40,7 +40,7 @@ public abstract class IJobHandler {
|
|||
* destroy handler, invoked when JobThread destroy
|
||||
*/
|
||||
public void destroy() {
|
||||
// TODO
|
||||
// do something
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue