Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d1d77c5

Browse filesBrowse 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
Copy full SHA for d1d77c5

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎composer/workflows/airflow_db_cleanup.py

Copy file name to clipboardExpand all lines: composer/workflows/airflow_db_cleanup.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.