tlc.service.watch_manager

The 3LC Watch Manager for managing watch service subprocesses.

Module Contents

Functions

Function

Description

start_watch_subprocess

Start the watch service in a subprocess with automatic parent termination.

stop_watch_subprocess

Stop the watch subprocess gracefully.

is_watch_enabled

Check if the watch service is enabled in configuration.

API

start_watch_subprocess() tlc.utils.subprocess_with_parent_termination.SubprocessWithParentTermination | None

Start the watch service in a subprocess with automatic parent termination.

Returns:

The subprocess wrapper object if started successfully, None otherwise.

stop_watch_subprocess(
process_wrapper: tlc.utils.subprocess_with_parent_termination.SubprocessWithParentTermination,
) None

Stop the watch subprocess gracefully.

Parameters:

process_wrapper – The subprocess wrapper to stop.

is_watch_enabled() bool

Check if the watch service is enabled in configuration.

Returns:

True if watch service is enabled, False otherwise.