Chapter 12

Run an automation

Start runs from the Run tab, one row at a time or a whole table in one step, then watch, stop, pause and restart them. You will also learn what to do when a row fails and how runs use your plan's minutes.

A run is one time an automation does its work. Each run starts a fresh computer in the cloud, does the task on it, and writes the results back to Autoworklet. Some screens use the older word "worklet" for an automation, for example the Back to Worklet link on a run's page. Both words mean the same thing.

12.1The Run tab at a glance

Every automation opens on its Run tab. This is where you start runs and where each run's results land.

  1. Click Automations in the header.
  2. Click the automation's row. The automation's page opens on the Run tab.

From top to bottom, the Run tab shows:

  • The minutes line 1. It shows how many of your plan's included minutes the workspace has used this month, and what happens past them. See Minutes and limits.
  • The script line 2. It says which version of the script the buttons run, for example Runs execute Published v3. The Script tab link at its end opens the script.
  • Live now, while a run of this automation is queued, running or paused. See Watch a run live.
  • The Inputs and results card, with three buttons:
    • New run 3 adds new rows of inputs and starts them.
    • Run N ready rows 4, where N is the number of rows that are filled in and waiting, starts them, up to 5 per click by default.
    • Repeat last input… 5 adds many copies of the latest completed row. The automation's owner, admins and managers see it after a row is done.
  • The table under the buttons, called the grid. Each row holds one set of inputs, the results its run wrote, and the row's Status 6. Click View in the Report column 7 to open that row's run report.
  • Two collapsed panels, If a row fails and Only run some rows (optional).
  • Cards for AI repair, maintenance and engine upgrades. See Fix problems with AI repair.
The Run tab: the minutes line, the script line and the Inputs and results card
Figure 12.1The Run tab: the minutes line, the script line and the Inputs and results card

Important

Read the script line 2 before you start a run. When it says Runs execute Published vN., changes saved to the draft do not run here until you publish them. If the line is amber, the runs here might not use the version you expect. See Draft and published versions.

An automation that needs no inputs shows a card titled Run and results with a single Run once button instead.

The line above the grid counts the rows, for example "3 rows shown · 0 ready · 3 completed". The automation's owner, admins and managers also see Configure inputs and connections, which changes the grid's columns. See Inputs, outputs and default values.

Row statuses

The Status column 6 shows where each row is.

Status What it means What to do
Needs input At least one input cell is empty. Fill the empty cells.
Ready Every input is filled. The row is waiting for a run. Click Run N ready rows, or let a schedule start it.
Running A run is working on the row. Wait, or watch it live.
Done The run finished and wrote its results. Read the results in the row, or click View.
Retrying The run failed and another try is scheduled. Nothing. This shows only when automatic retry is on.
Failed The run failed and will not be tried again. Open the report to see why. See When a row fails.

Who can do what

Task Who
Start runs and read results Every member of the workspace
Use Repeat last input…, and change If a row fails or Only run some rows (optional) The automation's owner, admins and managers
Remove unused rows, delete runs, clear run history Admins and managers
Restart Run on a run's details page The automation's owner and admins

See Roles for what each role means.

12.2Start one run

Use New run with One row when you have one set of inputs to run now.

The New run dialog on the One row tab
Figure 12.2The New run dialog on the One row tab
  1. Open the automation. It opens on the Run tab.
  2. Click New run. A dialog titled New run opens with two tabs, One row and Paste table.
  3. If the dialog opened on Paste table, click One row. It opens on Paste table when the automation came from a ready-made template and still has the template's sample rows.
  4. Read the note at the top 1: "Fill every input column, then Run. This creates one row and starts one run - it does not drain other ready rows."
  5. Fill in every field. Each field is named after an input column, for example Pricing page address 2 and Plan to watch 3. The fields start with the automation's default values, so check them before you run. A column with fixed choices is a list that starts at "Select...". A yes/no column accepts yes, no, true, false, 1 or 0.
  6. Click Run 4. To close the dialog without running, click Cancel 5.

The dialog closes and a message says Run started - "A new row was added for this run." A new row appears in the grid with the status Running, and a Live now tile appears at the top of the Run tab. When the run ends, the row's status changes to Done or Failed and its result columns fill in.

New run starts only the row you typed. It does not start other rows that are waiting as Ready.

Automations with no inputs

Click Run once. The run starts immediately, without a dialog, and the message Run started appears.

Older automations without a grid

An automation made before grids existed shows "This automation has no run queue. Start runs from its run page."

  1. Click Open run page.
  2. Under Configure Run, edit the inputs in Params (JSON). The box starts with the automation's default inputs.
  3. Click Run Worklet. When the run starts, you return to the automation's page.

If something goes wrong

Message What it means and what to do
"Fill every input column before running (...)." A field is empty. Fill the fields named in the brackets.
Could not start the run and a reason The run did not start. Read the reason. If it is about minutes or billing, see Minutes and limits.
Already ran for this press - "Try again if you want another run." Your click was already handled. Click Run again only if you want a second run.
"Invalid JSON" (older automations) The text in Params (JSON) is not valid JSON. Check the quotes, commas and braces.

12.3Run many rows together

