List Tasks
GET
/api/v1/tasks/{database}/{schema}
const url = 'https://example.com/api/v1/tasks/example/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/tasks/example/exampleList all tasks in a schema.
Args: database: Database name schema: Schema name
Returns: TaskListResponse with list of tasks
Raises: HTTPException: If listing tasks fails
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”database
required
Database
Database name
string
Database name
schema
required
Schema
Schema name
string
Schema name
Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
TaskListResponse
Response model for listing tasks.
object
tasks
required
Tasks
List of tasks
Array<object>
TaskInfoTask information model.
object
name
required
Name
Task name
string
database_name
required
Database Name
Database name
string
schema_name
required
Schema Name
Schema name
string
state
required
State
Task state (STARTED, SUSPENDED)
string
allow_overlapping_execution
Allow Overlapping Execution
Allow concurrent executions
boolean
predecessor_tasks
Predecessor Tasks
List of predecessor task names
Array<string>
dependent_tasks
Dependent Tasks
List of dependent task names
Array<string>
suspend_task_after_num_failures
Suspend Task After Num Failures
Auto-suspend after N failures
integer
database_name
required
Database Name
Database name
string
schema_name
required
Schema Name
Schema name
string
total_count
required
Total Count
Total number of tasks
integer
Example
{ "tasks": [ { "allow_overlapping_execution": false, "suspend_task_after_num_failures": 10 } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}