tirkarthi commented on issue #23421:
URL: https://github.com/apache/airflow/issues/23421#issuecomment-1117361031
@bbovenzi I am working on this issue. What would be the response when the
task is run successfully? Currently, the old API returns a json string "Sent
<TaskInstance: hello.make_list scheduled__2022-04-10T10:11:29.850751+00:00
[success]> to the message queue, it should start any moment now." I am
returning below but returning task instance queued also seems better.
```
http -a test:test post
:8080/api/v1/dags/hello/dagRuns/scheduled__2022-04-10T10:11:29.850751+00:00/taskInstances/make_list/run
ignore_ti_state:=true ignore_task_deps:=true ignore_all_deps:=true
map_index:=-1
HTTP/1.0 200 OK
Access-Control-Allow-Headers:
Access-Control-Allow-Methods:
Access-Control-Allow-Origin:
Content-Length: 164
Content-Type: application/json
Date: Wed, 04 May 2022 13:31:24 GMT
Server: Werkzeug/1.0.1 Python/3.10.4
X-Robots-Tag: noindex, nofollow
{
"success": "Sent <TaskInstance: hello.make_list
scheduled__2022-04-10T10:11:29.850751+00:00 [success]> to the message queue, it
should start any moment now."
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]