【功能修复】定时任务在多租户下,没有记录执行的日志结果
parent
9a49b84f27
commit
5f7e089bd1
|
@ -47,7 +47,8 @@ public class TenantJobAspect {
|
||||||
// TODO 芋艿:先通过 parallel 实现并行;1)多个租户,是一条执行日志;2)异常的情况
|
// TODO 芋艿:先通过 parallel 实现并行;1)多个租户,是一条执行日志;2)异常的情况
|
||||||
TenantUtils.execute(tenantId, () -> {
|
TenantUtils.execute(tenantId, () -> {
|
||||||
try {
|
try {
|
||||||
joinPoint.proceed();
|
Object result = joinPoint.proceed();
|
||||||
|
results.put(tenantId, StrUtil.toStringOrNull(result));
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
results.put(tenantId, ExceptionUtil.getRootCauseMessage(e));
|
results.put(tenantId, ExceptionUtil.getRootCauseMessage(e));
|
||||||
// 打印异常
|
// 打印异常
|
||||||
|
|
Loading…
Reference in New Issue