zorseti commented on issue #8521:
URL: https://github.com/apache/airflow/issues/8521#issuecomment-643755226


   I encountered the same problem. Is this problem solved now?
   The following two SQL statements will report an error:
   ERROR - (_mysql_exceptions.OperationalError) (1213, 'Deadlock found when 
trying to get lock; try restarting transaction')
   `SQL: INSERT INTO rendered_task_instance_fields (dag_id, task_id, 
execution_date, rendered_fields) VALUES (%s, %s, %s, %s)`
   `SQL: DELETE FROM rendered_task_instance_fields WHERE 
rendered_task_instance_fields.dag_id = %s AND 
rendered_task_instance_fields.task_id = %s AND 
(rendered_task_instance_fields.dag_id, rendered_task_instance_fields.task_id, 
rendered_task_instance_fields.execution_date) NOT IN (SELECT subq1.dag_id, 
subq1.task_id, subq1.execution_date 
   FROM (SELECT rendered_task_instance_fields.dag_id AS dag_id, 
rendered_task_instance_fields.task_id AS task_id, 
rendered_task_instance_fields.execution_date AS execution_date 
   FROM rendered_task_instance_fields 
   WHERE rendered_task_instance_fields.dag_id = %s AND 
rendered_task_instance_fields.task_id = %s ORDER BY 
rendered_task_instance_fields.execution_date DESC 
    LIMIT %s) AS subq1)`


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to