Skip to content

Commit

Permalink
DO NOT MERGE: print thread pool size
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirving committed Dec 6, 2024
1 parent 24fc094 commit 6af7581
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/daf/butler/remote_butler/server/_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]:
# this effectively sets the maximum number of concurrent requests that
# can be handled.
# See https://github.com/encode/starlette/issues/1724#issuecomment-1179063924

Check failure on line 67 in python/lsst/daf/butler/remote_butler/server/_server.py

View workflow job for this annotation

GitHub Actions / call-workflow / lint

W505

doc line too long (85 > 79 characters)
default_pool_size = anyio.to_thread.current_default_thread_limiter().total_tokens
_LOG.info(f"Default thread pool size {default_pool_size}")
_LOG.info(f"Thread pool size: {config.thread_pool_size}")
anyio.to_thread.current_default_thread_limiter().total_tokens = config.thread_pool_size
yield
Expand Down

0 comments on commit 6af7581

Please sign in to comment.