Skip to content
New issue

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

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

Already on GitHub? # to your account

Add an extra cleanup task for sessions stuck in canceling state #2229

Merged
merged 4 commits into from
Jun 23, 2022

Conversation

jefferai
Copy link
Member

@jefferai jefferai commented Jun 22, 2022

See the comment on the migrations file for details.

Note: in discussion with @mgaffney there didn't seem to be much use in creating a test for this; it's by definition corrupt data. However, in my home Boundary cluster, this query effectively identifies and removes the stuck sessions, both in the case that they are not terminated in the warehouse (in which case they are marked terminated and removed after an hour) and in the case that they are (in which case they are immediately removed).

@jefferai jefferai closed this Jun 22, 2022
@jefferai jefferai deleted the jefferai-extra-session-cleanup branch June 22, 2022 20:08
@jefferai jefferai restored the jefferai-extra-session-cleanup branch June 22, 2022 20:38
@jefferai jefferai reopened this Jun 23, 2022
@jefferai jefferai requested a review from mgaffney June 23, 2022 00:31
mgaffney
mgaffney previously approved these changes Jun 23, 2022
Copy link
Member

@mgaffney mgaffney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, the migration file needs to be renamed since a 35/01_... has been merged into main already.

@jefferai jefferai force-pushed the jefferai-extra-session-cleanup branch from 54fc60b to 30c55ac Compare June 23, 2022 13:47
@jefferai jefferai merged commit 396edfc into main Jun 23, 2022
@jefferai jefferai deleted the jefferai-extra-session-cleanup branch June 23, 2022 16:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants