EventHandler#
- class ansys.dpf.core.session.EventHandler(session)#
- Bases: - EventHandlerBase- Handle events for a server session, including operator tracking and workflow progress updates. - Manages the listening of events and operator addition to workflows during execution. 
Overview#
| Start listening for events from the server session. | |
| Add an operator to a workflow in the server session. | 
Import detail#
from ansys.dpf.core.session import EventHandler
Attribute detail#
- EventHandler.bar = None#
- EventHandler.started_operators = 0#
- EventHandler.finished_operators = 0#
- EventHandler.py_obj#
Method detail#
- EventHandler.start_listening()#
- Start listening for events from the server session. - Displays a progress bar if available and initializes operator tracking. - This method prepares the progress bar and resets counters for started and finished operators. - Return type:
- None 
 
- EventHandler.add_operator(operator, pin, identifier)#
- Add an operator to a workflow in the server session. 
 
    