mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(action): register no blocks while no actions recovered
This commit is contained in:
@@ -63,6 +63,9 @@ public class ActionExecutor extends AbstractAgentModule.Standalone {
|
||||
recoveredActions.addAll(actionCapability.listActions(Action.Status.INTERRUPTED, null).stream()
|
||||
.peek(executableAction -> executableAction.setStatus(Action.Status.EXECUTING))
|
||||
.collect(Collectors.toSet()));
|
||||
if (recoveredActions.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
recoveredActions.forEach(this::execute);
|
||||
blockManager.emitActionRecoveredBlock(recoveredActions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user