StatusMessageWatcherSync
Hierarchy
- StatusMessageWatcher- StatusMessageWatcherSync
 
Index
Methods
__enter__
- Start the logging task within the context. Exiting the context will cancel the logging task. - Returns Self
__exit__
- Cancel the logging task. - Parameters- exc_type: type[BaseException] | None
- exc_val: BaseException | None
- exc_tb: TracebackType | None
 - Returns None
__init__
- Initialize - StatusMessageWatcherSync.- Parameters- keyword-onlyrun_client: RunClient- The client for run that will be used to get a status and message. 
- keyword-onlyto_logger: logging.Logger- The logger to which the status message will be redirected. 
- optionalkeyword-onlycheck_period: timedelta = timedelta(seconds=1)- The period with which the status message will be polled. 
 - Returns None
start
- Start the logging thread. The caller has to handle any cleanup by manually calling the - stopmethod.- Returns Thread
stop
- Signal the _logging_thread thread to stop logging and wait for it to finish. - Returns None
Sync variant of
StatusMessageWatcherthat is logging in thread.