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

analysis deletion dates improvements #50

Merged
merged 5 commits into from
Jul 23, 2024
Merged

analysis deletion dates improvements #50

merged 5 commits into from
Jul 23, 2024

Conversation

shapiromatron
Copy link
Collaborator

@shapiromatron shapiromatron commented Jul 18, 2024

Made the days to keep analyses before deletion a configurable setting for BMDS Online, set by an environment variable, ANALYSIS_RETENTION_DAYS. We extended the default from 180 day to 365 days.

In addition:

  • Write function to print deletion day as days or year(s), depending on the value for template use
  • Remove unused management command delete_old_jobs
  • Fix bug in delete old jobs task - previously analyses were not deleted because it was looking for an exact date match; now it looks for any date less than the specified date

@shapiromatron shapiromatron changed the title Deletion dates analysis deletion dates improvements Jul 23, 2024
@shapiromatron shapiromatron changed the title analysis deletion dates improvements analysis deletion dates improvements Jul 23, 2024
@shapiromatron shapiromatron merged commit 3a4aa97 into main Jul 23, 2024
3 checks passed
@shapiromatron shapiromatron deleted the deletion-dates branch July 23, 2024 15:48
@shapiromatron shapiromatron mentioned this pull request Aug 1, 2024
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.

1 participant