Consumer loop time is now configurable

This commit is contained in:
Daniel Quinn
2017-01-01 18:41:06 +00:00
parent db7810a9d2
commit 23bd887f16
3 changed files with 11 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ class Command(BaseCommand):
consumption directory, and fetch any mail available.
"""
LOOP_TIME = 10 # Seconds
LOOP_TIME = settings.CONSUMER_LOOP_TIME
MAIL_DELTA = datetime.timedelta(minutes=10)
ORIGINAL_DOCS = os.path.join(settings.MEDIA_ROOT, "documents", "originals")