CDAT / uvcmetrics

metrics aka diagnostics for comparing models with observations or each other
BSD 3-Clause "New" or "Revised" License
3 stars 8 forks source link

Fixes an os.fork exception when Popen tries to open to many processes #279

Closed sterlingbaldwin closed 7 years ago

sterlingbaldwin commented 7 years ago

When I run metadiags on acme1, it fails 100% of the time because of an uncaught exception. Turns out even though MAX_PROC is getting set to 192 (the number of cores), metadiags is still trying to open more simultaneous processes then the system can handle. Ive added a small check to catch this failure, wait a second, and try again. I tested it on acme1 and it works fine, only triggering about 6-8 times per run. All other systems where it was previously working should be unaffected.