faust.agents.actor
¶
Actor - Individual Agent instances.
- class faust.agents.actor.Actor(agent: AgentT, stream: StreamT, it: _T, index: Optional[int] = None, active_partitions: Optional[Set[TP]] = None, **kwargs: Any)[source]¶
An actor is a specific agent instance.
- mundane_level = 'debug'¶
The log level for mundane info such as starting, stopping, etc. Set this to
"debug"
for less information.
- async on_isolated_partition_revoked(tp: TP) None [source]¶
Call when an isolated partition is being revoked.
- Return type:
None
- async on_isolated_partition_assigned(tp: TP) None [source]¶
Call when an isolated partition is being assigned.
- Return type:
None
- logger: logging.Logger = <Logger faust.agents.actor (WARNING)>¶
- class faust.agents.actor.AsyncIterableActor(agent: AgentT, stream: StreamT, it: _T, index: Optional[int] = None, active_partitions: Optional[Set[TP]] = None, **kwargs: Any)[source]¶
Used for agent function that yields.
- logger: logging.Logger = <Logger faust.agents.actor (WARNING)>¶