Team & platformGuide

Workers

A worker is the process that runs your code. One worker image covers every language — Python, TypeScript, JavaScript, C, C++, Go, Bash, PHP, Ruby and SQL — and runs several jobs at once. To run more at the same time, add workers; the Workers tab shows each one live, and lets you keep a worker for some projects or some languages only.

What you will learn
  • Follow a job from the queue to its result
  • Read a worker card: status, slots, memory, what it runs now
  • Assign a worker to projects or restrict its languages
  • Add workers to run more jobs at the same time

From the queue to a result

Pressing Run, a schedule firing or an API call all do the same thing: they put a job in the queue. A worker that serves the job’s project and language picks it up, and every job is picked up by exactly one worker — never two at once.

  1. Pick up — the job is claimed by one worker with a free slot.
  2. Install — the packages the script imports are installed on first use and cached for the next run.
  3. Run — the code runs isolated, in a clean environment, with no network and no access to the platform’s database.
  4. Report — the result and logs are stored, and the screen that is waiting gets them the moment the job ends.
WorkersThe machines that run your scripts and flows. A worker with no assignment serves every project.
How it works
Search workers…Ctrl KOnline · 3Busy · 2live · refreshes every 5s
worker-9814 Slots3/12Avg · 7d41 msMem212 MB
worker-606b Slots1/12Avg · 7d38 msMem164 MB
worker-eb57 Slots0/12Avg · 7d40 msMem98 MB
The Workers tab: one card per worker with its status, busy and free slots, memory, jobs done and what it is running now.

The Workers tab

On the Projects page, open Workers. The header counts the fleet — online, busy, offline, jobs run in total — and refreshes every 5 seconds. Filter by language or status, or search by name.

On a cardWhat it tells you
StatusOnline: ready for work. Busy: running a job right now. Offline: not running — it may have crashed or been stopped.
SlotsHow many jobs it runs at once, busy ones in amber and free ones in green. SQL has its own row.
MemoryUse against its limit, from Plenty of room to Critical — almost out of memory.
Jobs done · Avg timeJobs completed since it started, and their average run time.
Currently runningThe script it runs now, with Watch run to follow it live.

The Language versions tab lists the runtime versions the fleet offers and which scripts follow or pin each one — see Runtime versions.

How the machines are doing

Beside the list, the Health panel reads the last 24 hours, 7 days or 30 days. Every machine records one sample a minute (memory, CPU, jobs running), kept for 30 days, so the panel shows what happened while nobody was watching. Pick a machine to see only it.

CardWhat it tells you
RecommendationOne sentence with its number: add a worker (work waited for a free slot), give the machines more memory, look first at the script behind most runs near their memory limit — or that capacity is fine.
UsageMemory and CPU over the period, the memory limit as a dashed line, and the peak with when it happened.
Top consumersThe scripts and flows that used the most memory, CPU time or run time.
Near the memory limitRuns that reached 90% of their step memory limit, and the ones stopped by it — raise the limit in the step's run settings or make the code lighter.
DemandHow many runs, the median wait for a worker, the share that waited over 30 s, and the busiest hours in your time zone.
MachinesMachines that went offline (why, and when they came back), restarts, idle memory that keeps growing, and runs stopped for lack of memory.

Runs are counted only in projects you can open. On a self-hosted installation the panel covers every machine; agents read the same figures through the MCP tool workers_health.

The robot engine

The service that runs AI robots (scrapers) is on the list too, marked Robot engine, with its browsers open and robot runs waiting. It runs robots only — never scripts or SQL — so it has no languages, projects or slots to set here; its limits come from SCRAPER_JOB_CONCURRENCY and SCRAPER_BROWSER_CONCURRENCY. Its memory counts its browsers.

Keep a worker for some projects

A worker with no assignment is global: it picks up jobs from every project. Assigning it keeps it for those projects only — useful to give an important project capacity nobody else can take.

  1. Open the worker

    Click its card to open the details.

  2. Restrict it

    Press + Restrict to projects and pick the projects, or Assign to this project only from inside a project.

  3. Undo at any time

    All projects makes it global again. Removing its last project does the same.

Send a script or a step to a worker group

On a self-hosted install, machines join a worker group through WORKER_POOL (every machine starts in default). Give a group a second set of machines — a big-memory box, a machine inside your private network — and a script or a flow step can choose to run there. Everything that chooses nothing runs exactly as before.

  1. Start the machines in the group

    Set WORKER_POOL: gpu-1 on them, and a fixed WORKER_NAME on each, so a nickname you give them survives re-creating the container.

  2. Name the group

    In Workers, open a machine of the group and give the group a name people recognise, such as “GPU machines”.

  3. Choose it

    In the script’s settings (the gear in the editor), or in a flow step’s Run settings, choose the group under Worker group.

The choice holds for every way a run starts — the editor, its API endpoint, a schedule, an event, a share link, another flow or script — and publishing freezes it with the version. A flow step with no choice of its own follows its script’s.

Run more at once

Each worker runs up to WORKER_CONCURRENCY jobs at once (12 by default) and, separately, up to WORKER_SQL_CONCURRENCY SQL queries (4 by default) with database connections kept ready. To run more at the same time, start more workers — on a self-hosted installation:

Shellterminal
docker compose up -d --scale worker=3

SQL runs in the same worker

There is no separate SQL service: PostgreSQL and MySQL scripts, SQL flow steps and the SQL workbench run inside each worker, in their own slots, so a long report never takes a script’s slot.

When a worker stops

A worker sends a heartbeat every few seconds. When they stop for about 90 seconds, the worker counts as lost and the reason is recorded — it was stopped or it stopped answering. What it was running is not left waiting:

  • A flow continues on another worker from where it stopped: the steps that finished keep their results and are not run again. This happens up to twice per run; a third loss fails it with worker_lost.
  • A flow step whose worker was lost runs again, up to twice, before its own retry setting counts. Its attempts list shows Worker lost on the attempt that ended that way.
  • A script run on its own ends failed with worker_lost; run it again.

A step that goes past its memory limit fails alone with out_of_memory and never takes the worker down — see Run settings. Values over 1 MB travel through storage instead of the worker’s memory — see Large values.