assembl.tasks.source_reader module

A long-running process that receives requests to read data from various ContentSources, and reads at reasonable intervals. It can also handle sources that can push changes.

exception assembl.tasks.source_reader.ClientError[source]

Bases: assembl.tasks.source_reader.ReaderError

exception assembl.tasks.source_reader.IrrecoverableError[source]

Bases: assembl.tasks.source_reader.ClientError

exception assembl.tasks.source_reader.ReaderError[source]

Bases: RuntimeError

class assembl.tasks.source_reader.ReaderStatus[source]

Bases: assembl.lib.enum.OrderedEnum

An enumeration.

exception assembl.tasks.source_reader.ReadingForTooLong[source]

Bases: assembl.tasks.source_reader.ClientError

class assembl.tasks.source_reader.SourceDispatcher(connection, debug=False)[source]

Bases: kombu.mixins.ConsumerMixin

class assembl.tasks.source_reader.SourceReader(source_id)[source]

Bases: threading.Thread

run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.