Haruno Knowledge base

Scheduled tasks

A scheduled task sends a prompt to Haruno at the times you choose, with nobody at the keyboard. This page shows how to create one, run it, pause it and read what it did.

  • Mac appAvailable
  • Windows appAvailable

A scheduled task runs a prompt for you at set times. "Every weekday at 9:00, summarise what changed in this folder" is a scheduled task. Haruno does the work by itself and keeps the result, and you read it when you are ready.

Open Scheduled in the navigation pane.

Create a task

Press Create task. If you have none yet, the page says No scheduled tasks yet. Press Use example to start from a ready-made task. It summarises a folder at 9:00, Monday to Friday, and nothing is saved until you press Save.

The New scheduled task window.
The New scheduled task window. Task details has a name, Weekly report, an empty folder field and a prompt. Below is the Schedule section with How often and a list of next runs.The New scheduled task window. Task details has a name, Weekly report, an empty folder field and a prompt. Below is the Schedule section with How often and a list of next runs.
  1. Describe the task

    Under Task details, type a Name and write the Prompt. Say exactly what you want done. AI Optimize beside the prompt turns a one-line idea into a full prompt.

  2. Choose a folder, or leave it empty

    Folder (optional) is where the task works. Press Browse… to pick a folder you already have. If you leave it empty, Haruno creates a folder for the task in Haruno\Scheduled tasks when you save, and the task runs there. Clear empties the field again.

  3. Pick the schedule

    Under Schedule, choose How often: Every N minutes, Every N hours, Daily, Weekly or Monthly. Then pick the time, and for weekly the days. Next runs lists the next few times so you can check it. Times use your PC's time zone, the one set in Windows.

  4. Save

    Press Save. The task is saved and turned On. A task that was saved in some other form shows its schedule as a Custom one and keeps it until you pick another option.

You can also start from a chat. Right-click one of your messages and choose Create scheduled task. The draft starts in the current project's folder. Press Clear to let Haruno make a folder instead.

Look after a task

Click a task to see its details. From there you can:

  • turn it On or Off
  • press Run now, or Stop a run that is in progress
  • open the … menu to Edit or Delete it
  • read the Run history and press Open transcript on a run to read exactly what happened

Delete removes the task and its run history for good, after you confirm. Files it wrote in its folder stay.

A number on Scheduled in the navigation pane counts runs that finished since you last looked. When a run ends, the status bar also says Scheduled task 'name' completed or failed.

For missed times, a task that runs late and automatic retries, see When runs are late, missed or retried.

Haruno has to be running

Tasks run only while Haruno is open. Turn on Launch at startup in Settings ▸ General and Haruno starts in the system tray when you sign in to Windows.

What a run is allowed to do

Nobody is there to approve a card. So in a scheduled run:

  • a tool set to Confirm is refused instead of waiting for you, and the run reports that the step needed approval
  • a tool set to Off stays off
  • other actions that would normally ask go ahead
  • a task never uses the Bypass permission mode, whatever the chat uses
  • a task that tries to send data off the computer is refused and ends as Failed

The advanced view shows a note in the editor: Scheduled runs never use Bypass. They ask before sending data off this computer, and refuse when nobody is there.

If a task keeps stopping at the same step, set that tool to On in Settings ▸ Connectors (advanced view).

No Waiting queue on Windows

The Mac app can hold an email or a calendar invitation until you approve it. The Windows app has no such queue. A step that needs approval is refused and the run says so, so tell customers to keep scheduled tasks to work that needs no approval, such as reading a folder and writing a file in it.

Last updated · PR #2944 · View this version on GitHub

