Skip to content

feat: add new Handler kwarg multiprocessing_queue #1340

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

namoshizun
Copy link

This controls whether to enqueue messages to a multiprocessing-safe queue or a simple queue. If the user knows the program will never spawn child processes, settings this option to False may reduce the enqueue overhead.

BTW: for some reason the ruff linter insists on breaking up line 385 in init.pyi which misplaces the required "noqa: N805" rule on this line... I had to ignore the ruff rule in pre-commit for now until I figure out what went wrong 😑

…e, will enqueue messages to a queue.Queue instance
@@ -377,7 +382,11 @@ class Logger:
def exception(__self, __message: Any) -> None: ... # noqa: N805
@overload
def log(
__self, __level: Union[int, str], __message: str, *args: Any, **kwargs: Any # noqa: N805
__self,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The noqa: N805 comment should go on the __self line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants