The GitHub Actions job "Tests (AMD)" on airflow.git/fix-k8s-executor-scoped-session-detach has succeeded. Run started by GitHub user kaxil (triggered by kaxil).
Head commit for run: 98cddf305e424eeff4cfac808d8362f764c7f5f5 / Kaxil Naik <[email protected]> Fix scheduler crashloop from KubernetesExecutor completed-pod adoption The completed-pod adoption helper _alive_other_scheduler_job_ids (added in #66400) opened a scoped create_session(). try_adopt_task_instances runs inside the scheduler thread, so a scoped session resolves to the scheduler own in-flight session from adopt_or_reset_orphaned_tasks. The context manager commit()/close() on exit then committed the scheduler transaction early (releasing its FOR UPDATE SKIP LOCKED row locks) and detached the orphaned TaskInstances it still held, so the reset path crashed with DetachedInstanceError and the scheduler crashlooped (#67813). Use an independent create_session(scoped=False) so the helper never touches the caller transaction. Report URL: https://github.com/apache/airflow/actions/runs/26763039966 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
