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

Limit Unfinished Vioscreen Sessions #527

Merged
merged 8 commits into from
Aug 18, 2023

Conversation

cassidysymons
Copy link
Collaborator

This PR limits the VioscreenSessionRepo.get_unfinished_sessions() function to the past 30 days, relative either to the creation date (for criteria 1 within the function) or the last modified date (relative to criteria 2/3).

The impact on staging is that the number of unfinished sessions drops from 4344 to 3. Based on this substantial change, I'm going to defer on adding any sleep calls between sessions until/unless Viocare requests further changes.

Note: This PR is relative to overhaul, as I'd like to observe it running on staging for 48 hours before pushing an equivalent change to master.

Copy link
Member

@wasade wasade left a comment

Choose a reason for hiding this comment

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

That's super clean

@cassidysymons
Copy link
Collaborator Author

That's super clean

Thanks. Fixing unit tests before merging. Long-term, it would be good to adjust the unit tests to create new Vioscreen registry entries & sessions rather than depending on stable ones in the database, but that's not something I really want to tackle at the moment.

@wasade
Copy link
Member

wasade commented Aug 18, 2023

👍

@cassidysymons cassidysymons merged commit f56e309 into master-overhaul Aug 18, 2023
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

Successfully merging this pull request may close these issues.

2 participants