Skip to content

Airflow v1 REST List task instances api can not get no_status task instance #13531

Description

@li1234yun

Apache Airflow version:
2.0

Environment:

  • OS ubuntu 18.04
  • Kernel 5.4.0-47-generic

What happened:
When I use list task instances REST api, I can not get the instances that status is no_status.

### Get Task Instances
POST  {{baseUrl}}/dags/~/dagRuns/~/taskInstances/list
Authorization: Basic admin:xxx
Content-Type: application/json

{
  "dag_ids": ["stop_dags"]
}

or 

{
    "dag_ids": ["stop_dags"],
    "state": ["null"]
}

What you expected to happen:
include all state task instances when I don't have specific states.

How to reproduce it:
use REST test tools like postman to visit the api.

Anything else we need to know:
I can not find the REST api that I get all the dag runs instances with specific state, maybe should extend the REST api.

Thanks!

Metadata

Metadata

Assignees

Labels

area:APIAirflow's REST/HTTP APIkind:bugThis is a clearly a bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions