This is to prevent RuntimeError: cannot schedule new futures after interpreter shutdown, similar to https://github.com/coralnet/coralnet/pull/527. The error was happening at this part of pyspacer's code when the backend_main view tried to get the valresults of a classifier.
In terms of what this workaround means for performance, this should only affect performance if a pyspacer-dependent program were trying to parallelize S3 downloads using multithreading. Multiprocessing should be unaffected.
This is to prevent
RuntimeError: cannot schedule new futures after interpreter shutdown
, similar to https://github.com/coralnet/coralnet/pull/527. The error was happening at this part of pyspacer's code when thebackend_main
view tried to get the valresults of a classifier.In terms of what this workaround means for performance, this should only affect performance if a pyspacer-dependent program were trying to parallelize S3 downloads using multithreading. Multiprocessing should be unaffected.