Add periodic task to remove stale shared uploads.

This commit is contained in:
Roberto Rosario
2015-09-08 18:58:48 -04:00
parent 43e1ffbc24
commit 460d8585ee
3 changed files with 53 additions and 0 deletions

View File

@@ -2,8 +2,11 @@ from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
DELETE_STALE_UPLOADS_INTERVAL = 60 * 10 # 10 minutes
TIME_DELTA_UNIT_CHOICES = (
('days', _('Days')),
('hours', _('Hours')),
('minutes', _('Minutes')),
)
UPLOAD_EXPIRATION_INTERVAL = 60 * 60 * 24 * 7 # 7 days