Limits and results
These limits and result rules apply whether you submit with the CLI, an MCP client, or the HTTP API.
Input limits
Section titled “Input limits”| 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.
CPU and memory profiles
Section titled “CPU and memory profiles”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.
Workspace quotas
Section titled “Workspace quotas”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_exceededconcurrency_quota_exceededdaily_budget_exceededresource_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.
Lifecycle states
Section titled “Lifecycle states”| 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 environment states
Section titled “Python environment states”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.
List summaries and full results
Section titled “List summaries and full results”The execution list returns summary fields:
idstatuslanguagecreated_atfinished_at
Get one execution to receive its full result, including:
- requested
timeout_msandmemory_mb stdoutandstderrexit_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.
Program success
Section titled “Program success”Treat a CLI run as successful only when:
statusiscompleted;modeis notmock_no_code_execution; andexit_codeis0.
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 races
Section titled “Cancellation races”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.
Polling is not execution lifetime
Section titled “Polling is not execution lifetime”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:
mpaka executions get <EXECUTION_ID>See Troubleshooting for recovery actions by status or API error code.