Skip to content

Airflow DB clean up DAG not working with recent versions #6531

@kosteev

Description

@kosteev

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/python-docs-samples/blob/9c71acbdf534defb400212ea68cf8359e3a3c4c3/composer/workflows/airflow_db_cleanup.py

Did you change the file? If so, how?

  • "age_check_column": DagModel.last_scheduler_run,
  • "age_check_column": DagModel.last_parsed_time,

Describe the issue

Starting from Airflow 2.0.2 last_scheduler_run column renamed into last_parsed_time in DagModel.
https://github.com/apache/airflow/blob/96656527fed515d8f39bbbec5d6a155faae2aaa2/CHANGELOG.txt#L369

Metadata

Metadata

Assignees

Labels

api: composerIssues related to the Cloud Composer API.samplesIssues that are directly related to samples.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions