You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/02/24 23:54:33 UTC

[GitHub] [airflow] hussein-awala commented on issue #29742: Dependency rule tried to blank-out primary key column 'serialized_dag.dag_id'

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org