faust.transport.conductor
¶
The conductor delegates messages from the consumer to the streams.
-
class
faust.transport.conductor.
ConductorCompiler
[source]¶ Compile a function to handle the messages for a topic+partition.
-
class
faust.transport.conductor.
Conductor
(app: faust.types.app.AppT, **kwargs: Any) → None[source]¶ Manages the channels that subscribe to topics.
Consumes messages from topic using a single consumer.
Forwards messages to all channels subscribing to a topic.
-
logger
= <Logger faust.transport.conductor (WARNING)>¶
-
async
commit
(topics: AbstractSet[Union[str, faust.types.tuples.TP]]) → bool[source]¶ Commit offsets in topics.
- Return type
-
acks_enabled_for
(topic: str) → bool[source]¶ Return
True
if acks are enabled for topic by name.- Return type
-
async
on_partitions_assigned
(assigned: Set[faust.types.tuples.TP]) → None[source]¶ Call when cluster is rebalancing and partitions are assigned.
- Return type
None