BizKitHub
PUBLIC_CRON_RUN_LIMIT_EXCEEDED

Too many cron runs are open at the same time.

Z BizKitHub Docs, reference chybových kódů API

Názvy a popisy kódů udržujeme v angličtině.

HTTP 429Veřejné API
The organisation holds the maximum number of simultaneously running cron runs. Runs that are never finished stay open until their expiration.

Jak to vyřešit

  1. 1

    Call `/cron-run/{id}/finish` at the end of every run, also when it fails.

  2. 2

    Use a shorter `expiration` so abandoned runs close sooner.

Ukázka odpovědi

API odpoví statusem HTTP 429 a tělem ve formátu JSON. Porovnávejte errorCode, ne message. Zprávy se mohou přeformulovat, kódy zůstávají stejné.

application/json
{
  "state": "error",
  "code": 429,
  "message": "Too many cron runs are open at the same time.",
  "errorCode": "PUBLIC_CRON_RUN_LIMIT_EXCEEDED",
  "hint": "The organisation holds the maximum number of simultaneously running cron runs. Runs that are never finished stay open until their expiration.",
  "documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_CRON_RUN_LIMIT_EXCEEDED"
}