GrpcEventHandler
#
- class ansys.dpf.core.session.GrpcEventHandler(session)#
Bases:
EventHandlerBase
Handle events for a server session using gRPC.
Manages event listening and operator addition to track workflow progress and logging.
Overview#
Start listening for events from the server session. |
|
Add an operator to the server session. |
Import detail#
from ansys.dpf.core.session import GrpcEventHandler
Attribute detail#
- GrpcEventHandler.bar = None#
Method detail#
- GrpcEventHandler.start_listening()#
Start listening for events from the server session.
Displays a progress bar if available, and logs workflow status.
- Returns:
A thread that listens for events in the background.
- Return type:
threading.Thread
- GrpcEventHandler.add_operator(operator, pin, identifier)#
Add an operator to the server session.
- Parameters:
operator (object) – The operator to add.
pin (object) – The pin to associate with the operator.
identifier (str) – A unique identifier for the operator.