fix(FN-4249): align running-agent reconciliation with taskId linkage
Fusion-Task-Id: FN-4249 Fusion-Task-Lineage: e0052fae-38e1-4d66-8240-43d26f5790bb
This commit is contained in:
@@ -493,7 +493,7 @@ export class Scheduler {
|
||||
if (!agentStore) return;
|
||||
|
||||
const runningAgents = await agentStore.listAgents({ state: "running", includeEphemeral: true });
|
||||
const linkedAgents = runningAgents.filter((agent) => agent.executionTaskId === taskId);
|
||||
const linkedAgents = runningAgents.filter((agent) => agent.taskId === taskId);
|
||||
|
||||
for (const agent of linkedAgents) {
|
||||
await agentStore.updateAgentState(agent.id, "active");
|
||||
|
||||
Reference in New Issue
Block a user