Merge branch 'refs/heads/REQ-2324' into feature/merged_all_req
# Conflicts: # workflow-engine-core/src/main/java/cn/axzo/workflow/core/engine/listener/EngineNoticeEventListener.java
This commit is contained in:
commit
6f4caf6b11
@ -65,7 +65,7 @@ public class ErrorReportAspect implements Ordered {
|
|||||||
watch.start(signature.toShortString());
|
watch.start(signature.toShortString());
|
||||||
Object result = joinPoint.proceed();
|
Object result = joinPoint.proceed();
|
||||||
watch.stop();
|
watch.stop();
|
||||||
log.info("StopWatch '" + watch.getLastTaskName() + "': running time = " + watch.getTotalTimeSeconds() + " s");
|
log.info("StopWatch '{}': running time = {} 's", watch.getLastTaskName(), watch.getTotalTimeSeconds());
|
||||||
|
|
||||||
if (!signature.toShortString().contains("ExtAxApiLogServiceImpl")) {
|
if (!signature.toShortString().contains("ExtAxApiLogServiceImpl")) {
|
||||||
String type = getType(joinPoint);
|
String type = getType(joinPoint);
|
||||||
|
|||||||
@ -115,7 +115,7 @@ public abstract class AbstractBpmnTaskAssigneeSelector implements BpmnTaskAssign
|
|||||||
ApiResult<T> result = supplier.get();
|
ApiResult<T> result = supplier.get();
|
||||||
stopWatch.stop();
|
stopWatch.stop();
|
||||||
log.info("{}-Cost:{}, Result: {}", operatorDesc,
|
log.info("{}-Cost:{}, Result: {}", operatorDesc,
|
||||||
"API StopWatch '" + stopWatch.getId() + "': running time = " + stopWatch.getTotalTimeSeconds() + " s",
|
"API StopWatch '" + stopWatch.getId() + "': running time = " + stopWatch.getTotalTimeSeconds() + " 's",
|
||||||
JSONUtil.toJsonStr(result));
|
JSONUtil.toJsonStr(result));
|
||||||
try {
|
try {
|
||||||
if (stopWatch.getTotalTimeSeconds() > executionStartListener.getApiTimeout()) {
|
if (stopWatch.getTotalTimeSeconds() > executionStartListener.getApiTimeout()) {
|
||||||
|
|||||||
@ -50,7 +50,9 @@ public class ErrorReporterEventListener implements BpmnAsyncJobEventListener {
|
|||||||
} else if (Lists.newArrayList("live", "master").contains(profile)) {
|
} else if (Lists.newArrayList("live", "master").contains(profile)) {
|
||||||
reporterType = ReporterType.ONLY_LOG;
|
reporterType = ReporterType.ONLY_LOG;
|
||||||
}
|
}
|
||||||
reporterType.executeAction(profile, "异步任务执行异常, 剩余重试次数:" + job.getRetries(), sendDingTalk, new Object[]{job}, "act_ru_job", throwable, false);
|
if (job.getRetries() <= 1) {
|
||||||
|
reporterType.executeAction(profile, "异步任务执行异常, 重试 3 次后仍未成功", sendDingTalk, new Object[]{job}, "act_ru_job", throwable, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user