faust.transport.conductor
¶
The conductor delegates messages from the consumer to the streams.
- class faust.transport.conductor.Conductor(app: AppT, **kwargs: Any)[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: logging.Logger = <Logger faust.transport.conductor (WARNING)>¶
- app: _AppT¶
- on_message: ConsumerCallback¶
- async commit(topics: AbstractSet[Union[str, 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[TP]) None [source]¶
Call when cluster is rebalancing and partitions are assigned.
- Return type:
None
- log: CompositeLogger¶
- diag: DiagT¶
- async_exit_stack: AsyncExitStack¶
- exit_stack: ExitStack¶