You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# No need for a lock because reading/replacing a variable is
# defined to be an atomic operation in the Python language
# definition (enforced by the global interpreter lock).
download_state.done=True
# Shutdown all background threads, now that they should know to
# exit early.
pool.shutdown(wait=True)
When the download thread is blocked on worker_queue.put(item), if the main thread exit, causing the pool to shut down, the download thread will be stuck. This behavior prevents the program from exiting.
The text was updated successfully, but these errors were encountered:
There is a race condition in the download thread and the main thread when using Bigquery Storage API to fetch data.
python-bigquery/google/cloud/bigquery/_pandas_helpers.py
Lines 797 to 801 in a76af35
python-bigquery/google/cloud/bigquery/_pandas_helpers.py
Lines 934 to 942 in a76af35
When the download thread is blocked on
worker_queue.put(item)
, if the main thread exit, causing the pool to shut down, the download thread will be stuck. This behavior prevents the program from exiting.The text was updated successfully, but these errors were encountered: