await storage.run({ action: "usage" });storage.run(action="usage")Por qua pretere prima de scriver
Un scrivat passa lo spazio del piano è negat con quota_exceeded. Lettura e elimina continua a funzionnèr — que l'assimetria è deliberat, per cui si può sempre ottenere i dati e fare spazio — ma una scrivatura che non fa la mitèria di un lotto lascia che achiesto.
const before = await storage.run({ action: "usage" });
// Write in batches, and stop on the first refusal rather than pushing through
for (const batch of batches) {
try {
await storage.run({ action: "insert", collection, documents: JSON.stringify(batch) });
} catch (err) {
if (err.code === "quota_exceeded") break;
throw err;
}
}import json
from iagenify import IaGenifyError
before = storage.run(action="usage")
# Write in batches, and stop on the first refusal rather than pushing through
for batch in batches:
try:
storage.run(action="insert", collection=collection, documents=json.dumps(batch))
except IaGenifyError as error:
if error.code == "quota_exceeded":
break
raiseEste stoccage, o la conta
| Question | Ask |
|---|---|
| Quan cheio è questo? | run({ azione: "usage" }) |
| Quale è il plan da, inversa di servizi? | api.cloud.usage() |
| Quals dosari prende l'espazio? | api.files.list(), e trie per taglia |
La vista a nivel de contas è quella che dice si comprare un spazio ajudarà, perché è là onde vive la prestazione del plan.