hussein-awala commented on issue #29742: URL: https://github.com/apache/airflow/issues/29742#issuecomment-1444749197
This error is not related to Airflow, for that I convert the issue to discussion. You are using code that has not been updated since August 2021, while we have made a lot of changes to Airflow DB and its schema since that date. I suggest using the internal API to delete the dags, for example using the method [delete_dag](https://github.com/apache/airflow/blob/671b88eb3423e86bb331eaf7829659080cbd184e/airflow/api/common/delete_dag.py#L37-L37). And if you want to delete the dags in batch query, you can override the method by replacing `models.TaskInstance.dag_id == dag_id` by `models.TaskInstance.dag_id.in_(list_dag_ids)` -- 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]
