kajiya
Runners and billing / Queue and limits

Docs / Runners and billing

View as Markdown
On this page

Queue and limits

When a job cannot start yet, Kajiya leaves it queued on GitHub, records why, and starts it as soon as the reason clears. Nothing is dropped and nothing needs to be re-run. This page explains the limits that can hold a job and what to do about each.

How waiting works#

  • A job that cannot start stays in GitHub's queue. Kajiya lists it with a reason in the dashboard's live queue, in GET /api/v1/queue, and sends a job.waiting webhook when the job first waits or its reason changes.
  • Kajiya re-checks every repository with waiting jobs every 10 seconds, whether it uses webhooks or polling.
  • Jobs start in the order Kajiya checks them; there is no priority between repositories.
  • GitHub fails a job that waits for a self-hosted runner for more than 24 hours. Kajiya cannot extend that.

Account limits#

Every account has a concurrency limit, counted in vCPUs of jobs that are starting or running, and a limit on compute packs bought per 24 hours.

New accountEstablished account
vCPUs at once432
Compute packs per 24 hours$50$500

An account is established when all of these are true:

  • a GitHub repository is connected,
  • your first paid pack is at least 7 days old (a pack that was refunded in full, charged back, or bought over the purchase limit does not count),
  • no card payment of the account is charged back, and
  • your GitHub account is at least 30 days old.

With a limit of 4 vCPUs, a new account runs two kajiya-2 jobs or one kajiya-4 job at a time, and cannot run kajiya-8 at all: those jobs wait with reason limit until the account is established. GET /api/v1/account shows limits.established and concurrency.limit_vcpu.

Need more than 32 vCPUs at once? Email hello@vetter-ai.com; the limit can be raised per account.

Per-repository caps#

A repository cap limits how many vCPUs one repository may use at once, so a busy monorepo cannot take your whole account limit. Set Max vCPU on the repository in the dashboard, or:

bash
curl -X PATCH "https://kajiya.app/api/v1/repos/3" \
  -H "Authorization: Bearer $KAJIYA_API_KEY" -H "Content-Type: application/json" \
  -d '{"max_vcpu": 16}'

The cap is an integer of at least 2, or null for no cap. Keep it at least as large as the biggest job in that repository: with max_vcpu: 2, kajiya-4 jobs of that repository never start.

Pausing a repository#

A paused repository starts no new jobs; jobs that are already running finish. New jobs wait with reason paused and start when you resume. Pause in the dashboard, or send {"paused": true} (and later {"paused": false}) to PATCH /api/v1/repos/{id}.

Wait reasons#

Kajiya checks these in order and reports the first one that holds the job.

ReasonWhat it meansWhat to do
pausedThe repository is paused in Kajiya.Resume it.
limitYour running jobs plus this one would exceed the account's vCPU limit.Nothing: the job starts when running jobs finish. On a new account, kajiya-8 waits until the account is established.
repo_limitThis repository's running jobs plus this one would exceed its max_vcpu cap.Wait, or raise the cap. Make sure the cap is not smaller than the job's size.
no_creditYour remaining compute does not cover 10 minutes of this job after the jobs in flight (the gate).Buy a compute pack.
daily_capStarting the job could exceed your daily spend cap.Wait for the next UTC day, or raise the cap.
monthly_capStarting the job could exceed your monthly spend cap.Wait for the next UTC month, or raise the cap.
no_hostNo machine has free room for this size (or for the pinned tier).Nothing: the job starts when capacity frees up. Remove a tier pin if you do not need it.

Seeing the queue#

bash
curl -s "https://kajiya.app/api/v1/queue" -H "Authorization: Bearer $KAJIYA_API_KEY"
json
{
  "limit_vcpu": 32,
  "in_use_vcpu": 6,
  "fleet": {
    "sellable_vcpu": 96,
    "free_vcpu": 40
  },
  "active": [
    {
      "id": 1290,
      "repo": "acme/api",
      "name": "build",
      "label": "kajiya-4",
      "state": "running",
      "created_at": "2026-12-04T09:20:01.000Z",
      "started_at": "2026-12-04T09:20:07.000Z",
      "github_url": "https://github.com/acme/api/actions/runs/12045570001/job/33861290001"
    },
    {
      "id": 1291,
      "repo": "acme/web",
      "name": "lint",
      "label": "kajiya-2",
      "state": "dispatched",
      "created_at": "2026-12-04T09:20:12.000Z",
      "started_at": null,
      "github_url": "https://github.com/acme/web/actions/runs/12045571234/job/33861299870"
    }
  ],
  "waiting": [
    {
      "repo": "acme/web",
      "name": "e2e (1)",
      "label": "kajiya-8",
      "reason": "repo_limit",
      "message": "This repository's concurrency cap is reached; starts when its running jobs finish.",
      "waiting_since": "2026-12-04T09:20:15.000Z",
      "last_checked": "2026-12-04T09:21:05.000Z",
      "github_url": "https://github.com/acme/web/actions/runs/12045571234/job/33861299871"
    }
  ]
}

fleet.free_vcpu is the free capacity across all Kajiya machines right now; the status page shows the same number.

Other limits#

LimitValue
Job runtimestopped after 58 minutes
API requests1,200 per minute per account
API keys100 active keys per account
Connected repositories500 per account
Repositories per bulk connect request200
Waiting time on GitHub24 hours (GitHub's limit for self-hosted runners)