Use Paste table to start many rows from a spreadsheet in one step. There is no file upload: you copy the cells and paste them.

  1. In your spreadsheet (for example Excel, Google Sheets or Numbers), make a header row whose names match the automation's input columns.
  2. Select the header row and the data rows under it.
  3. Copy the selected rows.
  4. On the Run tab, click New run.
  5. Click Paste table.
  6. Click the box. An empty box shows the headers it expects.
  7. If the box already holds sample rows, select all of its text and delete it.
  8. Paste the rows.
  9. Read the preview under the box. It says how many runs start now and how many rows they handle, for example "1 run will start now (3 rows, up to 5 per run)." A table shows the first 8 rows as they will be read.
  10. Click Run. The button stays grey until the paste can be read.

A message says Runs started, for example "3 row(s) started in 1 run(s)." The new rows appear in the grid with the status Running.

The paste follows these rules:

  • A header must match an input column's label or its key. Capital letters and spaces at the ends do not matter.
  • Extra columns, such as result columns, are ignored.
  • Rows that are completely blank are skipped.
  • One paste holds at most 200 rows.

How rows are split into runs

One run works through several rows, up to 5 by default. By default, one click starts one run. Rows that do not fit in the runs that start now are added as Ready and wait. The preview tells you when this happens, for example "7 more will wait in the queue for Run ready or the next schedule." To start the waiting rows, click Run N ready rows, or let a schedule start them. See Queue rows and run them later.

Repeat the last input

Repeat last input… adds many copies of the latest completed row to the grid. It starts as many copies as one click allows, 5 by default, and the rest wait as Ready. Use it to check how an automation behaves over many rows. The button appears after a row is Done.

  1. Click Repeat last input…. The Repeat last input dialog opens: "This adds copies of the inputs from the latest completed row in the table and starts them. Each copy performs the automation and uses your plan's run minutes."
  2. In Copies, type a whole number from 1 to 200.
  3. Check the inputs listed under the field. These are the inputs every copy will use.
  4. Click Run N copies, or Cancel.

A message says Runs started with how many copies started and how many wait, for example "5 row(s) started in 1 run(s). 45 row(s) waiting." The waiting copies stay Ready until you click Run N ready rows or a schedule starts them.

Important

Copies starts at 50. Every copy is one more row of the task, and every row uses minutes, including the copies a schedule starts later. Lower the number before you click Run N copies.

If something goes wrong

These messages show under the paste box:

Message What to do
"First row must be column headers (...)." Make the first row the headers listed in the brackets.
"The header row is missing ..." Add a column for each input named in the message.
"Row N is missing ..." Fill the named cells in that row, or delete the row.
"Paste at least one data row under the headers." Add rows under the header row.
"Paste at most 200 rows." Split the table and paste it in parts.

After you click Run, you might also see:

  • Rows queued: the rows were added but none started yet. They wait as Ready.
  • Could not start the batch and a reason: nothing was added. Read the reason and try again.
  • Already ran for this press - "Try again if you want another batch.": your click was already handled. Click again only if you want another batch.

12.4Queue rows and run them later

You can fill in rows now and run them later. Typing a row never starts a run. A row waits as Ready until you click Run N ready rows or a schedule starts it.

  1. On the Run tab, click the last line of the grid, Add row, to add an empty row.
  2. Click a cell in an input column.
  3. Type a value. Instead of typing, you can paste a block of cells that you copied from a spreadsheet. Cells that land on a result column are skipped, with the note "Pasted. N cell(s) skipped - those columns are written by the run."
  4. Check the Status column. A row with every input filled shows Ready. A row with an empty input shows Needs input.
  5. When you want the rows to run, click Run N ready rows.

The message Run started says how many rows started, for example "5 row(s) picked up." If no row is ready, the message is Nothing ready to run - "Fill inputs (or wait for a linked feed) until a row is ready."

Each click starts up to as many rows as one run handles, 5 by default. If more rows are Ready, click the button again. You can edit a row's inputs only while it shows Needs input or Ready.

Other ways rows get started:

Run only some rows

Under the grid are two collapsed panels. If a row fails holds Do not retry 1 and Retry automatically 2, described in When a row fails. Only run some rows (optional) sets rules that decide which ready rows run. Rows that do not match stay Ready and are not started.

  1. Click Only run some rows (optional) to open it. It reads "Skip rows that do not match these rules. Leave empty to run every ready row."
  2. Click Builder or Formula 3.
  3. In Builder:
    1. Click Add rule 4. A new rule appears.
    2. In the rule, type a column key. The field suggests the keys.
    3. Select a comparison, such as =, contains or is blank.
    4. If the comparison needs a value, type the value.
    5. For each further rule, click Add rule again.
    6. Under Match, select whether rows must match all rules (AND) or any rule (OR).
  4. In Formula, type a formula such as =AND([status]="done",[amount]>100). It supports AND, OR, NOT, ISBLANK, CONTAINS and comparisons on [column] names.
  5. To get help:
    1. Click Chat with AI 5.
    2. In Build a row filter, describe which rows should run.
    3. Click Apply formula on the suggestion.
  6. Click Save precondition 6. The message Run precondition saved confirms it.
The If a row fails and Only run some rows (optional) panels, open
Figure 12.3The If a row fails and Only run some rows (optional) panels, open

The rules apply when Run N ready rows or a schedule starts rows. Rows you start with New run always run. Rows that do not match still count in Run N ready rows, so a click can answer Nothing ready to run when no ready row matches. To remove the rules, click the remove button at the end of each rule, then click Save precondition. The message then reads Run precondition cleared.

Remove rows you do not need

