MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / run

Function run

packages/maintenance/src/s3-cache-control.ts:15–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13let count = 0;
14
15async function run() {
16 await fs.mkdir(`${filePrefix}`, { recursive: true });
17 let ContinuationToken = await fs
18 .readFile(`${filePrefix}/token`, {
19 encoding: 'utf-8',
20 })
21 .catch((e) => {
22 return undefined;
23 });
24
25 do {
26 ContinuationToken = await job(ContinuationToken);
27 if (!ContinuationToken) {
28 break;
29 }
30 } while (true);
31}
32
33run();
34

Callers 1

Calls 1

jobFunction · 0.85

Tested by

no test coverage detected