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:
@@ -551,10 +551,6 @@ class EmailBaseModel(IntervalBaseModel):
|
||||
}
|
||||
)
|
||||
|
||||
# TODO: Add lock to avoid running more than once concurrent same document
|
||||
# download
|
||||
# TODO: Use message ID for lock
|
||||
|
||||
@staticmethod
|
||||
def process_message(source, message_text):
|
||||
counter = 1
|
||||
|
||||
Reference in New Issue
Block a user