Admins and managers can remove rows that have not run yet.

  1. Select rows by clicking their row numbers.
  2. Click Remove, or press Delete.

Only rows that show Needs input or Ready can be removed. If your selection includes rows that already ran, the line above the grid says so, for example "3 rows selected, 1 already used - only unused rows can be removed".

12.5When a row fails

A row shows Failed when its run ended with an error and no retry is left. Use these steps to learn why and run it again.

  1. In the row, click View in the Report column. The report shows each step the run took, so you can see where it stopped. See The run report.
  2. For the full error, click the Runs tab.
  3. Click the eye icon View details on that run. The red Error box shows the complete error text. See One run in detail.
  4. To have AI fix the script, click Repair script on that run in the Runs tab. See Ask AI to fix a run.
  5. To try the row again, start the same inputs with New run. A failed row's input cells cannot be edited.

A failed run also appears on Home under Needs you. See Home and the Issues page and Triage a failed run.

Retry failed rows automatically

By default, a failed row stops at Failed and waits for you. You can have Autoworklet try it again instead.

  1. On the Run tab, click If a row fails to open it.
  2. Select one option:
    • Do not retry: "The row is marked Failed and waits for you."
    • Retry automatically: "Up to 3 attempts, waiting 1 hour and then 6 hours between them."
  3. The choice saves immediately. The message says Failed rows will be retried or Failed rows will not be retried.

While a retry is scheduled, the row shows Retrying. If the last attempt also fails, the row shows Failed. Each attempt uses minutes.

Note

This setting is for grid rows. The Settings tab has a separate Retry settings section for whole runs. See Retries.

12.6Watch a run live

You can watch the screen of the computer a run is using while it works. Three places show live runs:

Where What it shows
Live now on the Run tab One live run of this automation, with See all on Watch when more are live.
The Watch tab Every live run of this automation, then three summary cards.
Monitor in the header Every live run in the workspace, up to 12. See Monitor: every live run.
  1. Open the automation.
  2. Click the Watch tab.
  3. Each live run shows as a tile. The tile looks the same as on the Monitor page. See Monitor: every live run. The tile shows:
    • The automation's name.
    • A caption.
    • The live screen.
    • At the bottom, the state and how long it has been running.
  4. Read the caption to see what the run is doing. While it runs, the caption reads like "Step 4 · Typing" or "Step 2 · Opening the page". "Waiting for a machine" means the run is queued.
  5. To see the screen larger, click the Expand view icon. The large view has an Open run details button.
  6. To open the run's details page in a new tab, click the Open run in a new tab icon.
  7. Below the tiles, read the summary cards. Recent runs 1 counts how many of the last 20 runs finished and how many ended with an error. Rows by stage 2 counts the grid rows in each status. Recent outputs 3 lists the results of up to 5 of the newest completed rows.
The Watch tab summary cards
Figure 12.4The Watch tab summary cards

When nothing is running, the Watch tab shows only the summary cards. The screen in a tile is view-only. On the Runs tab, the Open execution icon on a running run opens the same screen, view-only, in a new tab.

Take control of a run

To use the run's computer yourself, for example to get past a step the script cannot do, click Take control on the tile. Control lasts 10 minutes at a time, and anything you do happens for real. The steps are in Monitor: every live run.

If something goes wrong

  • "No screen yet": the computer has not started showing its screen. Wait a few seconds.
  • "Screen paused": the run is paused.
  • "Could not load live screens." and a reason: click Try again.
  • In a HIPAA organization, screens do not open on their own. Click Show screen on the tile.

12.7Stop, pause, resume and restart

The controls for a run are icons on its row in the Runs tab. Hover over an icon to see its name. For the rest of that list, see Run history.

Stop a run

  1. Open the automation.
  2. Click the Runs tab.
  3. Find the run whose status reads Running.
  4. Click the square Terminate sandbox icon.

The computer shuts down and the run's status changes to Stopped. A stopped run is not retried.

Warning

Click Terminate sandbox only when you want to stop the run now. It does not ask you to confirm, and the run stops as soon as you click.

Live tiles, Monitor and the run's details page have no stop button. To stop a build that Teach started, use its Teach session. The mobile app can also stop a run. See Run, stop and watch.

Pause and resume a run

A paused run keeps the computer's memory, so it can continue later from the same point. Pausing must be allowed for the automation first. The automation's owner or an admin does steps 1 to 4.

  1. Open the Settings tab.
  2. Click Edit on Compute configuration.
  3. Select Allow pausing runs. The setting reads "A running run can be paused and resumed within 7 days. Paused time is not billed. These runs are not pinned to a US region, and a run with a GPU cannot pause."
  4. Click Save. See Settings.
  5. On the Runs tab, click Pause and create memory snapshot on a running run. The status changes to Paused.
  6. To continue, click Resume from memory snapshot on the paused run.

The pause icon appears only on runs that allow pausing. A run paused for more than 7 days is closed with the error "Paused for longer than 7 days: its saved machine expired, so it can no longer resume. Restart it to run it again."

Restart a run

Restart runs the same run again on a fresh computer, with the same inputs.

Use either button:

  • On the Runs tab, click the Restart worklet icon. It appears on runs that are Paused, Finished, Stopped, Error or Queued.
  • On the run's details page, click Restart Run. Only the automation's owner and admins see this button.

The run keeps its run ID. The earlier try moves to Previous Attempts on the run's details page. Each attempt is billed on its own.

