LoginSignup
0
0

TypeError: KV storage and writes quota are exhausted.

Posted at

exhausted:sob:

image.png

const kv = await Deno.openKv();

Deno.cron("delete all entries", "* * * * *", async () => {
    console.log(new Date())
    const start = Date.now()
    const entries = kv.list({ prefix: [] });
    for await (const entry of entries) {
        kv.delete(entry.key);
    }
    console.log((Date.now() - start) / 1000)
});
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0