History (1 version)
  1. Internal knowledge base for staff: site, reader keys, assistant, 197 pages and the PR rule (#2944)
    What changed
    @@ -0,0 +1,74 @@
    +---
    +title: Scheduled tasks
    +summary: A scheduled task sends a prompt to Haruno at the times you choose, with nobody at the keyboard. This page shows how to create one, run it, pause it and read what it did.
    +feature: scheduled-tasks
    +covers:
    +  - windows-client/haruno-webview/web/src/pages/ScheduledTasksPage.tsx
    +  - windows-client/haruno-webview/web/src/pages/ScheduledTaskEditorDrawer.tsx
    +  - windows-client/Haruno.Desktop.Services/Scheduling/ScheduledTaskExecutor.cs
    +  - windows-client/Haruno.Desktop.Core/Contracts/Scheduling/IScheduledTaskScheduler.cs
    +---
    +
    +A **scheduled task** runs a prompt for you at set times. "Every weekday at 9:00, summarise what changed in this folder" is a scheduled task. Haruno does the work by itself and keeps the result, and you read it when you are ready.
    +
    +Open **Scheduled** in the navigation pane.
    +
    +## Create a task
    +
    +Press **Create task**. If you have none yet, the page says **No scheduled tasks yet**. Press **Use example** to start from a ready-made task. It summarises a folder at 9:00, Monday to Friday, and nothing is saved until you press **Save**.
    +
    +<Shot src="/m/97d757a0c8e0-windows-automation-scheduled-editor-light.png" dark="/m/a44cb8a088a3-windows-automation-scheduled-editor-dark.png" alt="The New scheduled task window. Task details has a name, Weekly report, an empty folder field and a prompt. Below is the Schedule section with How often and a list of next runs." caption="The New scheduled task window." />
    +
    +<Steps>
    +<Step title="Describe the task">
    +Under **Task details**, type a **Name** and write the **Prompt**. Say exactly what you want done. **AI Optimize** beside the prompt turns a one-line idea into a full prompt.
    +</Step>
    +<Step title="Choose a folder, or leave it empty">
    +**Folder (optional)** is where the task works. Press **Browse…** to pick a folder you already have. If you leave it empty, Haruno creates a folder for the task in `Haruno\Scheduled tasks` when you save, and the task runs there. **Clear** empties the field again.
    +</Step>
    +<Step title="Pick the schedule">
    +Under **Schedule**, choose **How often**: **Every N minutes**, **Every N hours**, **Daily**, **Weekly** or **Monthly**. Then pick the time, and for weekly the days. **Next runs** lists the next few times so you can check it. Times use your PC's time zone, the one set in Windows.
    +</Step>
    +<Step title="Save">
    +Press **Save**. The task is saved and turned **On**. A task that was saved in some other form shows its schedule as a **Custom** one and keeps it until you pick another option.
    +</Step>
    +</Steps>
    +
    +You can also start from a chat. Right-click one of your messages and choose **Create scheduled task**. The draft starts in the current project's folder. Press **Clear** to let Haruno make a folder instead.
    +
    +## Look after a task
    +
    +Click a task to see its details. From there you can:
    +
    +- turn it **On** or **Off**
    +- press **Run now**, or **Stop** a run that is in progress
    +- open the **…** menu to **Edit** or **Delete** it
    +- read the **Run history** and press **Open transcript** on a run to read exactly what happened
    +
    +**Delete** removes the task and its run history for good, after you confirm. Files it wrote in its folder stay.
    +
    +A number on **Scheduled** in the navigation pane counts runs that finished since you last looked. When a run ends, the status bar also says *Scheduled task 'name' completed* or *failed*.
    +
    +For missed times, a task that runs late and automatic retries, see [When runs are late, missed or retried](/windows/automation/scheduled-runs/).
    +
    +<Callout variant="warning" title="Haruno has to be running">
    +Tasks run only while Haruno is open. Turn on **Launch at startup** in **Settings ▸ General** and Haruno starts in the system tray when you sign in to Windows.
    +</Callout>
    +
    +## What a run is allowed to do
    +
    +Nobody is there to approve a card. So in a scheduled run:
    +
    +- a tool set to **Confirm** is refused instead of waiting for you, and the run reports that the step needed approval
    +- a tool set to **Off** stays off
    +- other actions that would normally ask go ahead
    +- a task never uses the Bypass permission mode, whatever the chat uses
    +- a task that tries to send data off the computer is refused and ends as **Failed**
    +
    +The advanced view shows a note in the editor: *Scheduled runs never use Bypass. They ask before sending data off this computer, and refuse when nobody is there.*
    +
    +If a task keeps stopping at the same step, set that tool to **On** in **Settings ▸ Connectors** (advanced view).
    +
    +<Callout variant="info" title="No Waiting queue on Windows">
    +The Mac app can hold an email or a calendar invitation until you approve it. The Windows app has no such queue. A step that needs approval is refused and the run says so, so tell customers to keep scheduled tasks to work that needs no approval, such as reading a folder and writing a file in it.
    +</Callout>