Skip to content

Limits and results

These limits and result rules apply whether you submit with the CLI, an MCP client, or the HTTP API.

Input Supported value Default
Language python required
Source non-empty, up to 16 KiB required
Timeout 100–10,000 ms 3,000 ms
Memory 32–512 MB 128 MB
vCPU count 1–2 1

Requests outside these bounds are rejected before an execution is accepted. The timeout and memory values are per-execution requests; they do not change workspace limits.

The current API reports standard and high_cpu CPU profiles, and standard and high_memory memory profiles. In the current contract, these select 1 or 2 vCPUs and 128 or 512 MB respectively. Read GET /v1/limits before choosing a profile; it returns the supported profiles and request bounds for the API.

Choose either a CPU profile or vcpu_count, and either a memory profile or memory_mb. The API rejects requests that provide both choices for the same resource. Tenant quotas can impose a lower effective CPU allowance than the API-wide request bounds.

Rather than copying this table into your client, read it from GET /v1/limits. The console shows the same values, together with your workspace quota, under Limits.

Rate, concurrent-execution, and daily-execution limits depend on your mPaka workspace. The API reports quota rejections with a specific error code instead of silently queueing work beyond the allowed boundary:

  • rate_limit_exceeded
  • concurrency_quota_exceeded
  • daily_budget_exceeded
  • resource_quota_exceeded

Ask your workspace owner or invitation issuer to confirm the quota assigned to your workspace. Do not build an integration around assumed default entitlements. Read quota and usage for tenant quota fields and provisioned resource metering.

Status Meaning Terminal
queued Accepted and waiting to be assigned. No
assigned Assigned for processing. No
leased Claimed by the processing path. No
provisioning Preparing the execution environment. No
running The workload is in its active execution phase. No
completed Processing ended with a result. Yes
failed The execution could not complete successfully. Yes
timed_out The requested timeout expired. Yes
cancelled Cancellation became the terminal outcome. Yes

completed is a lifecycle result, not by itself proof that the Python program succeeded. Check the mode and exit code as well.

Python dependency environments have their own lifecycle, separate from execution states:

Status Meaning Terminal
queued Accepted and waiting for an environment build. No
building The isolated build is in progress. No
ready The environment can be used for an execution. Yes
failed The environment build ended unsuccessfully. Yes

Only use an environment whose status is ready. A client wait timeout does not cancel the remote build. Environment support depends on deployment configuration; see Troubleshooting for recovery steps.

The execution list returns summary fields:

  • id
  • status
  • language
  • created_at
  • finished_at

Get one execution to receive its full result, including:

  • requested timeout_ms and memory_mb
  • stdout and stderr
  • exit_code
  • execution mode

Submitted source is not returned by list, detail, or cancellation responses. Keep the original source in your own application or source-control workflow if you need it later.

Treat a CLI run as successful only when:

  1. status is completed;
  2. mode is not mock_no_code_execution; and
  3. exit_code is 0.

The foreground mpaka run command enforces this rule and exits non-zero for every other terminal outcome. The --async form exits zero when submission is accepted, not when the program succeeds. mpaka executions wait exits zero when it returns a result, even if that execution is failed, timed_out, or cancelled; direct HTTP and MCP clients must also inspect the terminal status, mode, and exit code themselves.

A non-zero program exit code is returned as execution data. Inspect stderr for the program’s error output. A missing exit code means no process-success claim is available.

Cancellation is a request. The workload may reach another terminal state before cancellation is applied. Always refresh or inspect the execution and treat its returned terminal state as authoritative.

The CLI polling budget controls how long the local command waits; it does not cancel the remote execution. If polling is exhausted, use the reported ID:

Terminal window
mpaka executions get <EXECUTION_ID>

See Troubleshooting for recovery actions by status or API error code.