If something goes wrong

  • If a message starts with one of the texts below, the action did not happen. Read the reason after the colon and try again.
    • "Failed to terminate sandbox"
    • "Failed to pause sandbox"
    • "Failed to resume sandbox"
    • "Failed to restart run"
    • "Failed to restart sandbox"
  • Run not restarted or Run not resumed, with Upgrade plan or Manage billing, means your plan refused the run. See Minutes and limits.

To remove a run from the history, see Delete runs and clear run history.

12.8When a run asks you something

Some scripts stop and wait for a person. A run can ask you to approve a step, with buttons such as Yes and No, or to fill in a short form. Where you answer depends on the automation.

Answer in the Teach session

Automations built with Teach show their questions in the Teach session.

  1. Open the automation.
  2. Click Teach session in the page header.
  3. Find the card labeled Run prompt. It shows the run it belongs to and the question.
  4. Click one of the buttons. For a form, fill in the fields and click Submit. Fields marked with * are required.

The card then reads "Answered by" with your name, your answer and the time. A question that ran out of time reads "Expired without an answer". Admins, managers and members can answer.

Answer on your phone

The mobile app sends a notification such as "Competitor price watch needs your approval" or "Competitor price watch needs your input". Tap it to answer. See Answer a run's question.

Act on the computer itself

Some automations ask you to do something on the run's computer. These requests are listed under User callbacks on the Runs tab and under User Callbacks on the run's details page.

  1. Find the request in the list.
  2. Click Respond. The run's screen opens in a new tab.
  3. Do what the request asks on that screen.

When the time runs out, Respond turns grey and its tooltip reads "Respond disabled: timeout expired".

Note

Home does not list run questions. A run's Room page shows its messages but cannot answer them.

12.9Cloud computers

A cloud computer is a desktop in the cloud that you start yourself and keep until you stop it. You do not need one to run an automation: every run and every Teach session starts its own computer. Start one when you want to work by hand on a desktop in the cloud, for example to edit an automation's script there.

The Start a New Computer card and the empty Your Computers list
Figure 12.5The Start a New Computer card and the empty Your Computers list
  1. Click Menu.
  2. Under Workspace, click Computers. Computers appears after the workspace has at least one automation. The Cloud Computers page opens on its Computers tab.
  3. Under Start a New Computer, type a name in Computer Name 1. If you leave it blank, the name becomes "Sandbox" and the date and time. The Launch Computer button 2 is next to it. Set the options below first.
  4. Set the options, or keep the defaults:
    • Cloud Provider 3: Modal CPU, Modal GPU or Beam CPU.
    • Memory 4: 8 GB (default) or 16 GB.
    • Image Version 5: keep the first option unless Autoworklet support asks you to change it. The first option starts with Default and shows a version number in brackets.
    • Auto-Shutdown (Minutes) 6: the computer shuts down after this many idle minutes. The default is 10. You can enter 1 to 1440.
    • VNC Password (Optional): leave it blank to have a password made for you. HIPAA organizations do not show this field.
  5. Click Launch Computer 2. The button reads "Starting...".
  6. A card for the computer appears under Your Computers. Its status changes from starting to running.
  7. Click Open Computer to open the desktop in a new tab.

Before you start one, Your Computers shows "No computers running" and the sentence "A Teach or Run starts a computer when it needs one. Start one here only if you want a desktop to keep around." 7

Each computer's card has buttons for its state:

Button What it does
Open Computer Opens the desktop in a new tab.
Stop Saves the disk, then shuts the computer down. Start boots it again from the saved disk.
Terminate Shuts the computer down without saving.
Delete Removes a stopped computer. This cannot be undone.

The Files tab on the same page holds your workspace's files. See Your organization's files.

Important

A cloud computer uses your plan like a run. Its running time counts toward your minutes, and it takes one of the runs your plan allows at the same time. On a plan that allows one run at a time, new runs wait while a computer is running. If the computer keeps running for about 2 hours, those runs fail. Stop or terminate computers you are not using.

If something goes wrong

  • Cloud computer not started with a reason: read the reason. If it names minutes or billing, it shows Upgrade plan or Manage billing.
  • "Error starting sandbox. Please try again.": try again.
  • "Enter a whole number of minutes from 1 to 1440, or leave it blank for the 10-minute default.": fix Auto-Shutdown (Minutes).

12.10Your own machines

An organization on the Enterprise plan can run its automations on computers it controls, instead of on cloud computers. Such a computer is a registered machine: a Linux computer with Docker, for example a virtual machine in your office network. A run on a machine can reach the network that the machine is on. It uses none of your plan's minutes, so its Minutes billed box reads 0 min. Each machine takes one of the organization's machine slots, and your contract sets how many slots there are. Registered machines are not available in a HIPAA organization.

  1. Click Menu.
  2. Under Workspace, click Machines. The Machines page opens, with a Pools tab and a Machines tab. Under the title, a line such as "1 of 5 machine slots used" shows the slots.

Without machine slots, the page says "Registered machines need the Enterprise plan with machine slots." To add slots, click Contact us in that message.

Pools

A pool is a group of machines in one place, for example the virtual machines in your office network. You point an automation at a pool, and any ready machine in the pool takes its runs. Admins and managers create and manage the organization's pools.

  1. On the Pools tab, under Create a pool, type a name for the pool.
  2. Click Create pool. A Pool created message appears, and the pool is added to the list.

