Home Assistant Unofficial Reference 2024.12.1
homeassistant.util.executor Namespace Reference

Classes

class  InterruptibleThreadPoolExecutor
 

Functions

None _log_thread_running_at_shutdown (str name, int ident)
 
set[Thread] join_or_interrupt_threads (set[Thread] threads, float timeout, bool log)
 

Variables

int _JOIN_ATTEMPTS = 10
 
 _LOGGER = logging.getLogger(__name__)
 
int EXECUTOR_SHUTDOWN_TIMEOUT = 10
 
int MAX_LOG_ATTEMPTS = 2
 

Detailed Description

Executor util helpers.

Function Documentation

◆ _log_thread_running_at_shutdown()

None homeassistant.util.executor._log_thread_running_at_shutdown ( str  name,
int  ident 
)
private
Log the stack of a thread that was still running at shutdown.

Definition at line 25 of file executor.py.

◆ join_or_interrupt_threads()

set[Thread] homeassistant.util.executor.join_or_interrupt_threads ( set[Thread]  threads,
float  timeout,
bool   log 
)
Attempt to join or interrupt a set of threads.

Definition at line 37 of file executor.py.

Variable Documentation

◆ _JOIN_ATTEMPTS

int homeassistant.util.executor._JOIN_ATTEMPTS = 10
private

Definition at line 20 of file executor.py.

◆ _LOGGER

homeassistant.util.executor._LOGGER = logging.getLogger(__name__)
private

Definition at line 16 of file executor.py.

◆ EXECUTOR_SHUTDOWN_TIMEOUT

int homeassistant.util.executor.EXECUTOR_SHUTDOWN_TIMEOUT = 10

Definition at line 22 of file executor.py.

◆ MAX_LOG_ATTEMPTS

int homeassistant.util.executor.MAX_LOG_ATTEMPTS = 2

Definition at line 18 of file executor.py.