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

periodic database cleaning #82

Open
antoinefalisse opened this issue Jun 8, 2023 · 2 comments
Open

periodic database cleaning #82

antoinefalisse opened this issue Jun 8, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@antoinefalisse
Copy link
Collaborator

Now that have the celery workers, we could implement periodic cleaning of the database. Example of things to clean:

  • If session created more than a week AND no neutral trial => remove
  • If session created more than a week AND neutral trial is error => remove
    • TBD since we might want to reprocess, although unlikely
  • If trial created more than a day again AND status is recording => remove

The first time we run things, there will be a ton of things to remove, which might bug the workers but that might not be a problem. We could bump resources for like a day or so.

Thoughts @suhlrich and @AlbertoCasasOrtiz? Feel free to add to the list.

@antoinefalisse antoinefalisse added the enhancement New feature or request label Jun 8, 2023
@suhlrich
Copy link
Member

suhlrich commented Jun 9, 2023

I like it. Slight update, then let's have Planeks do it!

-If session created more than a week AND no neutral trial => remove
-If trial created more than a day again AND status is recording => remove

@olehkorkh-planeks
Copy link
Collaborator

The PR - #144

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

No branches or pull requests

4 participants