Add locking for interval sources. This reduces the chance of repeated documents from long running email downloads.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-04-10 02:25:40 -04:00
parent 3618778737
commit 64ad07d95d
6 changed files with 86 additions and 73 deletions

View File

@@ -59,6 +59,7 @@ SOURCE_CHOICES = (
(SOURCE_CHOICE_EMAIL_IMAP, _('IMAP email')),
)
DEFAULT_SOURCE_LOCK_EXPIRE = 600
DEFAULT_INTERVAL = 600
DEFAULT_METADATA_ATTACHMENT_NAME = 'metadata.yaml'
DEFAULT_POP3_TIMEOUT = 60