easontm commented on issue #19397:
URL: https://github.com/apache/airflow/issues/19397#issuecomment-961720395


   I also received this error with the following mysql packages:
   ```
   apache-airflow-providers-mysql==2.1.1
   mysql-connector-python==8.0.26
   mysqlclient==2.0.3
   ```
   
   Error:
   ```
   sqlalchemy.exc.OperationalError: (MySQLdb._exceptions.OperationalError) 
(1093, "You can't specify target table 'task_instance' for update in FROM 
clause")
   [SQL: delete from task_instance
           where (task_id, dag_id, execution_date) IN (
               select source.task_id, source.dag_id, source.execution_date
               from task_instance as source
               left join dag_run as dr
               on (source.dag_id = dr.dag_id and source.execution_date = 
dr.execution_date)
               where dr.id is null
           )
       ]
   ```


-- 
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]


Reply via email to