fix(FN-3005): restore unrelated heartbeat files
This commit is contained in:
@@ -1671,10 +1671,14 @@ export async function runDashboard(port: number, opts: { paused?: boolean; dev?:
|
||||
if (isEphemeralAgent(agent)) continue;
|
||||
if (agent.state !== "active" && agent.state !== "running") continue;
|
||||
const rc = agent.runtimeConfig;
|
||||
triggerScheduler.registerAgent(agent.id, {
|
||||
heartbeatIntervalMs: rc?.heartbeatIntervalMs as number | undefined,
|
||||
maxConcurrentRuns: rc?.maxConcurrentRuns as number | undefined,
|
||||
});
|
||||
triggerScheduler.registerAgent(
|
||||
agent.id,
|
||||
{
|
||||
heartbeatIntervalMs: rc?.heartbeatIntervalMs as number | undefined,
|
||||
maxConcurrentRuns: rc?.maxConcurrentRuns as number | undefined,
|
||||
},
|
||||
{ lastHeartbeatAt: agent.lastHeartbeatAt },
|
||||
);
|
||||
}
|
||||
if (agents.length > 0) {
|
||||
logSink.log(`Registered ${triggerScheduler.getRegisteredAgents().length} agents for heartbeat triggers`, "engine");
|
||||
|
||||
Reference in New Issue
Block a user