What are Tasks?
Tasks are saved SQL queries or Python scripts that you can run on demand or schedule. Use them to:- Save queries you run frequently
- Transform data before analysis
- Create reusable building blocks for pipelines
Creating a Task
1
Go to Tasks
Click Tasks in the sidebar, then click + New Task
2
Choose Task Type
Select SQL or Python depending on your needs
3
Select a Connector
Choose which database to run the query against
4
Write Your Query
Enter your SQL query or Python code in the editor
5
Test It
Click Run to preview the results
6
Save
Give your task a name and description, then click Save
SQL Tasks
SQL tasks run queries against your connected databases.Example: Monthly Sales Summary
Using Parameters
Make your tasks dynamic with parameters:start_date, end_date, and region.
Python Tasks
Python tasks let you run Python scripts for advanced transformations.Example: Data Cleaning
Running Tasks
Run Manually
- Open the task
- Enter any required parameters
- Click Run
- View results in the preview pane
Run via Pipeline
Tasks can be chained together in pipelines for automated execution.Task Status
Best Practices
Use Descriptive Names
“monthly_revenue_by_region” not “query_1”
Add Comments
Explain what the query does and why
Test Before Saving
Always run and verify results first
Use Parameters
Make tasks flexible and reusable