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

Function forget

src/atp/atpTaskPickup.js:216–223  ·  view source on GitHub ↗

* Forget a previously-spawned task so the main loop will retry it next cycle. * Called by callers that detected the spawn channel was unavailable (e.g. * wrapper not attached) so we do not burn the cooldown on a no-op spawn.

(taskId)

Source from the content-addressed store, hash-verified

214 * wrapper not attached) so we do not burn the cooldown on a no-op spawn.
215 */
216function forget(taskId) {
217 if (!taskId) return;
218 const ledger = _readLedger();
219 if (ledger.spawned && ledger.spawned[taskId]) {
220 delete ledger.spawned[taskId];
221 _writeLedger(ledger);
222 }
223}
224
225module.exports = {
226 pickOne,

Callers

nothing calls this directly

Calls 2

_readLedgerFunction · 0.70
_writeLedgerFunction · 0.70

Tested by

no test coverage detected