fix: remove agent_type filter from getDueTasks for unified service

This commit is contained in:
Eyejoker
2026-03-30 03:01:36 +09:00
parent 96ca9c0655
commit 5b8c198e6b
3 changed files with 9 additions and 12 deletions

View File

@@ -899,9 +899,9 @@ export function startSchedulerLoop(deps: SchedulerDependencies): void {
schedulerTickInFlight = true;
try {
const agentType = deps.serviceAgentType || SERVICE_AGENT_TYPE;
// Unified service: process all agent types, not just the service default.
const nowMs = Date.now();
const activeTasks = getAllTasks(agentType).filter(
const activeTasks = getAllTasks().filter(
(task) => task.status === 'active',
);
@@ -927,7 +927,7 @@ export function startSchedulerLoop(deps: SchedulerDependencies): void {
);
}
const dueTasks = getDueTasks(agentType);
const dueTasks = getDueTasks();
if (dueTasks.length > 0) {
logger.info({ count: dueTasks.length }, 'Found due tasks');
}