Each pool has the buttons Settings, Rename, Disable and Delete. Disable stops new runs on the pool, and a run in progress finishes. To delete a pool, first revoke its machines and move its automations back to the cloud.

In Settings:

  • Run time limit (minutes) stops a run that is still going after this time. The default is 120.
  • Queue time limit (minutes) is how long a run waits for a machine before it fails. The default is 120.
  • Runs this pool takes lists the kinds of run the pool accepts, for example schedules and Run now.
  • Runs people outside the organization can start lists shares, embedded widgets, dashboard sites and email triggers. The pool takes none of them until you select them.
  • Under Logins and saved details runs may read, select each login and saved details record that a run on the pool can read. A run on the pool cannot read any other login or saved details record.
  • Under What runs on this pool may use, turn on only what the pool's automations need:
    • Secret fields of saved details lets runs read the secret fields of the saved details you selected.
    • VPN automations lets automations that open a VPN run on the pool.
    • Private network addresses lets runs reach private addresses such as 10.0.0.0/8 and 192.168.0.0/16. It is on for a new pool.
  • Under Who can watch runs on this pool, select Members, Viewers or both to let that role watch the screen of the pool's runs and take control. Admins and managers can always do this. This setting shows only where live view of machine runs is available. See Watch a run on a machine.

Runs on a machine cannot write datasets or records, start other runs, post crew tasks, or use the organization's captcha key. Click Save settings to keep your changes.

Add a machine

Admins and managers add machines to the organization's pools. Members can add their own computers when an admin allows it. See Your own computer.

For an organization pool, the Add a machine dialog lists what the machine needs:

  • A dedicated Linux computer, x86_64 or arm64, with no other interactive users.
  • Docker Engine, installed and running, and systemd, because the machine service is a systemd unit.
  • 60 GB of free disk, because each engine image takes about 9 GB.
  • Outbound HTTPS on port 443, with a proxy and your root certificate where your network needs them. See Machine network requirements.
  • An Autoworklet engine checkout. For now, the machine service runs from a source checkout of an engine release that root owns. The awl command-line tool from the install script cannot run it.
  1. On the Machines page, click Add machine. The Add a machine dialog opens.
  2. If the dialog shows Add it to, select the pool.
  3. Type a name in Machine name (optional), for example finance-vm-01. If you leave it blank, the machine names itself.
  4. Click Make a code. The dialog changes to Register the machine and shows two commands.
  5. Copy the command under 1. Register it and run it on the machine, with the awl of the engine checkout. The code is shown only here.
  6. Copy the command under 2. Start the machine service and run it on the machine. Both commands start with sudo, because every awl machine command needs root.
  7. Watch the checklist under the commands. Connected, Docker ready, Image fetched and Ready each get a green check mark when the machine reports them.
  8. Click Done.

A code works for one hour and registers one machine, which is ready to use. To register many machines with one code, select One code for several machines, such as a golden image. Each one waits for approval. before step 4. Then type a number from 2 to 50 in How many machines. Each machine that this code registers waits until an admin or manager clicks Approve on its row.

Warning

Register only machines whose administrators you trust with your organization's data. The administrators of a machine can read everything that a run on it receives.

Manage machines

On the Machines tab, each machine shows a status:

  • Ready: the machine can take a run.
  • Busy: the machine is doing a run. Click Open its current run to see it.
  • Not ready: a check on the machine failed. The row says what is wrong and how to fix it.
  • Agent outdated: update the awl agent on the machine, then restart its service.
  • Offline: the machine has not called in for more than 5 minutes.
  • Waiting for approval: an admin or manager must click Approve before the machine takes runs.
  • Disabled or Quarantined: the machine takes no runs. See below.

Admins and managers can change every machine. The owner of a member's own computer can change that computer.

  • Disable stops new runs on the machine, and a run in progress finishes. Enable turns it on again.
  • Rename changes the name that the pages show.
  • Revoke signs a machine out for good and frees its slot, and a run that the machine holds ends with an error. To use the computer again, register it with a new code. Revoked machines move under Revoked machines at the end of the list.

If two copies of one machine call in at the same time, the machine becomes Quarantined. This happens, for example, when someone clones a virtual machine after it was registered. A quarantined machine takes no runs, and the organization's admins get an email (and the owner, for a member's own computer). If only one copy is left, click Enable. The machine takes runs again within about one minute. If you need both copies, revoke the machine and register each copy with its own code.

When a machine stops calling in

A machine that has not called in for 5 minutes shows Offline, and it takes no runs until it calls in again. After 15 minutes without a call, Autoworklet sends one email about it:

  • For a machine in an organization pool, the email goes to the organization's admins, not to its managers.
  • For a member's own computer, the email goes only to its owner.

The email, for example "Machine finance-vm-01 is offline", says when the machine last called in. It links to the Machines page and asks you to check that:

  • The computer is on and connected to the internet.
  • The machine service is running. On the machine, run sudo systemctl status awl-machine.
  • The computer can make outbound HTTPS connections on port 443, through your proxy if it uses one.

You get one email each time the machine goes offline. If the machine calls in again and then stops, a new email comes 15 minutes later.

No email comes for:

  • A machine in a disabled pool, or a machine that is disabled or quarantined.
  • A machine that waits for approval, or one that never called in after you registered it.
  • Your own computers while Available for runs is off.

Run an automation on a pool

