The file I modified passes the flake8 test but I did not touch the rest of the files. No new tests needed as this does not change behavior, just speeds things up. Previously, we were calling client.submit(task).result() a whole bunch of times in succession. The change is to just call client.gather() once rather than all of the Future.result() calls.
flake8 rhg_compute_tools tests docs
The file I modified passes the
flake8
test but I did not touch the rest of the files. No new tests needed as this does not change behavior, just speeds things up. Previously, we were callingclient.submit(task).result()
a whole bunch of times in succession. The change is to just callclient.gather()
once rather than all of theFuture.result()
calls.