tirkarthi commented on issue #27913: URL: https://github.com/apache/airflow/issues/27913#issuecomment-1327983826
I couldn't reproduce this on main branch with dry_run as false. There are also tests for this endpoint testing the response to return the list of task instances at https://github.com/apache/airflow/blob/518fd8479a1b9bfe303e184672231b6bc84687db/tests/api_connexion/endpoints/test_task_instance_endpoint.py#L891 ``` http -a admin:admin POST :8080/api/v1/dags/example_branch_datetime_operator/clearTaskInstances 'task_ids:=["datetime_branch"]' only_failed:=false dry_run:=false HTTP/1.1 200 OK Connection: close Content-Length: 690 Content-Type: application/json Date: Sat, 26 Nov 2022 05:21:31 GMT Server: Werkzeug/2.2.2 Python/3.10.6 X-Robots-Tag: noindex, nofollow { "task_instances": [ { "dag_id": "example_branch_datetime_operator", "dag_run_id": "manual__2022-11-26T04:48:39.482400+00:00", "execution_date": "2022-11-26T04:48:39.482400+00:00", "task_id": "datetime_branch" }, { "dag_id": "example_branch_datetime_operator", "dag_run_id": "manual__2022-11-26T05:14:27.022615+00:00", "execution_date": "2022-11-26T05:14:27.022615+00:00", "task_id": "datetime_branch" }, { "dag_id": "example_branch_datetime_operator", "dag_run_id": "scheduled__2022-11-25T00:00:00+00:00", "execution_date": "2022-11-25T00:00:00+00:00", "task_id": "datetime_branch" } ] } ``` -- 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]
