The session.py
module#
Summary#
Abstract base class for handling server events related to workflows. |
|
Handle events for a server session, including operator tracking and workflow progress updates. |
|
Handle events for a server session using gRPC. |
|
Create a class to manage server sessions and handle events like progress and logging. |
Tracking callback function for the progress of operators in a workflow. |
Description#
Session.
Module detail#
- session.progress_call_back(obj, nature, arg)#
Tracking callback function for the progress of operators in a workflow.
This function updates a progress bar based on the operator’s status.
- Return type:
None
Notes
If nature is 0, the number of started operators is incremented. If nature is 1, the number of finished operators is incremented and the progress bar is updated. If nature is 9, the counters for started and finished operators are reset. If the progress bar exists, its progress is updated accordingly.
- session.LOG#