New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create general use proc pool (SYN-4901) #3033
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3033 +/- ##
==========================================
- Coverage 97.31% 97.18% -0.13%
==========================================
Files 225 225
Lines 45009 45014 +5
==========================================
- Hits 43799 43748 -51
- Misses 1210 1266 +56
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
# Conflicts: # CHANGELOG.rst
# Conflicts: # CHANGELOG.rst
# Conflicts: # CHANGELOG.rst
# Conflicts: # CHANGELOG.rst
# Conflicts: # CHANGELOG.rst
# Conflicts: # CHANGELOG.rst
# Conflicts: # CHANGELOG.rst
# Conflicts: # synapse/axon.py
# Conflicts: # CHANGELOG.rst
synapse/lib/coro.py
Outdated
forkpool = concurrent.futures.ProcessPoolExecutor(mp_context=mpctx, max_workers=max_workers) | ||
logger.debug(f'Shared forkserver pool max_workers={forkpool._max_workers}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the intent that we log the # of workers upon service startup?
This will be logged during import time; which is prior to any logger configuration occurring.
If we set a default max_workers = None
value than the workers is safe to refer to from other modules and log the # of as needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already had the logger.warning there, but yeah, it hasn't been configured yet. I removed this debug logging, and maybe we should consider making the warning a python warning.
No description provided.