Admins and managers point an automation at one of the organization's pools. A member can point an automation that they created at their own computers.

  1. Open the automation, then click its Settings tab.
  2. On the Runs on card, click Change. A dialog titled Where this automation runs opens.
  3. Select a pool, or select Cloud to run in the cloud again.
  4. Click Save. The message This automation now runs on machines confirms it.

The Runs on card shows only when you can select a pool for the automation, or when it already runs on one. An admin or manager can move any automation back to the cloud. The owner of the computers that an automation runs on can do this too.

Only the published version runs on a pool. Drafts, tests and Teach runs still run in the cloud. Runs on a pool have self-healing off, and background repair proposes no fixes for the automation. Machines run engine 0.76.0 or newer, and the dialog links to Upgrade the engine when the automation needs a newer one. An automation that installs private packages cannot run on registered machines yet.

While a run waits, its page shows a message such as "Waiting for a machine in Office network." and the state of each machine. If no machine takes the run before the queue time limit of the pool, the run fails. If a machine ends a run, the run's page says why, for example "The machine stopped responding during the run.", with Check the machines. To stop a run on a machine while it waits or runs, click Stop run on its row in the Runs tab. The mobile app can also stop it.

Files on a machine run

A run on a machine finds your organization's files in the same folders as on a cloud computer. See Your organization's files. Before the run starts, the machine copies these folders from Autoworklet:

  • shared_files. The run can change it.
  • my_worklet_files. The run can read it but cannot change it. From its worklets folder, the machine copies only the folder of the automation that runs.
  • The automation's own folder, at /home/headless/worklet_project. The run can read it but cannot change it.

After the run, the machine sends back what the run added, changed or removed in shared_files. Then it deletes its copies. The run's outputs and report are saved as for a run in the cloud. While the run works, the copies are on the machine, where its administrators can read them.

Important

On a cloud computer, a run can change the automation's own folder. On a machine it cannot, and the write fails with the error "Read-only file system". If your script keeps files there for later runs, make it write them to shared_files instead.

Limits:

  • If the folders hold more than 10,000 files or 1,024 MB together, the run does not start. Its error says so.
  • A file of 50 MB or more that the run changed in shared_files is not sent back.
  • A run on an engine older than 0.82.4 can change its copy of my_worklet_files. The machine does not send those changes back.

Watch a run on a machine

You can watch the screen of a run on a machine and take control of it, as on a cloud computer. Each time someone opens the screen, it is recorded in the audit log.

Admins and managers can watch the runs on every pool. Members and viewers can watch only if the pool lets their role watch. An admin or manager selects these roles in the pool's Settings, under Who can watch runs on this pool. Crew workers never see the screen of a run on a machine.

A run on a member's own Windows or macOS computer works on the member's own desktop, and the Machines page shows the computer as Attended. These computers cannot take runs yet (Your own computer). The owner of an Attended computer can watch its runs, unless the owner is a viewer. Anyone else who can watch must ask the owner first (Ask the owner to watch).

The tiles on the Watch tab and the Monitor page do not show the screen of a run on a machine. Open the run's details page instead:

  1. On the Runs tab, click View details on the run. While a machine runs it, the page says "Running on finance-vm-01. You can watch its screen live, or take control."
  2. Click Watch the screen. The screen opens in a new tab, marked Watching.
  3. To use the screen yourself, click Take control. The mark changes to You're in control, and anything you do happens for real. A line under the bar says "The automation keeps running. Its own clicks and typing go on while you are in control."
  4. To only watch again, click Stop controlling. Control has no time limit on a machine.

The run's details page shows no Watch the screen button when:

  • The machine has not started the run yet.
  • Your role cannot watch the runs of the pool, and the run is not on your own Attended computer.
  • Live view of machine runs is not available in your workspace yet.

A live view ends when you close its tab, and when the run ends. It also ends when:

  • The machine is revoked.
  • You leave the organization, or lose the role that lets you watch.
  • Your organization starts to require two-factor authentication, and you signed in without your second factor.
  • The owner of an Attended computer ends the view.

The page then says why the view ended. A view lasts at most one hour, and then a new one opens by itself.

Ask the owner to watch

The screen of a run on another member's Attended computer shows that member's whole desktop. So each time you open it, the owner must allow it first. The run's details page then says, for example, "Running on ada-mac. Its owner must allow you to watch before the screen opens."

  1. Click Watch the screen. The screen says "Waiting for the computer's owner to let you watch..."
  2. Wait for the owner to answer. The owner sees a question on their computer with your sign-in email, and the buttons Allow and Refuse.

The owner has 60 seconds to answer.

  • If the owner clicks Allow, the screen opens.
  • If the owner clicks Refuse, the page says "The computer's owner did not let you watch."
  • If the owner does not answer in 60 seconds, the page says "The computer's owner did not answer in time."
  • If the owner ends the view later, the page says "The computer's owner ended the live view or did not let you watch."

To ask again, click Try again. The owner gets a new question.

The owner also gets a new question when a new view opens by itself. That happens after the one-hour limit, and when the page reconnects.

If the live view stops

