Skip to content

periodic database cleaning #82

@antoinefalisse

Description

@antoinefalisse

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.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions