didip commented on issue #13145:
URL: https://github.com/apache/airflow/issues/13145#issuecomment-756937687
What about something like this?
```
GET /dags/{dag_id}/dagRuns/{dag_run_id}/gantt
```
```
// Response
{
tasks: [
{
name: begin1,
start: unix-timestamp,
end: unix-timestamp,
duration: in-seconds,
try_number: 1
tasks: [
{
name: middle1
start: unix-timestamp,
end: unix-timestamp,
duration: in-seconds,
try_number: 1,
tasks: []
},
{
name: middle1
start: unix-timestamp,
end: unix-timestamp,
duration: in-seconds,
try_number: 2,
tasks: []
}
]
},
{
name: begin2
start: unix-timestamp,
end: unix-timestamp,
duration: in-seconds,
try_number: 1,
tasks: [
{
name: middle2
start: unix-timestamp,
end: unix-timestamp,
duration: in-seconds,
try_number: 1,
tasks: [
name: end2
start: unix-timestamp,
end: unix-timestamp,
duration: in-seconds,
try_number: 1,
tasks: []
]
},
]
},
]
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]