fix(FN-3005): restore unrelated heartbeat files

This commit is contained in:
gsxdsm
2026-04-29 23:14:51 -07:00
parent ffa116a238
commit 2e949895e2
12 changed files with 358 additions and 61 deletions

View File

@@ -563,11 +563,15 @@ export class InProcessRuntime
for (const agent of agents) {
if (!isTimerManagedAgent(agent)) continue;
const rc = agent.runtimeConfig;
this.triggerScheduler.registerAgent(agent.id, {
enabled: rc?.enabled as boolean | undefined,
heartbeatIntervalMs: rc?.heartbeatIntervalMs as number | undefined,
maxConcurrentRuns: rc?.maxConcurrentRuns as number | undefined,
});
this.triggerScheduler.registerAgent(
agent.id,
{
enabled: rc?.enabled as boolean | undefined,
heartbeatIntervalMs: rc?.heartbeatIntervalMs as number | undefined,
maxConcurrentRuns: rc?.maxConcurrentRuns as number | undefined,
},
{ lastHeartbeatAt: agent.lastHeartbeatAt },
);
registeredCount++;
}
if (agents.length > 0) {