Merge pull request #72 from STRML/fix/heartbeat-pending-approval
fix: skip pending_approval agents in heartbeat tickTimers
This commit is contained in:
@@ -2207,7 +2207,7 @@ export function heartbeatService(db: Db) {
|
||||
let skipped = 0;
|
||||
|
||||
for (const agent of allAgents) {
|
||||
if (agent.status === "paused" || agent.status === "terminated") continue;
|
||||
if (agent.status === "paused" || agent.status === "terminated" || agent.status === "pending_approval") continue;
|
||||
const policy = parseHeartbeatPolicy(agent);
|
||||
if (!policy.enabled || policy.intervalSec <= 0) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user