The GitHub Actions job "Tests (AMD)" on airflow.git/fix-scheduler-orphan-adoption-detached-tis has succeeded. Run started by GitHub user akhilpratap1991 (triggered by eladkal).
Head commit for run: 5af83ea4fa4036874ca9a1b08e88cb336b0a539d / Akhil Pratap Singh <[email protected]> Reproduce executor-side session detachment via scoped session in test Review asked for the concrete code path that detaches the TaskInstances rather than simulating it with session.expunge(). The mechanism is the executor opening and closing a scoped session while adopting: create_session() returns the scheduler's own thread-scoped session and closes it on exit, expunging everything the orphan query loaded. KubernetesExecutor's completed-pod adoption did exactly this from #66400 until #67850, and released providers up to 10.17.x still ship it (the combination Airflow 3.2.2 constraints pin). The mock now performs that exact operation, so the test exercises the production mechanism end-to-end instead of hand-detaching instances. Report URL: https://github.com/apache/airflow/actions/runs/31358775023 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
