Skip to content NewFaster GitHub Actions runners: a machine for every job in under a second.Faster GitHub Actions runnersSee how →
Products / Jobs & schedules

Batch jobs and cron schedules with one API call.

Run evals, test suites, data pulls and reports on their own sandboxes, many side by side. Each job runs to the end even if a connection drops, never runs twice, and keeps its output for 7 days.

Never runs twiceOutput kept 7 daysCron schedules
POST /v1/jobapi.bonya.ai
{ "new_sandbox": { "image": "python:3.12-slim" }, "command": ["python", "eval.py"], "secret_sets": ["openai"] } → run-8d2k4m6p0q1r3s · running
run-8d2k4m6p0q1r3scompleted · exit 0
  1. Sandbox ready
  2. Ran once
  3. Output kept
  4. Cleaned up
$ python eval.py loading 212 cases calling model with key [REDACTED:OPENAI_API_KEY] 212 passed in 4m 12s
Read it from the API or the consoleAPI →
1×
A command starts once. Retries reattach to it, never run it twice
20at once
Running jobs per organization by default. Higher limits on request
7days
Output kept per run, up to 256 KiB of stdout and stderr
1s
Billing granularity, at the rates of the sandbox the job runs on
How a job works

Send a command. Get the result.

A job runs one command to the end on its own sandbox, and keeps what it printed. Start one, or a hundred side by side.

  1. 01

    Send the command

    One request: the image or sandbox to run on, the command and any secrets. You get a run ID back straight away.

  2. 02

    It runs to the end

    Each job gets its own sandbox. If a connection drops, the job reattaches to the same process; it never runs twice. A deadline stops it if it hangs.

  3. 03

    Read the result

    Exit code, stdout and stderr, kept for 7 days. The sandbox is deleted afterwards, or kept if you want to look inside.

POST /v1/job × 4
eval · case 1completed · 0
eval · case 2completed · 0
eval · case 3completed · 1
eval · case 4running

Each case on its own sandbox. One failing case does not touch the others.

Use it for

Anything you would type into a shell.

Evals

Run a model against your test set, one case per job, and compare the exit codes.

Test suites

Run the full suite on a clean machine, outside your laptop and your CI minutes.

Data pulls and backfills

Fetch, transform and load in a script that finishes even if you close the terminal.

Reports

Build the weekly numbers on a schedule and read them in the morning.

Every job comes with
  • New or existing sandboxa fresh one from an image, template or snapshot, or one you already have
  • Exit codes you can trusta non-zero exit is a completed run with its code; failed means it could not finish
  • Timeouts and deadlinesfor the command and for the whole run, with clean-up when one hits
  • Keep or deletethe sandbox is deleted when the run ends, or kept so you can open a shell on it
  • Secrets, masked in outputnamed secret sets attached to the run, hidden in what it prints
  • Setup in the same requesta pre-run script, environment variables, working directory and stdin
Durable by default

Lose the connection, not the run.

If one of our workers or a connection is lost, the command keeps running in its sandbox and the job reattaches. Retries never start it a second time.

01

Admitted

Limits checked and secret values pinned for this run.

02

Sandbox ready

A new one is created, or an existing one is woken.

03

Command runs once

A lost worker or connection detaches; the job reattaches to the same process.

04

Output kept

Exit code, stdout and stderr, flagged when partial or truncated.

05

Cleaned up

The new sandbox is deleted, or kept if you asked for that.

status completedexit 0schedule sch-3k9d2m7x1q4w8zsandbox deleted
$ python eval.py --suite nightly loading 212 cases calling model with key [REDACTED:OPENAI_API_KEY] ................................................ 212 passed in 4m 12s wrote results/nightly.json

Debug the one that failed, not all of them. Every run keeps its own output, in the API and in the console's Jobs view.

Schedules

Put it on a schedule.

Give a job a cron expression and a time zone. Each tick starts a run with the same durability, limits and output as one you start by hand.

0minute
2hour
*day
*month
*weekday
  • Pause a schedule, or trigger a run now without waiting
  • Update a schedule or delete it with one call
  • See recent runs and the next run time for each schedule
POST /v1/job-schedule
$ curl -X POST https://api.bonya.ai/v1/job-schedule \ -H "Authorization: Bearer $BONYA_API_KEY" \ -d '{ "cron_expressions": ["0 2 * * *"], "time_zone": "Europe/London", "job": { "name": "nightly-eval", "new_sandbox": { "image": "python:3.12-slim" }, "command": ["python", "eval.py", "--suite", "nightly"], "secret_sets": ["openai"], "disposition": "delete" } }' { "schedule_id": "sch-3k9d2m7x1q4w8z", "paused": false, … } $ curl -X POST …/v1/job-schedule/sch-3k9d2m7x1q4w8z/trigger # run now, outside the schedule
Interfaces

Start the way you work.

Jobs live in the REST API at api.bonya.ai, so any language or CI system can start one. The console shows every run and schedule.

# run on a sandbox you already have $ curl -X POST https://api.bonya.ai/v1/job \ -H "Authorization: Bearer $BONYA_API_KEY" \ -d '{ "existing_sandbox_id": "sb-4f1c9a2b3c4d5e", "wake_if_paused": true, "command": ["npm", "test"], "working_dir": "/app", "env": { "CI": "1" }, "command_timeout_seconds": 600 }'
REST · consoleAPI reference →
Coding agent

Let your coding agent write the request.

Give it this prompt and your API key.

Use the Bonya jobs API to run my eval script every night at 02:00 UTC on a fresh python:3.12-slim sandbox with my "openai" secret set, then summarise any runs that exit non-zero.
Needs BONYA_API_KEY
Pricing

Sandbox rates. Nothing extra for jobs.

A job is billed as the sandbox it runs on, per second, for as long as it runs. A job's new sandbox stops costing anything once it is deleted.

All rates
CPU$0.080per vCPU-hour
Memory$0.055per GB-hour
Disk$0.00007per GB-hour
100 runs · 10 min each · 1 vCPU · 2 GB
≈ $3.17
CPU and memory; disk on top
See pricing →
FAQ

Job questions.

Anything else, ask us directly.

Talk to our team
What is a job?

One command or script, run to the end on a sandbox, with its exit code and output kept. You start it with one API call or on a cron schedule, and you read the result when it is done.

When should I use a job instead of running a command on a sandbox?

Use a sandbox command when an agent or a person is working interactively and waits for the answer. Use a job when the command must finish on its own: it survives lost connections, has a deadline, keeps its output and cleans up after itself.

What happens if your side fails mid-run?

The command keeps running inside its sandbox. When the worker or connection comes back, the job reattaches to the same process. Retries never start the command a second time, and an Idempotency-Key makes your own retries of the create call safe too.

How long can a job run, and how many at once?

Limits are per organization. The defaults are 20 running jobs at once, 600 seconds per command and 3600 seconds per run. Higher limits come with your plan or on request.

Where does the output go?

Each run keeps its exit code and up to 256 KiB of stdout and stderr for 7 days, readable from the API and the console. If output was cut off or partly lost, the run says so.

Can I start jobs from the CLI or an SDK?

Yes. Use bonya job run and bonya schedule create, the Python, TypeScript or Go SDK, the MCP server, the REST API or the console. See all developer tools.

Run it tonight. Read it in the morning.

Durable jobs and cron schedules on the same account as your sandboxes.