Workers

Workers are computers that run your tasks.


Two types

TypeDescription
CloudManaged by inference shell
PrivateYour own hardware

Cloud workers

  • Pay-per-use
  • Auto-scaling
  • No setup required

Good for getting started and variable workloads.

For programmatic GPU pricing and availability across providers, use the public Instance types API (GET /instances/types).


Private workers

  • Run on your hardware
  • Via the inference shell Engine
  • Data stays on your network

Good for data privacy, dedicated resources, or cost control.

→ Engines API — drain, update, and lifecycle for private engines


How tasks find workers

  1. You run an app
  2. Task goes to the queue
  3. A worker picks it up when one is available (tasks wait in Queued if capacity is temporarily full)
  4. Worker runs it and returns results

You can choose cloud vs private when running. Call POST /engines/resources to check which workers match an app's GPU and RAM requirements before you submit a run — see Engines API.

See Tasks for queue timeout and failure behavior.

When no worker is available yet

If every matching worker is busy, offline, or does not meet the app's resource requirements (GPU type, VRAM, CPU), the task stays in Queued instead of failing immediately. The scheduler retries as workers come online.

SituationWhat happens
Workers are temporarily busy or restartingTask waits in the queue; it runs when capacity returns
App forbids the infra you chose (e.g. cloud-only app with infra: "private")Task fails right away with a clear error
No worker on a serving engine can run the task (wrong GPU, VRAM or infra, or no engine online)Task fails on the scheduler's next pass with no online worker can run this app
Every matching cloud worker is held by another app's min_concurrency floorTask waits 2 minutes from when the block is first seen (time spent behind busy workers does not count), then fails with no online worker can run this app
Workers exist but stay busy or leasedTask fails after roughly 24 hours in the queue with task expired while waiting for available capacity, please retry

Some store apps have a min_concurrency floor: a cloud worker holding the app is not evicted for another app while min_concurrency or fewer workers hold it. The floor protects workers that already have the app loaded; it does not start or pre-load workers. This only affects cloud scheduling; private workers are not reserved this way. Check min_concurrency on the store listing if cloud runs fail with no online worker can run this app after a short wait.

On unified-memory GPUs (for example NVIDIA DGX Spark / GB10 or Jetson), drivers may report 0 dedicated VRAM even though CUDA works because CPU and GPU share one memory pool. The scheduler treats available system RAM (minus an OS reserve) as schedulable GPU capacity on those hosts so VRAM requirements can still match.

For private runs, confirm your engine is online and workers are configured in Configuration. If the engine briefly shows disconnected (network blip or API maintenance), in-flight tasks are not failed immediately — they keep going on your hardware while the engine has reconnect grace (about ten minutes). See Engine status for finalization behavior. For cloud runs, queued tasks usually start within seconds unless the platform is under heavy load.

→ Task status and queuing · Tasks API

Upstream proxy (app egress)

Some apps are configured by the platform to send all outbound traffic through an upstream proxy when they run on cloud workers. The engine's egress gateway connects through the proxy; your app code and sandbox never see the proxy's credentials.

BehaviorDetail
Who configures itPlatform admins on the app's runtime policy (upstream_proxy pool name plus optional geo and session options). Workspaces and publishers cannot change it.
Where it appliesCloud workers that route app egress through the gateway. Private workers never receive a proxy URL — those tasks use your network's egress as usual.
Sticky exit IPEach task gets its own session id. Every HTTP connection that task makes while it runs shares one exit IP, which helps sites that bind responses to the client IP (for example signed media URLs). Different tasks can still use different IPs.
Geo and session lengthAdmins can pin a country (two-letter code), state or city, and how long a session keeps its exit IP. Empty fields leave the choice to the proxy provider.
When it failsIf the platform cannot build a valid proxy URL for the policy (misconfigured pool, unsupported options, and similar), the task fails early with failed to set up this app's upstream proxy instead of running without the proxy.

This is separate from workspace IP blocking on API access and from MCP connector proxies.


Engines

An engine manages workers on your hardware — either machines you install the engine on, or a cloud engine rented from the workspace (provision a cloud engine).

Install the engine on your server, and your GPUs become available for tasks.

Route tasks to your hardware with infra: "private" in the API or the Private toggle in the workspace runner. Use infra: "private_first" to prefer your private workers but fall back to cloud when none are available. Agents inherit the same infra setting when they call tools.

GuideTopic
Why private?When to use your own workers
Installing the engineEngine setup on Linux and macOS
ConfigurationEngine and worker settings
Managing enginesDrain, update, and restart
Using private workersWorkspace and API usage

Next

Now you know the concepts! Let's build.

→ Creating an Agent

we use cookies

we use cookies to ensure you get the best experience on our website. for more information on how we use cookies, please see our cookie policy.

by clicking "accept", you agree to our use of cookies.
learn more.