Skip to content

Hosted runners

A hosted runner is a runner that StratoNext runs for you. There is nothing to install, register or keep online: when a workflow run starts, StratoNext prepares an isolated environment for it, runs every step there, and removes the environment when the run ends. Think of GitHub-hosted runners.

You pay only for the time runs actually execute. Nothing is running between runs, and a run that waits for an approval does not use any time while it waits.

Use a hosted runner when your workflow needs only the public internet. Use a runner of your own when it needs to reach your private network or keep its secrets on your own machines.

Hosted runners are available to every organization and need no setup. Each organization gets a monthly quota of standard minutes (2,000 by default, see The monthly quota). Contact StratoNext if you need more, or if you want hosted runners switched off for your organization. Where they are switched off, a run that asks for one fails at once with a message saying so, and the Runners page in workspace settings says that hosted runners are not enabled.

A workflow that names no runs-on runs on a hosted runner. You can also ask for one by name with the hosted label:

apiVersion: workflows.stratonext.com/v1
kind: Workflow
name: nightly-report
on:
schedule:
- cron: "0 2 * * *" # every night at 02:00 UTC
runs-on: [hosted]
nodes:
build_report:
uses: stratonext.script.run@v1
with:
script: ./report.sh
secret_env: { API_TOKEN: REPORTS_API_TOKEN }

hosted is reserved: a runner you register cannot carry it, so a hosted run never lands on your machines and your runs never land on a hosted runner by accident. You can combine hosted with linux and x64, which hosted runners provide, and with nothing else. A workflow that also needs a label of your own runner (prod-vpc, for example) cannot run on a hosted runner, and the start is refused with the label it cannot find.

To keep a workflow on your own runners, give it labels that only they have, as in Runners.

  • An environment of its own. Every run gets a fresh, isolated environment that nobody else uses and that is removed when the run ends. Runs never see each other’s files, and an organization’s runs never share an environment with another organization’s.
  • Starting takes a short while. The environment has to be prepared and your image pulled before the first step. That time is not counted against your quota.
  • The image. A workflow that names no container image runs in the StratoNext runner image, which has bash, Python, uv, the AWS CLI, git and curl. Name your own image with container, as in Run in a container.
  • Approvals. While a run waits for a person to decide an approval, it lets go of its environment. When the approval is decided, the run continues in a new one. Nothing counts against your quota while it waits.
  • Outbound only. A step can reach the public internet. Nothing can connect in, and a hosted runner cannot reach your private network.

Usage is limited by a quota of standard minutes per organization per calendar month (UTC). The quota is set per organization, so ask StratoNext if you need more.

A standard minute is one minute of the default size. A run is counted like this:

  • It is counted from the moment its first step can run, not from when you started it, so preparation time is free.

  • Each stretch of running time is rounded up to a whole minute. A run that waits for an approval in the middle has two stretches, one before and one after.

  • A bigger size uses more. The size multiplier compares the size of the environment to the default, in steps of 0.5:

    Environment size Counts as
    0.25 vCPU, 0.5 GiB 0.5 standard minutes per minute
    0.5 vCPU, 1 GiB (the default) 1
    1 vCPU, 2 GiB 2
    2 vCPU, 4 GiB 4

    Ask for a size with resources in the workflow’s container. A run gets the smallest size that has at least the CPUs and memory it asks for. A run that asks for nothing gets the default.

For example, a 7 minute 20 second run at the default size counts as 8 standard minutes, and the same run at 1 vCPU and 2 GiB counts as 16.

The Runners page in workspace settings shows the month so far: minutes used, minutes held by runs in progress, the quota, and when it resets. While a run is executing, StratoNext holds the longest it may take from your remaining minutes, so the numbers can show more used than finished runs account for. The held minutes come back when the run ends, and only the time it used counts.

A run that cannot start because the quota is used up fails at once. It is not queued, so you do not find out in the morning that a nightly run is still waiting. The error says how many minutes were used, how many are held by runs in progress, and when the quota resets.

A run that is already executing when the quota runs out is stopped when the minutes it was allowed are used. Its run shows a time limit error.

To keep working you can ask StratoNext to raise the quota, wait for the reset, or give the workflow a runner of your own.

Hosted runners
Longest run 60 minutes of execution, or what is left of your quota if that is less
Largest size 2 vCPU and 8 GiB
Runs at the same time 2 per organization. A run beyond that waits until one finishes
Images Public images. Private registries (registry_auth) are not supported yet
Network The public internet, outbound only. No access to your private network
Cache None between runs, so /cache starts empty
Decisions that ask questions Not supported yet

These are the defaults. Your organization’s limits can differ. A run that asks for a size or an image the limits do not allow is refused when it starts, with the limit it hit.

A hosted runner has no machine of yours to keep secrets on, so for hosted runs StratoNext keeps them for you, per workspace.

  1. Open the workspace, go to Settings and find Secrets. Only workspace admins see it.
  2. Click Secret, choose a name and enter the value.
  3. Name the secret in a workflow step, exactly as you would for a runner of your own:
with:
url: https://api.example.com/reports
secret_headers:
Authorization: { secret: REPORTS_API_TOKEN, prefix: "Bearer " }

How they are handled:

  • Write-only. Nobody can read a value back, not you, not another admin, and not the API. To change a secret, store a new value under the same name. The list shows names, who last changed them, and when each was last changed and last used.
  • Names are upper case letters, digits and underscores, starting with a letter, up to 64 characters. A value can be up to 16 KB, and a workspace can store up to 50 secrets.
  • Only the steps that name a secret get it. The value is sent to the hosted environment running that step, for that step, and goes nowhere else. It is masked in the output that is sent back, and it is never put in the environment of the image or in logs.
  • Only this workspace’s hosted runs. Another workspace cannot use the secret, and a runner of your own never receives it. Agents and apps cannot read or change secrets either.
  • A missing secret fails the step with secret_missing, as it does on your own runners.
  • Deleting a secret removes its value. Runs that name it fail from then on. Deleting a workspace deletes its secrets.
What you see What it means
“Hosted runners are not enabled for this organization” (hosted_not_enabled) Hosted runners are switched off for your organization. Contact StratoNext, or use a runner of your own.
“The hosted runner quota is used up” (hosted_quota_exceeded) The month’s standard minutes are used or held by runs in progress. The message says when the quota resets.
“it also needs labels […], which hosted runners do not provide” The workflow asks for a label only your own runners have. Remove it, or run on your own runner.
“more than the largest hosted size” resources asks for more than 2 vCPU or 8 GiB.
“cannot log in to a private registry” The workflow’s image needs registry_auth. Use a public image, or a runner of your own.
The run fails with hosted_deadline The run reached the end of the time it was allowed: the longest a hosted run may take, or the minutes left in your quota.
The run fails with hosted_start_failed The environment could not be started, for example because the image could not be pulled. Check the image name and that it is public.
A step fails with secret_missing The step names a secret this workspace has not stored under Secrets, or the name is misspelled.