refactor(ActionScheduler): rename entry method into schedule

This commit is contained in:
2026-03-06 14:04:15 +08:00
parent 3c6076ee0a
commit facc49a799
4 changed files with 12 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ public class ActionDispatcher extends PostRunningAbstractAgentModuleAbstract {
}
}
actionExecutor.execute(new ActionExecutorInput(immediateActions));
actionScheduler.execute(scheduledActions);
actionScheduler.schedule(scheduledActions);
});
}

View File

@@ -144,7 +144,7 @@ public class ActionExecutor extends AbstractAgentModule.Sub<ActionExecutorInput,
// 如果是 ScheduledActionData, 则重置 ActionData 内容,记录执行历史与最终结果
if (executableAction instanceof SchedulableExecutableAction scheduledActionData) {
scheduledActionData.recordAndReset();
actionScheduler.execute(Set.of(scheduledActionData));
actionScheduler.schedule(Set.of(scheduledActionData));
} else {
executableAction.setStatus(Status.SUCCESS);
}

View File

@@ -79,7 +79,7 @@ class ActionScheduler : AbstractAgentModule.Standalone() {
})
}
fun execute(input: Set<Schedulable>) = schedulerScope.launch {
fun schedule(input: Set<Schedulable>) = schedulerScope.launch {
for (schedulableData in input) {
log.debug("New data to schedule: {}", schedulableData)
timeWheel.schedule(schedulableData)