Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kosteev opened this issue Aug 5, 2021 · 0 comments · Fixed by #6532
Closed

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

kosteev opened this issue Aug 5, 2021 · 0 comments · Fixed by #6532
Assignees
Labels
api: composer Issues related to the Cloud Composer API. samples Issues that are directly related to samples.

Comments

@kosteev
Copy link
Contributor

kosteev commented Aug 5, 2021

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

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Aug 5, 2021
@busunkim96 busunkim96 added the api: composer Issues related to the Cloud Composer API. label Aug 5, 2021
gcf-merge-on-green bot pushed a commit that referenced this issue Aug 6, 2021
…n up database (#6532)

## Description

Fixes #6531 

## Checklist
- [X ] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md)
- [ ] README is updated to include [all relevant information](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#readme-file)
- [ ] **Tests** pass:   `nox -s py-3.6` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup))
- [ ] **Lint** pass:   `nox -s lint` (see [Test Environment Setup](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md#test-environment-setup))
- [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones)
- [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones)
- [X ] Please **merge** this PR for me once it is approved.
- [ ] This sample adds a new sample directory, and I updated the [CODEOWNERS file](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/.github/CODEOWNERS) with the codeowners for this sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: composer Issues related to the Cloud Composer API. samples Issues that are directly related to samples.
Projects
None yet
3 participants