The GitHub Actions job "Tests" on airflow.git/fix/kubernetes-cleanup-import-error has failed. Run started by GitHub user Eason09053360 (triggered by Eason09053360).
Head commit for run: de00eefd0f54582b559230982f095607d55cd303 / Eason09053360 <[email protected]> Fix ModuleNotFoundError in kubernetes cleanup cronjob The kubernetes cleanup cronjob command was importing from tests_common which is not available in production environments, causing ModuleNotFoundError when running the cronjob. Changes: - Import create_scheduler_operator conditionally within AIRFLOW_V_3_0_PLUS block to avoid import errors in older versions where it may not exist - Use create_scheduler_operator to serialize tasks before creating TaskInstance, ensuring compatibility with Airflow 3.0+ which requires serialized operators for proper TaskInstance initialization - Pass dag_version_id as constructor parameter (required in Airflow 3.0+) This ensures the cleanup cronjob works correctly in production Kubernetes environments running Airflow 3.0+. Report URL: https://github.com/apache/airflow/actions/runs/21834833415 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
