MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / persistQueue

Method persistQueue

packages/cloud/src/retry-queue/RetryQueue.ts:62–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 private async persistQueue(): Promise<void> {
63 if (!this.config.persistQueue) return
64
65 try {
66 const requests = Array.from(this.queue.values())
67 await this.context.workspaceState.update(this.STORAGE_KEY, requests)
68 } catch (error) {
69 this.log("[RetryQueue] Failed to persist queue:", error)
70 }
71 }
72
73 public async enqueue(
74 url: string,

Callers 3

enqueueMethod · 0.95
retryAllMethod · 0.95
clearMethod · 0.95

Calls 3

fromMethod · 0.80
updateMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected