GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update airflow_db_cleanup.py to also clean sessions table by apilaskowski · Pull Request #10775 · GoogleCloudPlatform/python-docs-samples

Conversation

@apilaskowski

@apilaskowski apilaskowski commented Oct 17, 2023

Copy link
Copy Markdown
Contributor

Resolving issue #10774

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@apilaskowski
Update airflow_db_cleanup.py to also clean sessions table
dcfff64
@apilaskowski
apilaskowski requested review from a team as code owners October 17, 2023 17:36
@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: workflows Issues related to the Workflows API. labels Oct 17, 2023
@blunderbuss-gcf blunderbuss-gcf Bot assigned iennae Oct 17, 2023
@apilaskowski

apilaskowski commented Oct 17, 2023

Copy link
Copy Markdown
Contributor Author

This change assumes that previous PR #10771 is already merged.
I tested it both on databases with Airflow versions 2.5.3 and 2.6.3.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apilaskowski
Update airflow_db_cleanup.py
798ec5b
@apilaskowski

apilaskowski commented Oct 18, 2023

Copy link
Copy Markdown
Contributor Author

@iennae is there something that I should do to unblock this? So it can be released?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

leahecole
leahecole approved these changes Oct 18, 2023
View reviewed changes
@leahecole

leahecole commented Oct 18, 2023

Copy link
Copy Markdown
Collaborator

Same as before, ask @rafalbiegacz for review #2!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leahecole leahecole added api: composer Issues related to the Managed Service for Apache Airflow API. and removed api: workflows Issues related to the Workflows API. labels Oct 18, 2023
@leahecole leahecole assigned rafalbiegacz Oct 18, 2023
rafalbiegacz
rafalbiegacz approved these changes Oct 18, 2023
View reviewed changes
@rafalbiegacz
rafalbiegacz merged commit ddef2fb into GoogleCloudPlatform:main Oct 18, 2023
@dlevin-doubleverify

dlevin-doubleverify commented Jan 9, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

This change assumes that previous PR #10771 is already merged. I tested it both on databases with Airflow versions 2.5.3 and 2.6.3.

It fails for me on 2.5.3

[2024-01-09, 20:57:37 UTC] {airflow_database_cleanup.py:471} INFO - Deleting sessions...
[2024-01-09, 20:57:37 UTC] {airflow_database_cleanup.py:489} ERROR - (sqlite3.OperationalError) unrecognized token: ":"
[SQL: SELECT * FROM session WHERE expiry < now()::timestamp(0);]
(Background on this error at: https://sqlalche.me/e/14/e3q8)

I'm running it via https://cloud.google.com/composer/docs/composer-2/run-local-airflow-environments

Edit: I also ran it on a "real" environment in Cloud Composer and it fails there as well.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apilaskowski

apilaskowski commented Jan 10, 2024

Copy link
Copy Markdown
Contributor Author

Hi, I will take a look today. Thank you for observing and sharing that.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@d-levin

d-levin commented Feb 2, 2024

Copy link
Copy Markdown

Hi, I will take a look today. Thank you for observing and sharing that.

@apilaskowski Did you get a chance to look into this? :-)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@leahecole leahecole leahecole approved these changes
@rafalbiegacz rafalbiegacz rafalbiegacz approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@iennae iennae

@rafalbiegacz rafalbiegacz

Labels

api: composer Issues related to the Managed Service for Apache Airflow API. samples Issues that are directly related to samples.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@apilaskowski @leahecole @dlevin-doubleverify @d-levin @rafalbiegacz @iennae
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.