datacommonsorg / data

Apache License 2.0
57 stars 105 forks source link

USDA Import: Multiprocessing bug fix #973

Closed jehangiramjad closed 5 months ago

jehangiramjad commented 5 months ago

Fixing a multiprocessing FLAG parsing error on some platforms/environments.

The import was failing on Mac OS-X and also on a Cloud Scheduler workflow. Appears to be a known issue on certain environments and it's better to fix using this one-line change. See https://stackoverflow.com/questions/66953343/absl-flags-error-trying-to-access-flag-before-flags-were-parsed for more details.