faust.tables.manager
¶
Tables (changelog stream).
- class faust.tables.manager.TableManager(app: AppT, **kwargs: Any)[source]¶
Manage tables used by Faust worker.
- app: _AppT¶
- data: MutableMapping¶
- persist_offset_on_commit(store: StoreT, tp: TP, offset: int) None [source]¶
Mark the persisted offset for a TP to be saved on commit.
This is used for “exactly_once” processing guarantee. Instead of writing the persisted offset to RocksDB when the message is sent, we write it to disk when the offset is committed.
- Return type:
None
- on_commit(offsets: MutableMapping[TP, int]) None [source]¶
Call when committing source topic partitions.
- Return type:
None
- on_commit_tp(tp: TP) None [source]¶
Call when committing source topic partition used by this table.
- Return type:
None
- on_standbys_ready() None [source]¶
Call when standbys are fully up-to-date and ready for failover.
- Return type:
None
- property changelog_topics: Set[str]¶
Return the set of known changelog topics. :rtype:
_GenericAlias
[str
]
- property changelog_queue: ThrowableQueue¶
Queue used to buffer changelog events. :rtype:
ThrowableQueue
- add(table: CollectionT) CollectionT [source]¶
Add table to be managed by this table manager.
- Return type:
- logger: logging.Logger = <Logger faust.tables.manager (WARNING)>¶
- log: CompositeLogger¶
- diag: DiagT¶
- async_exit_stack: AsyncExitStack¶
- exit_stack: ExitStack¶
- on_partitions_revoked(revoked: Set[TP]) None [source]¶
Call when cluster is rebalancing and partitions revoked.
- Return type:
None