-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Closed
Labels
kind:bugThis is a clearly a bugThis is a clearly a bug
Description
Apache Airflow version: 1.10.12
the code of the function delete_dag in /airflow/api/client/json_client.py
def delete_dag(self, dag_id):
endpoint = '/api/experimental/dags/{}/delete_dag'.format(dag_id)
url = urljoin(self._api_base_url, endpoint)
data = self._request(url, method='DELETE')
return data['message']the code of the function delete_dag in /airflow/www/api/experimental/endpoints.py
@csrf.exempt
@api_experimental.route('/dags/<string:dag_id>', methods=['DELETE'])
@requires_authentication
def delete_dag(dag_id):
"""
Delete all DB records related to the specified Dag.
"""
try:
count = delete.delete_dag(dag_id)
...I found the endpoint is diffent with the route of delete_dag, this should be a bug
Metadata
Metadata
Assignees
Labels
kind:bugThis is a clearly a bugThis is a clearly a bug