int-brain-lab / iblalyx

MIT License
0 stars 0 forks source link

Automatically clear old tasks from Alyx #85

Closed k1o0 closed 1 week ago

k1o0 commented 1 month ago

With their logs, the tasks table in the db tasks up a significant amount of space. The DAWG decided the following:

  1. Delete tasks after sign-off (perhaps with ibllib helper function)
  2. Delete tasks that are set to Complete (after, say, two weeks)
  3. Delete old pipeline tasks
  4. Delete tasks older than, say, 2 years

The deletion can be done with a cron. One consideration is how to deal with cortexlab alyx.