The session.py module#

Summary#

EventHandlerBase

Abstract base class for handling server events related to workflows.

EventHandler

Handle events for a server session, including operator tracking and workflow progress updates.

GrpcEventHandler

Handle events for a server session using gRPC.

Session

Create a class to manage server sessions and handle events like progress and logging.

progress_call_back

Tracking callback function for the progress of operators in a workflow.

LOG

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#