Skip to content
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

Add command to clean up expired sessions #14

Open
jphalip opened this issue Jun 14, 2019 · 1 comment
Open

Add command to clean up expired sessions #14

jphalip opened this issue Jun 14, 2019 · 1 comment

Comments

@jphalip
Copy link
Collaborator

jphalip commented Jun 14, 2019

Sessions that don't explicitly get cleaned (e.g. if the Yarn Resource Manager fails to call the "cancel" method), then some expired sessions will remain in the database. Those sessions could be cleaned up by running a clean-up command on a regular basis with a cron job. Something like what Django has:
https://docs.djangoproject.com/en/dev/topics/http/sessions/#clearing-the-session-store
https://docs.djangoproject.com/en/dev/ref/django-admin/#django-admin-clearsessions

@jphalip
Copy link
Collaborator Author

jphalip commented Jun 14, 2019

The "creation_time" column should also be indexed to improve performance for that command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant