feat(FN-2113): merge fusion/fn-2113
This commit is contained in:
@@ -789,14 +789,14 @@ describe("InProcessRuntime", () => {
|
||||
expect(scheduler!.getRegisteredAgents()).toContain(agent.id);
|
||||
});
|
||||
|
||||
it("registers agent without explicit heartbeatIntervalMs using default 30s interval", async () => {
|
||||
it("registers agent without explicit heartbeatIntervalMs using default 3600s interval", async () => {
|
||||
// Create a new agent with only enabled: true (no heartbeatIntervalMs)
|
||||
// This tests that the default 30-second interval is applied
|
||||
// This tests that the default 3600-second interval (1 hour) is applied
|
||||
const store = getAgentStore(runtime);
|
||||
const agent = await store.createAgent({
|
||||
name: "test-agent-default-interval",
|
||||
role: "executor",
|
||||
runtimeConfig: { enabled: true }, // No heartbeatIntervalMs - should use default 30s
|
||||
runtimeConfig: { enabled: true }, // No heartbeatIntervalMs - should use default 3600s (1 hour)
|
||||
});
|
||||
|
||||
// Verify the agent was registered with the trigger scheduler
|
||||
|
||||
@@ -497,7 +497,7 @@ export class InProcessRuntime
|
||||
this.agentStore.on("agent:updated", this.agentUpdatedListener);
|
||||
|
||||
// Register existing agents with heartbeat monitoring not explicitly disabled
|
||||
// Agents without explicit heartbeat config will use the default 30-second interval
|
||||
// Agents without explicit heartbeat config will use the default 3600-second interval (1 hour)
|
||||
try {
|
||||
const agents = await this.agentStore.listAgents();
|
||||
let registeredCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user