mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Log waiting tasks in bootstrap that are delaying startup (#112637)
This commit is contained in:
@@ -402,6 +402,18 @@ class HomeAssistant:
|
||||
max_workers=1, thread_name_prefix="ImportExecutor"
|
||||
)
|
||||
|
||||
@property
|
||||
def _active_tasks(self) -> set[asyncio.Future[Any]]:
|
||||
"""Return all active tasks.
|
||||
|
||||
This property is used in bootstrap to log all active tasks
|
||||
so we can identify what is blocking startup.
|
||||
|
||||
This property is marked as private to avoid accidental use
|
||||
as it is not guaranteed to be present in future versions.
|
||||
"""
|
||||
return self._tasks
|
||||
|
||||
@cached_property
|
||||
def is_running(self) -> bool:
|
||||
"""Return if Home Assistant is running."""
|
||||
|
||||
Reference in New Issue
Block a user