REQ-2135: 调整命名
This commit is contained in:
parent
2ed58170e5
commit
6a1aff1b9b
@ -454,7 +454,6 @@ public class TodoManager {
|
||||
// !! advance state
|
||||
|
||||
private StateAdvanceResult advanceState(TodoRequestContext ctx, StateAdvanceBuilder builder) {
|
||||
List<Todo> todos = builder.getQuery().list();
|
||||
// 通过日志反应状态推进失败的原因, 用于排查问题
|
||||
Runnable advanceFailLogger = () -> {
|
||||
List<Todo> noStateTodos = builder.getNoStateQuery()
|
||||
@ -474,6 +473,7 @@ public class TodoManager {
|
||||
log.warn("尝试推进待办状态, 但是 {}. ctx={}, query={}, currentStateSample={}",
|
||||
failReason, ctx, QueryFormatter.format(builder.getQuery()), currentStateSample);
|
||||
};
|
||||
List<Todo> todos = builder.getQuery().list();
|
||||
if (todos.isEmpty()) {
|
||||
advanceFailLogger.run();
|
||||
return new StateAdvanceResult(false, null, Collections.emptyList());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user