Skip to main content

queue

superduper.backends.base.queue

Source code

consume_events​

consume_events(events,
table: str,
db=None)
ParameterDescription
eventsList of events to be consumed.
tableQueue Table.
dbDatalayer instance.

Consume events from table queue.

consume_streaming_events​

consume_streaming_events(events,
table,
db)
ParameterDescription
eventslist of events
tabletable on which events were found
dbDatalayer instance

Consumer work from streaming events.

Streaming event-types are delete.

BaseQueuePublisher​

BaseQueuePublisher(self,
uri: Optional[str])
ParameterDescription
uriUri to connect.

Base class for handling publisher and consumer process.

This class is an implementation of message broker between producers (superduper db client) and consumers i.e listeners.

BaseQueueConsumer​

BaseQueueConsumer(self,
uri: Optional[str] = '',
queue_name: str = '',
callback: Optional[Callable] = None)
ParameterDescription
uriUri to connect.
queue_nameQueue to consume.
callbackCallback for consumed messages.

Base class for handling consumer process.

This class is an implementation of message broker between producers (superduper db client) and consumers i.e listeners.

Future​

Future(self,
job_id: str) -> None
ParameterDescription
job_idjob identifier

Future output.