scrolls.importer module

class scrolls.importer.MessageImporter(dependencies)[source]

Bases: object

Deals with newly arrived Messages

import_(messages)[source]

Handles a batch of new messages

Will persist and aggregate them. If the batch is empty, will return immediately.

Args:
messages (list): List of Message objects to be imported.