codalab-competitions icon indicating copy to clipboard operation
codalab-competitions copied to clipboard

creation of task

Open OhMaley opened this issue 2 years ago • 0 comments

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

OhMaley avatar Nov 24 '22 16:11 OhMaley