MCPcopy Create free account
hub / github.com/EvoMap/evolver / getHeartbeatMeta

Method getHeartbeatMeta

src/proxy/task/monitor.js:116–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 }
115
116 getHeartbeatMeta() {
117 const pendingTasks = this.store.countPending({ direction: 'inbound' });
118 return {
119 task_subscription: this.subscribed,
120 task_metrics: {
121 pending: pendingTasks,
122 claimed: this._stats.tasks_claimed,
123 completed: this._stats.tasks_completed,
124 failed: this._stats.tasks_failed,
125 avg_completion_ms: this._stats.avg_completion_ms,
126 },
127 };
128 }
129}
130
131module.exports = { TaskMonitor };

Callers 2

startMethod · 0.80

Calls 1

countPendingMethod · 0.80

Tested by

no test coverage detected