MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / list_queues

Function list_queues

core/taskqueue.py:114–126  ·  view source on GitHub ↗

Return all saved queues sorted by newest first.

()

Source from the content-addressed store, hash-verified

112 return q
113
114def list_queues():
115 """Return all saved queues sorted by newest first."""
116 SESSIONS_DIR.mkdir(exist_ok=True)
117 paths = sorted(SESSIONS_DIR.glob('queue_*.json'),
118 key=lambda p: p.stat().st_mtime, reverse=True)
119 result = []
120 for p in paths:
121 try:
122 q = TaskQueue.load(p)
123 result.append((p, q))
124 except Exception:
125 pass
126 return result

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected