@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
ts 13 lines 401 Bytes
Raw
1 import * as Effect from "effect/Effect";
2 import * as Cache from "./Cache.ts";
3
4 export const batchSize = 256;
5
6 export const run = Effect.fn("TaskCache.cleanup")(function* () {
7 const cache = yield* Cache.Cache;
8 // Three full batches stay below D1’s 1,000-query invocation limit.
9 yield* Effect.all([cache.cleanup, cache.cleanup, cache.cleanup], {
10 concurrency: 3,
11 discard: true,
12 });
13 });