mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 15:52:36 +01:00
Merge branch 'master' of github.com-dotta:paperclipai/paperclip
* 'master' of github.com-dotta:paperclipai/paperclip: fix: skip pending_approval agents in heartbeat tickTimers
This commit is contained in:
commit
70e41150c5
1 file changed
+1
-1
@@ -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