yakovlef opened a new pull request, #77815: URL: https://github.com/apache/airflow/pull/77815
closes: #77493 on mysql the FK check on task_state_store insert waits for the scheduler's lock on the dag_run row. the FK only did ON DELETE CASCADE, so I dropped it and delete the rows explicitly instead - migration 0159 drops the FK, downgrade removes orphans and adds it back - rows are deleted with the dag run (api single/bulk delete, get_or_create_dagrun), since state is read by dag_id + run_id and a new run with the same run_id would see them - db clean also removes orphans, whatever expires_at is --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) I proposed the approach in the issue, used claude code as a coding assistant for the fix and tests, reviewed and tested everything locally by myself (breeze, mysql + postgres) -- 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]
