codalab-competitions
codalab-competitions copied to clipboard
creation of task
Description
In order to avoid size measurement shift this PR introduce a new task that is reseting the measured size of files every 3 month so the storage analytics task will recompute them.
Misc. comments
Testing locally and very fast: 2ms on Barcelona database replica Note: Setting the column 'sub_size' to 0 for submissions will tell the storage analytics to measure its size from the bucket instead of using the a stored value: https://github.com/codalab/codalab-competitions/blob/develop/codalab/apps/web/models.py#L1454
Checklist
- [x] Code review by me
- [x] Hand tested by me
- [x] I'm proud of my work
- [ ] Code review by reviewer
- [ ] Hand tested by reviewer
- [ ] Ready to merge