mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-19 12:10:37 +09: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 changed files with 1 additions and 1 deletions
|
|
@ -2207,7 +2207,7 @@ export function heartbeatService(db: Db) {
|
||||||
let skipped = 0;
|
let skipped = 0;
|
||||||
|
|
||||||
for (const agent of allAgents) {
|
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);
|
const policy = parseHeartbeatPolicy(agent);
|
||||||
if (!policy.enabled || policy.intervalSec <= 0) continue;
|
if (!policy.enabled || policy.intervalSec <= 0) continue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue