Skip to content
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

docs(bigquery): add client thread-safety documentation #132

Merged
merged 3 commits into from Jun 15, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/index.rst
@@ -1,5 +1,14 @@
.. include:: README.rst

.. note::

Because the bigquery client uses the third-party :mod:`requests` library
plamut marked this conversation as resolved.
Show resolved Hide resolved
by default and the bigquery-storage client uses :mod:`grpcio` library,
both are safe to share instances across threads. In multiprocessing
scenarios, best practice is to create client instances *after*
plamut marked this conversation as resolved.
Show resolved Hide resolved
:class:`multiprocessing.Pool` or :class:`multiprocessing.Process` invokes
:func:`os.fork`.

More Examples
~~~~~~~~~~~~~

Expand Down