Get Task
GET
/api/v1/tasks/{database}/{schema}/{task_name}
const url = 'https://example.com/api/v1/tasks/example/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/example/exampleGet information about a specific task.
Args: database: Database name schema: Schema name task_name: Task name
Returns: TaskInfo with task details
Raises: HTTPException: If task not found or request 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
task_name
required
Task Name
Task name
string
Task name
Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
TaskInfo
Task 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
Example
{ "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" } ]}