Subdag deadlock issue

There r multiple sudbags used in my dag and occasionally it fails becoz of deadlock {} ERROR - (_mysql_exceptions.OperationalError) (1213, ‘Deadlock found when trying to get lock; try restarting transaction’) [SQL: UPDATE task_instance SET state=%s, queued_dttm=%s WHERE task_instance.task_id = %s AND task_instance.dag_id = %s AND task_instance.execution_date = %s] any help I can provide more details

Can you provide the DAG file as well as the SQL?

I have a feeling it may be the SQL that were ran concurrently that causes the deadlock.