What you see What it means and what to do
"This run is waiting for its machine. Its screen opens once the run starts." The machine has not started the run yet. Keep the tab open. The screen appears when the run starts.
"This run is not running, so it has no live screen." The run ended.
"Waiting for the computer's owner to let you watch..." The run is on another member's Attended computer. Wait up to 60 seconds for the owner to answer.
"The computer's owner did not let you watch." The owner clicked Refuse. To ask again, click Try again.
"The computer's owner did not answer in time." The owner did not answer in 60 seconds. To ask again, click Try again.
"The computer's owner did not answer in time. Click Try again to ask again." The owner did not answer in 60 seconds. To ask again, click Try again.
"The computer's owner ended the live view or did not let you watch." The owner ended the view, or refused it. To ask again, click Try again.
"This request to watch has ended. Open the screen again." Your request ended before the screen opened. Click Try again.
"The live view closed because the run ended." The run ended.
"The live view closed because the run's machine was removed." The machine was revoked.
"The live view closed because you no longer have access to it. Your role may have changed, or you were removed from the organization." Your role can no longer watch the runs of the pool, or you left the organization. If you still need to watch, ask an admin.
"Your organization now requires two-factor authentication. Sign in again with your second factor, then click Try again." You signed in without your second factor. If you did not set up two-factor authentication, set it up first (When your organization requires two-factor). Sign out, sign in again with your code, and click Try again.
"This organization requires two-factor authentication. Set up an authenticator app to continue." You clicked Try again before you signed in with your second factor. Do the steps in the row above.
"The live view was closed. The run may have ended, or its machine was removed." The view was closed for another reason. Click Try again. If the view cannot open, the page says why.
"The live view closed after 5 minutes with no activity." Nothing changed on the screen and you did nothing for 5 minutes. Click Watch again.
"This live view reached its one-hour limit. Opening a new one..." Wait. A new view opens by itself.
"This live view reached its data limit. Opening a new one..." Wait. A new view opens by itself.
"The machine dropped the live view. Reconnecting..." Wait. The page tries again by itself.
"Lost the connection to the machine's screen." The page tried 3 times, or the connection to the live view was lost. Click Try again.
"The machine did not join the live view. It may be offline, or its agent may need an update." Check the machine's status on the Machines page. Then click Try again.
"The machine's screen refused the live view." Click Try again.
"Live view of a machine's runs is not available here yet." Live view of machine runs is not available in your workspace yet.

Your own computer

An admin can let members add their own computers. A run on a member's Linux computer runs in a Docker container, on the network that the computer is on. That run never sees the person's desktop, files or Chrome. Windows and macOS computers are coming. A run on one of them works on the member's own desktop, and the Machines page shows the computer as Attended. These computers cannot take runs yet.

  • An admin turns on Let members add their own computers on the Pools tab, under Members' own computers.
  • A member then clicks Add my computer and does the same steps as for any other machine. For now, only a Linux computer with Docker and systemd works.
  • Keep your computer awake while it takes runs. A closed lid still puts a laptop to sleep, and a run in progress then fails.
  • Available for runs turns your computers on or off for runs. When it is off, a run that waits for your computers fails when its queue time runs out.
  • Private network addresses lets runs on your computers reach private addresses, for example your home or office network. It is off until you turn it on.
  • These two switches show under Members' own computers after you make your first code.
  • If you leave the organization, your computers are revoked.

You can point an automation that you created at your own computers, on its Runs on card. An admin or manager can ask to run another automation on your computers:

  1. The admin or manager opens the Runs on dialog of the automation.
  2. They select your computers and click Ask the owner. A message such as "Request sent. It moves once Ada accepts." confirms it, and you get an email.
  3. You open the Machines page. The request shows under Requests to run on your computers.
  4. Click Accept. The message The automation now runs on your computers confirms it.

Until you accept, the automation runs where it ran before. A request that you do not accept expires after 7 days.

12.11Machine network requirements

A registered machine needs no inbound connections. The machine service and each run on it connect out over HTTPS, on TCP port 443. Give this section to the people who run your firewall and proxy.

Hosts to allow

Allow outbound HTTPS on port 443 from the machine to these hosts:

Host Who uses it, and what for
machinesapi-dl7skhcdsq-uc.a.run.app The machine service registers the machine, gets its runs and reports on them.
identitytoolkit.googleapis.com The machine service and each run sign in with the key that each run gets.
securetoken.googleapis.com The machine service and each run keep that sign-in fresh.
createcustomtoken-dl7skhcdsq-uc.a.run.app The machine service and each run renew the run's key during a long run.
firestore.googleapis.com The machine service and each run read and write the run's record and its progress.
firebasestorage.googleapis.com The machine service copies the organization's files in and out. Each run saves its outputs and report.
llm-proxy.autoworklet.com Each run uses it for AI steps in a script.
password-storage.autoworklet.com Each run reads the logins and saved details that the pool lets it read.
mfa.autoworklet.com Each run gets two-factor codes for those logins.
us-central1-autoworklet.cloudfunctions.net Each run sends the notifications that its script sends.
The engine image registry The machine service downloads the engine image of each engine version. Its host names are not published yet. Ask us for them before you set up a machine.
The live view relay The machine service, and the browser of each person who watches, connect to it for live view. Its host name is not published yet, and comes with live view.

Some automations need more:

  • The websites and apps that the automation opens, on the ports they use. The run reaches them through the machine's network.
  • autoworklet--autoworklet-api-fastapi-app.modal.run, when the script makes short links to files that it uploads. Without it, the run uses the full link.
  • The Python Package Index, pypi.org, and the hosts it sends downloads to, when the automation's Packages list extra Python packages. Each run installs them.
  • These three hosts, when the script uses the Google Sheets, Google Calendar or Google Drive service of Autoworklet:
