---
title: "Schedule"
description: "One-time runs and repeating cron tasks for agents and workflows."
canonical_url: "https://docs.vettero.com/activity/schedule"
---
# Schedule

> One-time runs and repeating cron tasks for agents and workflows.

**Schedule** is under **Activity → Schedule**. It has two kinds of jobs plus shared **Analytics** and **Logs**.

- **One-time** — run a top-level **agent** or **workflow** at a datetime or after a timeout. Optional **input** matches the target’s input schema. Jobs are backed by the workspace job runner (Agenda). After a successful or failed run, the one-time row is removed from the list.
- **Repetitive** — a cron expression (UTC) that fires a **handler workflow** or a mapped resource, the same routing model as [event handlers](https://docs.vettero.com/build/event-handlers). Existing cron handlers from Event handlers appear here.

## When to use

- Run an agent or workflow once at a set time, or after a number of minutes
- Repeat work on a clock (nightly cleanup, hourly sync) without an external scheduler
- Review run volume and individual attempts on **Analytics** and **Logs**

## One-time

Open **Activity → Schedule → One-time**. Use the **Create one-time schedule** panel:

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Name
      </strong>
    </td>
    
    <td>
      Required label
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Trigger mode
      </strong>
    </td>
    
    <td>
      <strong>
        Specific time
      </strong>
      
       or <strong>
        Timeout (minutes)
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Scheduled at
      </strong>
    </td>
    
    <td>
      Calendar datetime (specific time mode)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Timeout (minutes)
      </strong>
    </td>
    
    <td>
      Integer ≥ 1 (timeout mode)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Target type
      </strong>
    </td>
    
    <td>
      Agent or Workflow
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Target
      </strong>
    </td>
    
    <td>
      Eligible top-level agent or workflow (general channel, not linked)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Input
      </strong>
    </td>
    
    <td>
      Values for the target’s input schema when it has one
    </td>
  </tr>
</tbody>
</table>

Choose **Create schedule**. From the list you can **Edit schedule** (target is locked) or delete.

Statuses include **pending**, **running**, **success**, and **failed**.

## Repetitive

Open **Activity → Schedule → Repetitive**. Click **Create task**, set a name and **cron expression**, then configure mapping in **Setup** (free-form handler workflow or a mapped resource). Enable or disable the task like any event handler.

Cron expressions run in **UTC**. Event args include `args.cron` (the expression that fired).

**Run now** on the task fires that same workflow once, without waiting for the next tick and without changing the schedule. It works while the task is disabled. The repeating job still runs only while the task is enabled. The attempt shows up on **Logs**.

Typical uses:

- Nightly or weekly jobs: digest, report, or [query](https://docs.vettero.com/build/queries)
- Recurring sync without an external scheduler
- Cleanup: archive stale [table](https://docs.vettero.com/data/tables) rows or retry failed work on a clock

## Analytics and logs

**Analytics** charts run volume. **Logs** lists individual one-time runs (`schedule.run`) and repetitive fires (`event-handler.fire`), including skipped and failed attempts. Open a log row to jump to the one-time list or that repetitive task.

Each repetitive task also has its own Analytics and Logs on the task detail.

## Use schedule blocks in agents and workflows

In the builder, system **schedule** blocks still create **one-shot** jobs only:

<table>
<thead>
  <tr>
    <th>
      Block
    </th>
    
    <th>
      What it does
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        <a href="https://docs.vettero.com/build/workflows/blocks/schedule/now">
          Schedule Now
        </a>
      </strong>
    </td>
    
    <td>
      Run the target immediately via the scheduler
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        <a href="https://docs.vettero.com/build/workflows/blocks/schedule/create">
          Create Schedule
        </a>
      </strong>
    </td>
    
    <td>
      Create a one-shot schedule
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        <a href="https://docs.vettero.com/build/workflows/blocks/schedule/get">
          Get Schedule
        </a>
      </strong>
    </td>
    
    <td>
      Read schedule details
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        <a href="https://docs.vettero.com/build/workflows/blocks/schedule/update">
          Update Schedule
        </a>
      </strong>
    </td>
    
    <td>
      Change timing
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        <a href="https://docs.vettero.com/build/workflows/blocks/schedule/delete">
          Delete Schedule
        </a>
      </strong>
    </td>
    
    <td>
      Remove a schedule
    </td>
  </tr>
</tbody>
</table>

Pass input with path bindings or Liquid-aware fields; use `env.*` for secrets as described in [Variables](https://docs.vettero.com/concepts/variables).

## Limits

- One-time targets must be general agents or workflows.
- Repetitive tasks use event-handler mapping (handler workflow or an existing resource).
- Inactive repetitive tasks do not fire.

## Where schedules are used

<table>
<thead>
  <tr>
    <th>
      Place
    </th>
    
    <th>
      How
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Schedule UI
      </strong>
    </td>
    
    <td>
      One-time and repetitive create/edit, plus analytics and logs
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        <a href="https://docs.vettero.com/build/agents">
          Agents
        </a>
        
         / <a href="https://docs.vettero.com/build/workflows">
          workflows
        </a>
      </strong>
    </td>
    
    <td>
      <code>
        schedule.*
      </code>
      
       blocks (one-shot only)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Runtime
      </strong>
    </td>
    
    <td>
      Job runner starts a session (one-time) or the handler flow (cron)
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
