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
- Open Tasks and select New task. You can also start a task from a catalog, connection, or segment.
- Write instructions or start from a suggestion. Include the thresholds to check, what counts as noteworthy, and the context the task needs.
- Choose Manually or set a schedule that matches how often your data changes.
- 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:
- Code task: run Python or Bash in an isolated environment.
- Synchronizer task: copy tables from an external catalog, or files from a bucket, into a catalog on a schedule.
- dbt task: run a dbt project from a connected repository to transform data in a catalog.
- dlt task: load source data into a catalog with a Python pipeline.
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
- Ask Altertable: natural-language analysis and monitoring
- Notifications: the findings that tasks produce
- Memories: knowledge agents carry across runs