Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion appdaemon/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ async def create_initial_threads(self) -> None:
"Starting apps with %s worker threads. Apps will all be assigned threads and pinned to them.",
self.total_threads,
)
case 0, False: # fully async
self.logger.info("Starting apps with no worker threads.")
self.pin_threads = 0
case int(), False:
self.logger.info(
"Starting apps with %s worker threads, with %s reserved for pinned apps",
Expand All @@ -226,7 +229,7 @@ async def create_initial_threads(self) -> None:
)

assert self.pin_threads is not None
assert self.total_threads is not None and self.total_threads > 0
assert self.total_threads is not None
for _ in range(self.total_threads):
await self.add_thread(silent=True)

Expand Down
Loading