yakovlef commented on issue #77493:
URL: https://github.com/apache/airflow/issues/77493#issuecomment-7109265969

   hey, looked into this. it's mysql only because 
with_row_locks(key_share=True) is FOR NO KEY UPDATE on postgres, which doesn't 
block the FK check, but plain FOR UPDATE on mysql, so the insert waits for the 
scheduler commit.
   
   the FK only does ON DELETE CASCADE now, _store_task_state already checks the 
DagRun and 404s if it's gone (#72907). so I'd drop 
task_state_store_dag_run_fkey in a migration and delete the rows explicitly 
where dag runs get deleted (api, db clean).
   
   happy to do the PR if that sounds ok


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