Skip to content

Commit d1d77c5

Browse files
authored
Composer db cleanup dag (GoogleCloudPlatform#11091)
* The execution_date attribute is no longer supported by the TaskFail model as the column was dropped in migration 48925b2719cb[1] which belongs to Airflow 2.3.0 [1] https://airflow.apache.org/docs/apache-airflow/stable/migrations-ref.html * The execution_date attribute is no longer supported by the TaskFail model as the column was dropped in migration 48925b2719cb [1] which belongs to Airflow 2.3.0 [1] https://airflow.apache.org/docs/apache-airflow/stable/migrations-ref.html
1 parent 01d1fb5 commit d1d77c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composer/workflows/airflow_db_cleanup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
},
110110
{
111111
"airflow_db_model": TaskInstance,
112-
"age_check_column": TaskInstance.execution_date
112+
"age_check_column": TaskInstance.start_date
113113
if AIRFLOW_VERSION < ["2", "2", "0"]
114114
else TaskInstance.start_date,
115115
"keep_last": False,
@@ -174,7 +174,7 @@
174174
DATABASE_OBJECTS.append(
175175
{
176176
"airflow_db_model": TaskFail,
177-
"age_check_column": TaskFail.execution_date,
177+
"age_check_column": TaskFail.start_date,
178178
"keep_last": False,
179179
"keep_last_filters": None,
180180
"keep_last_group_by": None,

0 commit comments

Comments
 (0)