autoworklet--sheets-automation-service-fastapi-app.modal.run
autoworklet--calendar-automation-service-fastapi-app.modal.run
autoworklet--drive-automation-service-fastapi-app.modal.run

Proxy and certificates

The machine service uses the proxy that HTTPS_PROXY, HTTP_PROXY and NO_PROXY name. It does not read a proxy auto-config (PAC) file. install-service saves these settings, with REQUESTS_CA_BUNDLE and SSL_CERT_FILE, in a file that only root can read. sudo does not pass them on by itself, so give them in the command, for example:

Shell
sudo env HTTPS_PROXY=http://proxy.example.com:3128 awl machine install-service

Give the register command the same settings. Each install-service saves only the settings it runs with, so give it all of them every time. To change them later, run install-service again, then run sudo systemctl restart awl-machine.

Each run gets the same proxy settings, but without a user name and password in the proxy address. So the proxy must let the machine through without them. A run cannot reach a proxy at 127.0.0.1 on the machine, and it does not start when the settings name one. If the proxy has a private address, turn on Private network addresses for the pool, or runs do not start.

The machine service trusts the certificates in the operating system's certificate store, and a file that REQUESTS_CA_BUNDLE names. If your proxy inspects TLS, add its root certificate to that store.

Each run also trusts the root certificates that you added to the machine, when the machine service uses a proxy or REQUESTS_CA_BUNDLE. The run's Python, curl and Node trust them, and so does its Chrome, from Chrome version 132. This needs a machine service from engine release 0.84.5 or newer. With an older machine service, a run trusts only the certificates in the engine image. Then exempt the hosts above, and the websites your automations open, from TLS inspection.

What stays closed

Open no inbound port for a machine. The machine only connects out, and nothing at Autoworklet connects to it. It needs no public IP address, no port forwarding and no VPN to Autoworklet. The screen of a run stays on the machine's loopback address, 127.0.0.1. For live view, the machine and the browser of the person who watches each connect out to the relay, which joins the two.

Firewall rules on the machine keep each run off these addresses:

  • Cloud metadata addresses, such as 169.254.169.254 and 168.63.129.16, for every run.
  • Private addresses, such as 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, and the machine itself, unless the pool has Private network addresses on.

A reference setup

  1. Put a dedicated Linux virtual machine in a network segment that can reach the apps your automations use.
  2. Install Docker Engine, and keep 60 GB of disk free for engine images.
  3. Allow outbound TCP port 443 from it to the hosts above, through your proxy if you use one.
  4. Let it use your usual DNS servers. Runs on it look up names through the same servers.
  5. Open no inbound port to it.
  6. Give administrator access to it only to people you trust with your organization's data.
  7. Register it into a pool. Each machine does one run at a time, so add machines to run more at the same time.

12.12Minutes and limits

Runs are measured in execution minutes. Your plan includes a number of minutes each month. For the numbers on each plan, see Plans at a glance.

The minutes line at the top of the Run tab has two parts. The first part counts the minutes used this month against your plan's included minutes. The second part says what happens past them. On Free, runs stop until the month resets or you upgrade. On Starter and Pro, each extra minute is charged at the per-minute rate the line shows.

How a run's minutes are counted

  • A run is billed in whole minutes, rounded up. A run that takes 20 seconds counts as 1 minute.
  • Each attempt is billed on its own. A restart or an automatic retry is a new attempt.
  • Time a run spends paused is not billed.
  • One attempt is never billed more than 120 minutes.
  • Teach builds and cloud computers count toward the same minutes.
  • A run on a registered machine uses no minutes. See Your own machines.
  • Deleting a run does not give its minutes back.

You can see a run's minutes in the Minutes column on the Runs tab and in the Minutes billed box on the run's details page. For the workspace's total, see Check your usage. For the full rules, see How minutes are counted.

Runs at the same time

Each plan allows a set number of runs at the same time. Runs and cloud computers share them. A run that cannot start yet stays Queued, and its tile reads "Waiting for a machine". It tries to start again by itself, first after 1 minute and then at longer and longer gaps, up to about an hour apart. So it can start some time after the other run or computer ends. If it still cannot start after about 2 hours, it ends with the error "Max retries (7) exceeded".

Important

On the Free plan, the included minutes are a hard limit. After they are used, new runs, restarts, Teach sessions and cloud computers are refused until the month resets or you upgrade. See When you reach a limit.

Limits at a glance

Limit Value
Rows in one paste or one Repeat last input… 200
Rows one run handles 5 by default (the Paste table preview shows your automation's number)
Runs one click starts 1 by default
Input data in one run 500,000 bytes. Rows that do not fit wait as Ready.
Rows the grid shows The newest 1,000
Automatic row retries 3 attempts, 1 hour and then 6 hours apart
Billed minutes for one attempt At most 120
How long a paused run is kept 7 days
A run that never gets a computer is closed after 6 hours
Take control 10 minutes at a time. Extend starts the 10 minutes again.
Live tiles on Monitor 12

If something goes wrong

For messages about free minutes or inactive billing, see When you reach a limit.

What you see What it means and what to do
A run stays Queued and its tile reads "Waiting for a machine" Another run or a cloud computer is using your plan's slots. Wait, or stop the other run or computer.
"Max retries (7) exceeded. Last error: ..." The run tried several times to get a computer and gave up. Restart it when the other runs or computers have finished.
"Never started: the platform did not dispatch a machine for this run. It was closed automatically after waiting too long." Restart the run.