Understand how workflows run
What happens each time a workflow runs: its effort level, where it runs, what it does when your computer is busy or offline, and how it works with nobody watching.
Each time a trigger starts a workflow, Polar makes a new task and runs the workflow's command in it. This page covers the rules those runs follow.
What every run uses
A run takes its settings from the workflow, not from the trigger that started it. They are under Settings on the workflow's page:
| Setting | What it sets |
|---|---|
| Effort | How hard Polar works on each run: Low, Medium, High, or Extra High. Higher levels use more credits. |
| Runs on | The one computer the runs use: This Mac or This PC, another of your computers that has the workflow's profile, or Polar's Computer. |
Every trigger on a workflow shares these settings. To run the same job at two effort levels, or on two computers, pick Duplicate from the workflow's ⋯ menu and change the copy.
When your computer is asleep or offline
This applies to workflows that run on your own computer. A workflow on Polar's Computer starts right away.
When a trigger fires and the computer can't take the run, the run waits:
- Its task says Waiting for the computer, and offers to move it to a computer that's online or to Stop it.
- The run shows as queued under Recent runs. A webhook or app trigger also shows how many of its runs are waiting.
- The run starts on its own when Polar is open on that computer again.
Runs don't wait forever, and they don't pile up without end:
- A run that has waited two days is dropped and shows as didn't run.
- A schedule keeps one run waiting at most. Its later times are skipped until that run starts.
- Webhooks and app events each get their own waiting run. If too many are already waiting for an offline computer, new ones start no run. Recent runs shows them as runs skipped, and a webhook call gets an error back.
If a workflow has to run whether or not your computer is on, set Runs on to Polar's Computer. Runs that were waiting move there and start. See Run tasks on Polar's Computer.
When your computer is busy
Polar runs only a few workflows at a time on a computer, so it stays fast for you. When more are due at once, the rest wait their turn:
- The task says Queued on the computer. It starts on its own once things free up.
- To skip the wait, click Start now, or Run on Polar's Computer where it's offered.
- A schedule set for a time when a lot of your workflows run shows May start late. Click See options for what you can do.
Only runs that triggers start wait their turn like this. A task you start yourself doesn't. How much runs at once on a computer follows Parallel tasks in Settings → Agent there.
When you're out of credits
A workflow uses credits every time it runs, so triggers start nothing while you're out:
- A schedule skips its times. When you have credits again, a schedule whose time has passed runs once, then goes back to its usual times.
- A webhook call gets an error back, and can be sent again later.
- A run that was waiting for its computer is cancelled when its turn comes. Its task says it was skipped because you're out of credits.
What a run does with nobody watching
A run that a trigger starts works like a task you start yourself. It follows the workflow's instructions, uses your connected apps and the sign-ins on the computer it runs on, and reads the workflow's memories. Two things are different:
- Polar knows nobody is watching. If it needs you, for a sign-in or a question, it pauses and asks, the same way a task does. The run shows as needs input until you answer.
- It can pause its own workflow. If the instructions say when the job is done, like "stop once the package is delivered," and Polar confirms that has happened, it pauses the workflow's triggers and says so in its last message. Turn them back on from the workflow's page.
When a workflow works toward a goal, say in its instructions what done looks like, so Polar knows when to stop.
Read a workflow's run history
Recent runs on the workflow's page lists each run with its status:
| Status | What it means |
|---|---|
| running | Polar is working on it. |
| completed | It finished. |
| needs input | It's waiting for you to answer or sign in. |
| queued | It's waiting for its computer. |
| stopped | It was stopped before it finished. |
| failed | It hit an error. |
| didn't run | It was cancelled before it started: its trigger was paused or removed, the workflow was archived, you were out of credits, or it waited too long. |
The Workflows page also sorts workflows by state. Use the filter to show Needs attention, Active, Inactive, Manual, or Archived:
- Active: at least one trigger is on.
- Inactive: every trigger is paused.
- Manual: it has no triggers, so it runs only when you start it.
- Needs attention: its last run failed, or its triggers can't fire, for example because its computer hasn't been online for a day.
- Archived: hidden until you pick it in the filter.
What pausing, archiving, and deleting do
| Action | Triggers | Afterward |
|---|---|---|
| Pause | Kept, but start nothing | Turn them back on any time. |
| Archive | Kept with all settings, but start nothing | Nothing can be changed until you Unarchive. Triggers you had paused stay paused. |
| Delete | Removed | Can't be undone. The tasks its triggers started are deleted too, except ones you chatted in. |
Each of these also cancels the runs those triggers had waiting to start. Pausing and archiving don't stop a run that has already started.
After you resume or unarchive, schedules pick up at their next time, and the times that passed in between don't run.
Related
Start a workflow from a webhook
Call a workflow's webhook from your own code or another service: the request, the response, how to avoid duplicate runs, and how to reply on a run's task.
Manage sign-ins and passwords
Save passwords and cards so Polar can sign in and check out for you, and see what happens when a site asks for a code.