Skip to content
DocumentationAutomation

Tasks

Tasks automate work you want to repeat: monitor metrics, check data quality, or investigate changes. Run a task manually or set a schedule.

Give the agent instructions and relevant context, such as a catalog, connection, segment, or metric. When it finds something worth your attention, it sends a notification.

For a recurring metric check, include the metric definition and the data it should query.

Create a task

  1. Open Tasks and select New task. You can also start a task from a catalog, connection, or segment.
  2. Write instructions or start from a suggestion. Include the thresholds to check, what counts as noteworthy, and the context the task needs.
  3. Choose Manually or set a schedule that matches how often your data changes.
  4. Select Create task. For a manual run, open the task menu and select Run now.

Specialized tasks

For workflows such as loading or transforming data, choose a specialized task:

Run privileges and secrets

Review Run privileges before saving a task. A task can use its creator's current permissions, a specific set of permissions, or a service account. Creator-mode actions are attributed to the creator. Only administrators can operate tasks that run as a service account.

When an agent needs a task secret, enter it through the secret-entry form it opens. For code tasks, configure the required environment variables in the task settings. Keep credentials out of the instructions and source code.

Inspect a run

Open a task's run history to inspect its status, output, and logs. Failed runs can produce a finding with a proposed fix; review that finding and the failed step before rerunning. Repeated failures can add comments to the existing finding rather than creating a separate notification each time.

Learn more